2019-11-21 13:43:28 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-01-18 15:05:25 -05:00
|
|
|
# "print_tests" returns relative paths to all the tests
|
|
|
|
TESTS=$(make -s -C ../.. print_tests)
|
|
|
|
|
2019-11-21 13:43:28 -05:00
|
|
|
echo "-----------------------------------------------------------------";
|
|
|
|
echo "Starting tests";
|
|
|
|
echo "Tests found: ${TESTS}";
|
|
|
|
echo "-----------------------------------------------------------------";
|
2020-01-22 11:36:53 -05:00
|
|
|
echo "Starting" > pids.txt
|
2019-11-21 13:43:28 -05:00
|
|
|
for i in $TESTS
|
|
|
|
do
|
|
|
|
echo "Testing $i" ;
|
2020-01-22 11:36:53 -05:00
|
|
|
./test.sh "$i" &
|
|
|
|
pid=($!)
|
|
|
|
pids+=($pid)
|
|
|
|
echo "$pid $i" >> pids.txt
|
2019-11-21 13:43:28 -05:00
|
|
|
echo "----------------" ;
|
|
|
|
done
|
2020-01-22 11:36:53 -05:00
|
|
|
|
|
|
|
for pid in "${pids[@]}"
|
|
|
|
do
|
|
|
|
echo "$pid waiting" >> pids.txt
|
|
|
|
wait "$pid"
|
|
|
|
echo "$pid finished" >> pids.txt
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "Done running tests!"
|