Skip to content

Commit

Permalink
bump test env from debian 12 to debian 13
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adsr committed Dec 28, 2024
1 parent b89b08c commit a7b5e8c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_64bit/expected.ansi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#5attr=TB_STRIKEOUT
#5 
#5attr=TB_INVISIBLE
#5attr=TB_UNDERLINE_2


Expand Down
2 changes: 1 addition & 1 deletion tests/test_color_true/expected.ansi
Original file line number Diff line number Diff line change
Expand Up @@ -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 
Expand Down
4 changes: 2 additions & 2 deletions tests/test_egc/expected.ansi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#5aёb
#5cёd
#5I￿̤ͯ
#5I￿̤ͯ
#5I̤ͯ
#5I̤ͯ



Expand Down
4 changes: 2 additions & 2 deletions tests/test_invalid_utf8/expected.ansi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#5foo
#5
#5foo#
#5#



Expand Down
14 changes: 7 additions & 7 deletions tests/test_non_printable/expected.ansi
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#50x00 
#50x01 
#50x08 
#50x09 
#50x0a 
#50x1f 
#50x7f 
#50x00 #
#50x01 #
#50x08 #
#50x09 #
#50x0a #
#50x1f #
#50x7f #



Expand Down
4 changes: 2 additions & 2 deletions tests/test_print/expected.ansi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#5 line1
#5 line2
#5 line3
#5escape=[]
#5tab=[]
#5escape=[#]
#5tab=[#]
#5oob_rv1=-9
#5oob_rv2=-9

Expand Down

0 comments on commit a7b5e8c

Please sign in to comment.