diff --git a/test/Dockerfile b/test/Dockerfile index bc1e5095f..910df5d91 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -15,6 +15,20 @@ RUN git checkout tags/$(git describe --tags $(git rev-list --tags --max-count=1) RUN RUSTFLAGS='-C link-arg=-s' cargo build --release +#-------------------------------------------------------------------- +# Wraptest +#-------------------------------------------------------------------- +FROM ubuntu:22.04 AS wraptest + +RUN apt-get update && apt-get install -y \ + build-essential git + +RUN git clone https://github.com/mattiase/wraptest.git /tmp/wraptest + +WORKDIR /tmp/wraptest + +RUN gcc -o wraptest wraptest.c + #-------------------------------------------------------------------- # Main Runner #-------------------------------------------------------------------- @@ -43,6 +57,7 @@ RUN apt-get install -y \ RUN rm -rf /var/lib/apt/lists/* COPY --from=alacritty /tmp/alacritty/target/release/alacritty /usr/bin/alacritty +COPY --from=wraptest /tmp/wraptest/wraptest /usr/bin/wraptest COPY ./run.sh /entrypoint.sh diff --git a/test/cases/wraptest.sh b/test/cases/wraptest.sh new file mode 100644 index 000000000..60fc36c22 --- /dev/null +++ b/test/cases/wraptest.sh @@ -0,0 +1,4 @@ +function test_do { + xdotool type "wraptest" + xdotool key Return +} diff --git a/test/cases/wraptest.sh.alacritty.png b/test/cases/wraptest.sh.alacritty.png new file mode 100644 index 000000000..543d0356c Binary files /dev/null and b/test/cases/wraptest.sh.alacritty.png differ diff --git a/test/cases/wraptest.sh.ghostty.png b/test/cases/wraptest.sh.ghostty.png new file mode 100644 index 000000000..2aa6797fe Binary files /dev/null and b/test/cases/wraptest.sh.ghostty.png differ diff --git a/test/cases/wraptest.sh.xterm.png b/test/cases/wraptest.sh.xterm.png new file mode 100644 index 000000000..23ed5dc38 Binary files /dev/null and b/test/cases/wraptest.sh.xterm.png differ