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
3 changed files with 9 additions and 4 deletions

View File

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

View File

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

View File

@ -71,7 +71,10 @@ fi
# NOTE: This is a huge hack right now. # NOTE: This is a huge hack right now.
if [ "$ARG_EXEC" = "ghostty" ]; then 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 # 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 # it doesn't point to a Nix path. If we don't build in Nix, this should