Files
attack-defense-platform/panel/run_topo_tests.sh
T

20 lines
544 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Run the topology test suite and report one line per test.
set -u
export PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright
cd /opt/gemastik18-final/panel || exit 1
fail=0
for t in test_topo_pixels test_topo_browser test_topo_viewports test_topo_race test_topo_drag; do
log="/tmp/${t}.log"
timeout 400 node "${t}.js" > "$log" 2>&1
code=$?
if [ $code -eq 0 ]; then
echo "PASS ${t} (exit 0)"
else
echo "FAIL ${t} (exit ${code})"
tail -12 "$log" | sed 's/^/ /'
fail=1
fi
done
exit $fail