freeswitch/tests/unit/run-tests.sh

28 lines
639 B
Bash
Raw Normal View History

2019-11-21 13:43:28 -05:00
#!/bin/bash
# "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!"