mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
test: switch to Ubuntu for now
We can't use Alpine because we can't yet compile for musl.
This commit is contained in:
@ -1,45 +1,48 @@
|
|||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# vttest
|
# Alacritty since it has no build in Ubuntu
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
FROM alpine:3.16 AS vttest
|
FROM rust AS alacritty
|
||||||
|
|
||||||
RUN apk add --no-cache build-base curl
|
RUN apt-get update && apt-get install -y \
|
||||||
|
cmake pkg-config libfreetype6-dev libfontconfig1-dev \
|
||||||
|
libxcb-xfixes0-dev python3 git
|
||||||
|
|
||||||
RUN curl -o vttest.tar.gz https://invisible-island.net/archives/vttest/vttest-20220215.tgz && \
|
RUN git clone https://github.com/alacritty/alacritty.git /tmp/alacritty
|
||||||
tar xvzf vttest.tar.gz && \
|
|
||||||
cd vttest-20220215 && \
|
WORKDIR /tmp/alacritty
|
||||||
./configure && \
|
|
||||||
make && \
|
RUN git checkout tags/$(git describe --tags $(git rev-list --tags --max-count=1))
|
||||||
cp ./vttest /
|
|
||||||
|
RUN RUSTFLAGS='-C link-arg=-s' cargo build --release
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# main runner
|
# Main Runner
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
FROM alpine:3.16
|
# Note: we used to use Alpine, but we need to use an OS that is more
|
||||||
|
# glibc friendly because on Linux we still require glibc (active todo to
|
||||||
|
# support musl).
|
||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
# Base packages. A good set of this is just to get X (xvfb) and OpenGL
|
# Base deps
|
||||||
# software rendering working (all the mesa drivers).
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN apk add --no-cache \
|
fonts-inconsolata \
|
||||||
bash \
|
i3 \
|
||||||
grep \
|
|
||||||
procps \
|
|
||||||
font-inconsolata-nerd \
|
|
||||||
i3wm \
|
|
||||||
imagemagick \
|
imagemagick \
|
||||||
libxrandr \
|
libgl1-mesa-dev \
|
||||||
mesa-dev \
|
libxcursor1 \
|
||||||
mesa-dri-gallium \
|
patchelf \
|
||||||
mesa-gl \
|
software-properties-common \
|
||||||
|
xdotool \
|
||||||
xvfb \
|
xvfb \
|
||||||
xvfb-run \
|
vttest
|
||||||
xdotool
|
|
||||||
|
|
||||||
# Our terminals
|
# Terminals
|
||||||
RUN apk add --no-cache \
|
RUN apt-get install -y \
|
||||||
alacritty \
|
|
||||||
xterm
|
xterm
|
||||||
|
|
||||||
COPY --from=vttest /vttest /usr/bin/vttest
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY --from=alacritty /tmp/alacritty/target/release/alacritty /usr/bin/alacritty
|
||||||
|
|
||||||
COPY ./run.sh /entrypoint.sh
|
COPY ./run.sh /entrypoint.sh
|
||||||
|
|
||||||
|
BIN
test/cases/vttest/1_1.sh.ghostty.png
Normal file
BIN
test/cases/vttest/1_1.sh.ghostty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
BIN
test/cases/vttest/launch.sh.alacritty.png
Normal file
BIN
test/cases/vttest/launch.sh.alacritty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@ -55,8 +55,14 @@ fi
|
|||||||
echo "Term: ${ARG_EXEC}"
|
echo "Term: ${ARG_EXEC}"
|
||||||
echo "Case: ${ARG_CASE}"
|
echo "Case: ${ARG_CASE}"
|
||||||
|
|
||||||
|
# NOTE: This is a huge hack right now.
|
||||||
if [ "$ARG_EXEC" = "ghostty" ]; then
|
if [ "$ARG_EXEC" = "ghostty" ]; then
|
||||||
ARG_EXEC="/src/ghostty";
|
ARG_EXEC="/src/ghostty";
|
||||||
|
|
||||||
|
# We build in Nix (maybe). To be sure, we replace the interpreter so
|
||||||
|
# it doesn't point to a Nix path. If we don't build in Nix, this should
|
||||||
|
# still be safe.
|
||||||
|
patchelf --set-interpreter /lib/ld-linux-$(uname -m).so.1 ${ARG_EXEC}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user