mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-08 23:07:08 +00:00
Specify COLUMNS in test scripts for consistent output
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
|
# Screen width for help/usage text (for reproducible test results)
|
||||||
|
export COLUMNS=79
|
||||||
|
shopt -u checkwinsize # Prevent subsequent commands from resetting `COLUMNS`
|
||||||
|
|
||||||
# Game Boy release date, 1989-04-21T12:34:56Z (for reproducible test results)
|
# Game Boy release date, 1989-04-21T12:34:56Z (for reproducible test results)
|
||||||
export SOURCE_DATE_EPOCH=609165296
|
export SOURCE_DATE_EPOCH=609165296
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
|
# Screen width for help/usage text (for reproducible test results)
|
||||||
|
export COLUMNS=79
|
||||||
|
shopt -u checkwinsize # Prevent subsequent commands from resetting `COLUMNS`
|
||||||
|
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
# shellcheck disable=SC2064 # (Immediate expansion is the desired behavior.)
|
# shellcheck disable=SC2064 # (Immediate expansion is the desired behavior.)
|
||||||
trap "cd; rm -rf ${tmpdir@Q}" EXIT
|
trap "cd; rm -rf ${tmpdir@Q}" EXIT
|
||||||
|
|||||||
@@ -3,6 +3,12 @@
|
|||||||
[[ -e ./rgbgfx_test ]] || make -C ../.. test/gfx/rgbgfx_test Q= ${CXX:+"CXX=$CXX"} || exit
|
[[ -e ./rgbgfx_test ]] || make -C ../.. test/gfx/rgbgfx_test Q= ${CXX:+"CXX=$CXX"} || exit
|
||||||
[[ -e ./randtilegen ]] || make -C ../.. test/gfx/randtilegen Q= ${CXX:+"CXX=$CXX"} || exit
|
[[ -e ./randtilegen ]] || make -C ../.. test/gfx/randtilegen Q= ${CXX:+"CXX=$CXX"} || exit
|
||||||
|
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
|
# Screen width for help/usage text (for reproducible test results)
|
||||||
|
export COLUMNS=79
|
||||||
|
shopt -u checkwinsize # Prevent subsequent commands from resetting `COLUMNS`
|
||||||
|
|
||||||
errtmp="$(mktemp)"
|
errtmp="$(mktemp)"
|
||||||
|
|
||||||
# shellcheck disable=SC2064 # (Immediate expansion is the desired behavior.)
|
# shellcheck disable=SC2064 # (Immediate expansion is the desired behavior.)
|
||||||
|
|||||||
+6
-1
@@ -1,8 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
export LC_ALL=C
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
|
# Screen width for help/usage text (for reproducible test results)
|
||||||
|
export COLUMNS=79
|
||||||
|
shopt -u checkwinsize # Prevent subsequent commands from resetting `COLUMNS`
|
||||||
|
|
||||||
otemp="$(mktemp)"
|
otemp="$(mktemp)"
|
||||||
gbtemp="$(mktemp)"
|
gbtemp="$(mktemp)"
|
||||||
gbtemp2="$(mktemp)"
|
gbtemp2="$(mktemp)"
|
||||||
|
|||||||
Reference in New Issue
Block a user