Archived
1
0
Fork 0
This repository has been archived on 2026-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
Danmaku/client/test_suite/run_tests.sh

22 lines
401 B
Bash

#!/bin/sh
END_STRING="======= TESTS END"
PROJECT_PATH="test_suite/"
GODOT_BIN="test_suite/bin/godot.elf"
OUT=`$GODOT_BIN --headless --debug --path test_suite/ -s res://runner.gd`
RUN=`echo $OUT | grep "$END_STRING"`
RES=`echo $OUT | grep FAILURE`
echo "$OUT"
if [ -z "$RUN" ]; then
echo "Run failed!"
exit 1
fi
if [ -z "$RES" ]; then
echo "Tests passed!"
exit 0
fi
echo "Tests failed!"
exit 1