36 lines
607 B
Bash
Executable File
36 lines
607 B
Bash
Executable File
#!/bin/sh
|
|
|
|
EXCLUDES="knet_bench_test api_knet_handle_new_limit_test fun_pmtud_crypto_test api_nozzle_run_updown_test run-tests.sh"
|
|
TESTS_RUN=0
|
|
TESTS_FAILED=0
|
|
|
|
modprobe sctp
|
|
cd /usr/lib64/kronosnet/tests
|
|
|
|
for i in *
|
|
do
|
|
echo $EXCLUDES|grep $i >/dev/null 2>/dev/null
|
|
if [ $? = 1 ]
|
|
then
|
|
echo
|
|
echo "---- running $i"
|
|
./$i
|
|
if [ $? != 0 ]
|
|
then
|
|
TESTS_FAILED=$((TESTS_FAILED + 1))
|
|
echo "FAILED: $i"
|
|
fi
|
|
TESTS_RUN=$((TESTS_RUN + 1))
|
|
fi
|
|
done
|
|
echo
|
|
echo "Tests run: $TESTS_RUN"
|
|
echo "Tests failed: $TESTS_FAILED"
|
|
|
|
if [ $TESTS_FAILED -gt 0 ]
|
|
then
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|