test: add wraptest
parent
473f749f00
commit
4f85c13d1b
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 |
Loading…
Reference in New Issue