test: add wraptest

This commit is contained in:
Mitchell Hashimoto
2022-07-25 08:23:50 -07:00
parent 473f749f00
commit 4f85c13d1b
5 changed files with 19 additions and 0 deletions

View File

@ -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

4
test/cases/wraptest.sh Normal file
View File

@ -0,0 +1,4 @@
function test_do {
xdotool type "wraptest"
xdotool key Return
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB