diff options
| author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-07-17 19:12:31 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | 2022-07-21 09:03:50 -0700 |
| commit | fd1b306c47a848fdce037b7aac05603143e746a8 (patch) | |
| tree | 5eb967e4ac3b5715ddaa94e694c14b0cf9b7393e /test | |
| parent | ad0e1c150f8ab2be97f9ebfe1262202144ea78a8 (diff) | |
image outputs now contain the terminal name
Diffstat (limited to 'test')
| -rw-r--r-- | test/Dockerfile | 3 | ||||
| -rw-r--r-- | test/cases/vttest/1_1.sh.alacritty.png | bin | 0 -> 9760 bytes | |||
| -rw-r--r-- | test/cases/vttest/1_1.sh.xterm.png | bin | 0 -> 4325 bytes | |||
| -rw-r--r-- | test/cases/vttest/launch.sh.png | bin | 14219 -> 0 bytes | |||
| -rwxr-xr-x | test/run.sh | 5 |
5 files changed, 5 insertions, 3 deletions
diff --git a/test/Dockerfile b/test/Dockerfile index 12ea74da5..066fbc819 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -36,7 +36,8 @@ RUN apk add --no-cache \ # Our terminals RUN apk add --no-cache \ - alacritty + alacritty \ + xterm COPY --from=vttest /vttest /usr/bin/vttest diff --git a/test/cases/vttest/1_1.sh.alacritty.png b/test/cases/vttest/1_1.sh.alacritty.png Binary files differnew file mode 100644 index 000000000..030912052 --- /dev/null +++ b/test/cases/vttest/1_1.sh.alacritty.png diff --git a/test/cases/vttest/1_1.sh.xterm.png b/test/cases/vttest/1_1.sh.xterm.png Binary files differnew file mode 100644 index 000000000..b2ab3cdf5 --- /dev/null +++ b/test/cases/vttest/1_1.sh.xterm.png diff --git a/test/cases/vttest/launch.sh.png b/test/cases/vttest/launch.sh.png Binary files differdeleted file mode 100644 index ba1bc593d..000000000 --- a/test/cases/vttest/launch.sh.png +++ /dev/null diff --git a/test/run.sh b/test/run.sh index a263a8b37..a0643df57 100755 --- a/test/run.sh +++ b/test/run.sh @@ -33,7 +33,8 @@ while [[ "$#" -gt 0 ]]; do done # If we're updating, then just update the file in-place -if [ "$ARG_UPDATE" -eq 1 ]; then ARG_OUT="${ARG_CASE}.png"; fi +GOLDEN_OUT="${ARG_CASE}.${ARG_EXEC}.png" +if [ "$ARG_UPDATE" -eq 1 ]; then ARG_OUT=$GOLDEN_OUT; fi bad=0 if [ -z "$ARG_EXEC" ]; then bad=1; fi @@ -93,7 +94,7 @@ echo "Capturing screen shot..." import -window root ${ARG_OUT} echo "Comparing results..." -DIFF=$(compare -metric AE ${ARG_OUT} ${ARG_CASE}.png null: 2>&1) +DIFF=$(compare -metric AE ${ARG_OUT} ${GOLDEN_OUT} null: 2>&1) if [ $? -eq 2 ] ; then echo " Comparison failed (error)" exit 1 |
