mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
test: add wraptest
This commit is contained in:
@ -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
|
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
|
# Main Runner
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
@ -43,6 +57,7 @@ RUN apt-get install -y \
|
|||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=alacritty /tmp/alacritty/target/release/alacritty /usr/bin/alacritty
|
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
|
COPY ./run.sh /entrypoint.sh
|
||||||
|
|
||||||
|
4
test/cases/wraptest.sh
Normal file
4
test/cases/wraptest.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
function test_do {
|
||||||
|
xdotool type "wraptest"
|
||||||
|
xdotool key Return
|
||||||
|
}
|
BIN
test/cases/wraptest.sh.alacritty.png
Normal file
BIN
test/cases/wraptest.sh.alacritty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
test/cases/wraptest.sh.ghostty.png
Normal file
BIN
test/cases/wraptest.sh.ghostty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
BIN
test/cases/wraptest.sh.xterm.png
Normal file
BIN
test/cases/wraptest.sh.xterm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
Reference in New Issue
Block a user