From a7b5e8cfca2e0a40bff10d441f54bfc278226916 Mon Sep 17 00:00:00 2001 From: Adam Saponara Date: Fri, 27 Dec 2024 21:19:03 -0500 Subject: [PATCH] bump test env from debian 12 to debian 13 debian 13 comes with a newer version of xterm which has some changes in `print-immediate`. this requires us to update test fixtures. the changes are: test_64bit: invisible was previously emitted as spaces. now emitted with escape codes. test_color_true: 0x808080 was previously emitted as 128:128:120. now emitted as 128:128:128. test_egc: fullwidth char with combining characters was previously emitted with U+FFFF (invalid) in the 2nd cell, now emitted without. test_invalid_utf8: U+FFFD (replacement char) is now emitted as a hash char ("#"). test_non_printable: ditto test_print: ditto also bump php from 8.3 to 8.4. --- tests/Dockerfile | 8 ++++---- tests/run.sh | 2 +- tests/test_64bit/expected.ansi | 2 +- tests/test_color_true/expected.ansi | 2 +- tests/test_egc/expected.ansi | 4 ++-- tests/test_invalid_utf8/expected.ansi | 4 ++-- tests/test_non_printable/expected.ansi | 14 +++++++------- tests/test_print/expected.ansi | 4 ++-- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/Dockerfile b/tests/Dockerfile index 5a66c36..c56df45 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -1,13 +1,13 @@ -FROM debian:12-slim +FROM debian:trixie-slim ARG cflags="" RUN export DEBIAN_FRONTEND=noninteractive \ && apt-get -y update >/dev/null \ && apt-get -y install lsb-release apt-transport-https ca-certificates wget >/dev/null \ - && wget -qO /etc/apt/trusted.gpg.d/php.gpg 'https://packages.sury.org/php/apt.gpg' \ - && echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | \ + && wget -qO /usr/share/keyrings/sury-php.gpg 'https://packages.sury.org/php/apt.gpg' \ + && echo "deb [signed-by=/usr/share/keyrings/sury-php.gpg] https://packages.sury.org/php/ bookworm main" | \ tee /etc/apt/sources.list.d/php.list \ && apt-get -y update >/dev/null \ - && apt-get -y install make gcc php8.3-cli xvfb xterm xvkbd locales locales-all >/dev/null + && apt-get -y install make gcc php8.4-cli xvfb xterm xvkbd locales locales-all >/dev/null ENV LC_ALL=en_US.UTF-8 \ LANG=en_US.UTF-8 \ LANGUAGE=en_US.UTF-8 diff --git a/tests/run.sh b/tests/run.sh index ea5302c..aeacbad 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -15,7 +15,7 @@ main() { check_deps # loop through each 'test_*' dir - for test_php in $(find . -type f -wholename '*/test_*/test.php'); do + for test_php in $(find . -type f -wholename '*/test_*/test.php' | sort); do local test_dir=$(dirname $test_php) local test_name=$(basename $test_dir) diff --git a/tests/test_64bit/expected.ansi b/tests/test_64bit/expected.ansi index 367a518..41350d1 100644 --- a/tests/test_64bit/expected.ansi +++ b/tests/test_64bit/expected.ansi @@ -1,5 +1,5 @@ #5attr=TB_STRIKEOUT -#5  +#5attr=TB_INVISIBLE #5attr=TB_UNDERLINE_2 diff --git a/tests/test_color_true/expected.ansi b/tests/test_color_true/expected.ansi index 27d14dc..16a9ac6 100644 --- a/tests/test_color_true/expected.ansi +++ b/tests/test_color_true/expected.ansi @@ -11,7 +11,7 @@ #5[0;38:2::216:191:216mt[0;38:2::216:191:216mh[0;38:2::216:191:216mi[0;38:2::216:191:216ms[0;38:2::216:191:216mt[0;38:2::216:191:216ml[0;38:2::216:191:216me[0;38:2::216:191:216m,[0;38:2::216:191:216m [0;38:2::64:224:208mt[0;38:2::64:224:208mu[0;38:2::64:224:208mr[0;38:2::64:224:208mq[0;38:2::64:224:208mu[0;38:2::64:224:208mo[0;38:2::64:224:208mi[0;38:2::64:224:208ms[0;38:2::64:224:208me[0;38:2::64:224:208m,[0;38:2::64:224:208m [0;38:2::245:222:179mw[0;38:2::245:222:179mh[0;38:2::245:222:179me[0;38:2::245:222:179ma[0;38:2::245:222:179mt[0;38:2::245:222:179m,[0;38:2::245:222:179m [0;38:2::245:245:245mw[0;38:2::245:245:245mh[0;38:2::245:245:245mi[0;38:2::245:245:245mt[0;38:2::245:245:245me[0;38:2::245:245:245ms[0;38:2::245:245:245mm[0;38:2::245:245:245mo[0;38:2::245:245:245mk[0;38:2::245:245:245me[0;38:2::245:245:245m,[0;38:2::245:245:245m [0;38:2::154:205:50my[0;38:2::154:205:50me[0;38:2::154:205:50ml[0;38:2::154:205:50ml[0;38:2::154:205:50mo[0;38:2::154:205:50mw[0;38:2::154:205:50mg[0;38:2::154:205:50mr[0;38:2::154:205:50me[0;38:2::154:205:50me[0;38:2::154:205:50mn[0;38:2::154:205:50m,[0;38:2::154:205:50m [0;38:2::0:255:0mg[0;38:2::0:255:0mr[0;38:2::0:255:0me[0;38:2::0:255:0me[0;38:2::0:255:0mn[0;38:2::0:255:0m [0;38:2::0:255:0mo[0;38:2::0:255:0mn[0;38:2::0:255:0m [0;38:2::0:255:0md[0;38:2::0:255:0me[0;38:2::0:255:0mf[0;38:2::0:255:0ma[0;38:2::0:255:0mu[0;38:2::0:255:0ml[0;38:2::0:255:0mt[0;38:2::0:255:0m,[0;38:2::0:255:0m  #5[0;38:2::0:0:0mb[0;38:2::0:0:0ml[0;38:2::0:0:0ma[0;38:2::0:0:0mc[0;38:2::0:0:0mk[0;38:2::0:0:0m [0;38:2::0:0:0mo[0;38:2::0:0:0mn[0;38:2::0:0:0m [0;38:2::0:0:0md[0;38:2::0:0:0me[0;38:2::0:0:0mf[0;38:2::0:0:0ma[0;38:2::0:0:0mu[0;38:2::0:0:0ml[0;38:2::0:0:0mt[0;38:2::0:0:0m,[0;38:2::0:0:0m [0;48:2::0:255:0md[0;48:2::0:255:0me[0;48:2::0:255:0mf[0;48:2::0:255:0ma[0;48:2::0:255:0mu[0;48:2::0:255:0ml[0;48:2::0:255:0mt[0;48:2::0:255:0m [0;48:2::0:255:0mo[0;48:2::0:255:0mn[0;48:2::0:255:0m [0;48:2::0:255:0mg[0;48:2::0:255:0mr[0;48:2::0:255:0me[0;48:2::0:255:0me[0;48:2::0:255:0mn[0;48:2::0:255:0m,[0;48:2::0:255:0m [0;48:2::0:0:0md[0;48:2::0:0:0me[0;48:2::0:0:0mf[0;48:2::0:0:0ma[0;48:2::0:0:0mu[0;48:2::0:0:0ml[0;48:2::0:0:0mt[0;48:2::0:0:0m [0;48:2::0:0:0mo[0;48:2::0:0:0mn[0;48:2::0:0:0m [0;48:2::0:0:0mb[0;48:2::0:0:0ml[0;48:2::0:0:0ma[0;48:2::0:0:0mc[0;48:2::0:0:0mk[0;48:2::0:0:0m,[0;48:2::0:0:0m default on default, #5[0;38:2::0:0:0;48:2::0:0:0mb[0;38:2::0:0:0;48:2::0:0:0ml[0;38:2::0:0:0;48:2::0:0:0ma[0;38:2::0:0:0;48:2::0:0:0mc[0;38:2::0:0:0;48:2::0:0:0mk[0;38:2::0:0:0;48:2::0:0:0m [0;38:2::0:0:0;48:2::0:0:0mo[0;38:2::0:0:0;48:2::0:0:0mn[0;38:2::0:0:0;48:2::0:0:0m [0;38:2::0:0:0;48:2::0:0:0mb[0;38:2::0:0:0;48:2::0:0:0ml[0;38:2::0:0:0;48:2::0:0:0ma[0;38:2::0:0:0;48:2::0:0:0mc[0;38:2::0:0:0;48:2::0:0:0mk[0;38:2::0:0:0;48:2::0:0:0m [0;38:2::0:0:0;48:2::0:0:0mw[0;38:2::0:0:0;48:2::0:0:0m/[0;38:2::0:0:0;48:2::0:0:0m [0;38:2::0:0:0;48:2::0:0:0mi[0;38:2::0:0:0;48:2::0:0:0mg[0;38:2::0:0:0;48:2::0:0:0mn[0;38:2::0:0:0;48:2::0:0:0mo[0;38:2::0:0:0;48:2::0:0:0mr[0;38:2::0:0:0;48:2::0:0:0me[0;38:2::0:0:0;48:2::0:0:0md[0;38:2::0:0:0;48:2::0:0:0m [0;38:2::0:0:0;48:2::0:0:0mb[0;38:2::0:0:0;48:2::0:0:0mi[0;38:2::0:0:0;48:2::0:0:0mt[0;38:2::0:0:0;48:2::0:0:0ms[0;38:2::0:0:0;48:2::0:0:0m,[0;38:2::0:0:0;48:2::0:0:0m italic on default,  -#5[0;1;38:2::128:128:120my[0;1;38:2::128:128:120me[0;1;38:2::128:128:120ms[0;1;38:2::128:128:120m [0;1;38:2::128:128:120mb[0;1;38:2::128:128:120mo[0;1;38:2::128:128:120ml[0;1;38:2::128:128:120md[0;1;38:2::128:128:120m [0;1;38:2::128:128:120m([0;1;38:2::128:128:120m#[0;1;38:2::128:128:120m1[0;1;38:2::128:128:120m8[0;1;38:2::128:128:120m0[0;1;38:2::128:128:120m8[0;1;38:2::128:128:120m0[0;1;38:2::128:128:120m8[0;1;38:2::128:128:120m0[0;1;38:2::128:128:120m) +#5[0;1;38:2::128:128:128my[0;1;38:2::128:128:128me[0;1;38:2::128:128:128ms[0;1;38:2::128:128:128m [0;1;38:2::128:128:128mb[0;1;38:2::128:128:128mo[0;1;38:2::128:128:128ml[0;1;38:2::128:128:128md[0;1;38:2::128:128:128m [0;1;38:2::128:128:128m([0;1;38:2::128:128:128m#[0;1;38:2::128:128:128m1[0;1;38:2::128:128:128m8[0;1;38:2::128:128:128m0[0;1;38:2::128:128:128m8[0;1;38:2::128:128:128m0[0;1;38:2::128:128:128m8[0;1;38:2::128:128:128m0[0;1;38:2::128:128:128m) #5[0;4;38:2::128:128:128my[0;4;38:2::128:128:128me[0;4;38:2::128:128:128ms[0;4;38:2::128:128:128m [0;4;38:2::128:128:128mu[0;4;38:2::128:128:128mn[0;4;38:2::128:128:128md[0;4;38:2::128:128:128me[0;4;38:2::128:128:128mr[0;4;38:2::128:128:128ml[0;4;38:2::128:128:128mi[0;4;38:2::128:128:128mn[0;4;38:2::128:128:128me[0;4;38:2::128:128:128m [0;4;38:2::128:128:128m([0;4;38:2::128:128:128m#[0;4;38:2::128:128:128m2[0;4;38:2::128:128:128m8[0;4;38:2::128:128:128m0[0;4;38:2::128:128:128m8[0;4;38:2::128:128:128m0[0;4;38:2::128:128:128m8[0;4;38:2::128:128:128m0[0;4;38:2::128:128:128m) #5[0;3;38:2::128:128:128my[0;3;38:2::128:128:128me[0;3;38:2::128:128:128ms[0;3;38:2::128:128:128m [0;3;38:2::128:128:128mi[0;3;38:2::128:128:128mt[0;3;38:2::128:128:128ma[0;3;38:2::128:128:128ml[0;3;38:2::128:128:128mi[0;3;38:2::128:128:128mc[0;3;38:2::128:128:128m [0;3;38:2::128:128:128m([0;3;38:2::128:128:128m#[0;3;38:2::128:128:128m8[0;3;38:2::128:128:128m8[0;3;38:2::128:128:128m0[0;3;38:2::128:128:128m8[0;3;38:2::128:128:128m0[0;3;38:2::128:128:128m8[0;3;38:2::128:128:128m0[0;3;38:2::128:128:128m) #5[0;38:2::0:0:0;48:2::255:255:255m#[0;38:2::0:0:0;48:2::255:255:255m0[0;38:2::0:0:0;48:2::255:255:255m0[0;38:2::0:0:0;48:2::255:255:255m0[0;38:2::0:0:0;48:2::255:255:255m0[0;38:2::0:0:0;48:2::255:255:255m0[0;38:2::0:0:0;48:2::255:255:255m0[0;38:2::0:0:0;48:2::255:255:255m [0;38:2::0:0:0;48:2::255:255:255mo[0;38:2::0:0:0;48:2::255:255:255mn[0;38:2::0:0:0;48:2::255:255:255m [0;38:2::0:0:0;48:2::255:255:255m#[0;38:2::0:0:0;48:2::255:255:255mf[0;38:2::0:0:0;48:2::255:255:255mf[0;38:2::0:0:0;48:2::255:255:255mf[0;38:2::0:0:0;48:2::255:255:255mf[0;38:2::0:0:0;48:2::255:255:255mf[0;38:2::0:0:0;48:2::255:255:255mf[0;38:2::0:0:0;48:2::255:255:255m [0;38:2::0:0:255;48:2::255:255:0m#[0;38:2::0:0:255;48:2::255:255:0m0[0;38:2::0:0:255;48:2::255:255:0m0[0;38:2::0:0:255;48:2::255:255:0m0[0;38:2::0:0:255;48:2::255:255:0m0[0;38:2::0:0:255;48:2::255:255:0mf[0;38:2::0:0:255;48:2::255:255:0mf[0;38:2::0:0:255;48:2::255:255:0m [0;38:2::0:0:255;48:2::255:255:0mo[0;38:2::0:0:255;48:2::255:255:0mn[0;38:2::0:0:255;48:2::255:255:0m [0;38:2::0:0:255;48:2::255:255:0m#[0;38:2::0:0:255;48:2::255:255:0mf[0;38:2::0:0:255;48:2::255:255:0mf[0;38:2::0:0:255;48:2::255:255:0mf[0;38:2::0:0:255;48:2::255:255:0mf[0;38:2::0:0:255;48:2::255:255:0m0[0;38:2::0:0:255;48:2::255:255:0m0[0;38:2::0:0:255;48:2::255:255:0m [0;38:2::0:255:0;48:2::255:0:255m#[0;38:2::0:255:0;48:2::255:0:255m0[0;38:2::0:255:0;48:2::255:0:255m0[0;38:2::0:255:0;48:2::255:0:255mf[0;38:2::0:255:0;48:2::255:0:255mf[0;38:2::0:255:0;48:2::255:0:255m0[0;38:2::0:255:0;48:2::255:0:255m0[0;38:2::0:255:0;48:2::255:0:255m [0;38:2::0:255:0;48:2::255:0:255mo[0;38:2::0:255:0;48:2::255:0:255mn[0;38:2::0:255:0;48:2::255:0:255m [0;38:2::0:255:0;48:2::255:0:255m#[0;38:2::0:255:0;48:2::255:0:255mf[0;38:2::0:255:0;48:2::255:0:255mf[0;38:2::0:255:0;48:2::255:0:255m0[0;38:2::0:255:0;48:2::255:0:255m0[0;38:2::0:255:0;48:2::255:0:255mf[0;38:2::0:255:0;48:2::255:0:255mf[0;38:2::0:255:0;48:2::255:0:255m [0;38:2::0:255:255;48:2::255:0:0m#[0;38:2::0:255:255;48:2::255:0:0m0[0;38:2::0:255:255;48:2::255:0:0m0[0;38:2::0:255:255;48:2::255:0:0mf[0;38:2::0:255:255;48:2::255:0:0mf[0;38:2::0:255:255;48:2::255:0:0mf[0;38:2::0:255:255;48:2::255:0:0mf[0;38:2::0:255:255;48:2::255:0:0m [0;38:2::0:255:255;48:2::255:0:0mo[0;38:2::0:255:255;48:2::255:0:0mn[0;38:2::0:255:255;48:2::255:0:0m [0;38:2::0:255:255;48:2::255:0:0m#[0;38:2::0:255:255;48:2::255:0:0mf[0;38:2::0:255:255;48:2::255:0:0mf[0;38:2::0:255:255;48:2::255:0:0m0[0;38:2::0:255:255;48:2::255:0:0m0[0;38:2::0:255:255;48:2::255:0:0m0[0;38:2::0:255:255;48:2::255:0:0m0[0;38:2::0:255:255;48:2::255:0:0m  diff --git a/tests/test_egc/expected.ansi b/tests/test_egc/expected.ansi index efb36e2..b58392a 100644 --- a/tests/test_egc/expected.ansi +++ b/tests/test_egc/expected.ansi @@ -1,7 +1,7 @@ #5aёb #5cёd -#5I￿̤ͯ -#5I￿̤ͯ +#5I̤ͯ +#5I̤ͯ diff --git a/tests/test_invalid_utf8/expected.ansi b/tests/test_invalid_utf8/expected.ansi index ec78ff0..b0094cf 100644 --- a/tests/test_invalid_utf8/expected.ansi +++ b/tests/test_invalid_utf8/expected.ansi @@ -1,5 +1,5 @@ -#5foo� -#5� +#5foo# +#5# diff --git a/tests/test_non_printable/expected.ansi b/tests/test_non_printable/expected.ansi index a243cb7..97d6d6b 100644 --- a/tests/test_non_printable/expected.ansi +++ b/tests/test_non_printable/expected.ansi @@ -1,10 +1,10 @@ -#50x00 � -#50x01 � -#50x08 � -#50x09 � -#50x0a � -#50x1f � -#50x7f � +#50x00 # +#50x01 # +#50x08 # +#50x09 # +#50x0a # +#50x1f # +#50x7f # diff --git a/tests/test_print/expected.ansi b/tests/test_print/expected.ansi index 6d547ca..4be45b8 100644 --- a/tests/test_print/expected.ansi +++ b/tests/test_print/expected.ansi @@ -1,8 +1,8 @@ #5 line1 #5 line2 #5 line3 -#5escape=[�] -#5tab=[�] +#5escape=[#] +#5tab=[#] #5oob_rv1=-9 #5oob_rv2=-9 -- 2.39.5