freeswitch/tests/unit/run-tests.sh
2020-01-23 02:29:57 +04:00

28 lines
639 B
Bash
Executable File

#!/bin/bash
# "print_tests" returns relative paths to all the tests
TESTS=$(make -s -C ../.. print_tests)
echo "-----------------------------------------------------------------";
echo "Starting tests";
echo "Tests found: ${TESTS}";
echo "-----------------------------------------------------------------";
echo "Starting" > pids.txt
for i in $TESTS
do
echo "Testing $i" ;
./test.sh "$i" &
pid=($!)
pids+=($pid)
echo "$pid $i" >> pids.txt
echo "----------------" ;
done
for pid in "${pids[@]}"
do
echo "$pid waiting" >> pids.txt
wait "$pid"
echo "$pid finished" >> pids.txt
done
echo "Done running tests!"