test: run-all runs in parallel

This commit is contained in:
Mitchell Hashimoto 2022-07-24 16:47:47 -07:00
parent e66a4fcab6
commit f11c82853f
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
3 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,7 @@
, gdb
, glxinfo
, parallel
, pkg-config
, scdoc
, tracy
@ -31,6 +32,7 @@
# Testing
gdb
parallel
tracy
vttest
];

View File

@ -18,9 +18,9 @@ find ${DIR}/cases \
-type f \
-name '*.sh' | \
sort | \
xargs \
-I '{}' \
${DIR}/run-host.sh \
parallel \
--will-cite \
${DIR}/run-host.sh \
--case '{}' \
--rewrite-abs-path \
$@

View File

@ -71,7 +71,10 @@ fi
# NOTE: This is a huge hack right now.
if [ "$ARG_EXEC" = "ghostty" ]; then
ARG_EXEC="/src/ghostty";
ARG_EXEC="/tmp/ghostty";
# Copy so we don't read/write race when running in parallel
cp /src/ghostty ${ARG_EXEC}
# 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