Only run the netcat tests if nc is installed.

pull/780/head
Fredrik Öhrström 2022-12-29 15:49:14 +01:00
rodzic 3d296ac262
commit 0439a45e20
1 zmienionych plików z 10 dodań i 6 usunięć

16
test.sh
Wyświetl plik

@ -168,14 +168,18 @@ then
(cd ..; ./additional_tests.sh $PROG)
fi
./tests/test_nc1.sh $PROG
if [ "$?" != "0" ]; then RC="1"; fi
# Only run the netcat tests if netcat is installed.
if command -v nc > /dev/null 2> /dev/null
then
./tests/test_nc1.sh $PROG
if [ "$?" != "0" ]; then RC="1"; fi
./tests/test_nc2.sh $PROG
if [ "$?" != "0" ]; then RC="1"; fi
./tests/test_nc2.sh $PROG
if [ "$?" != "0" ]; then RC="1"; fi
./tests/test_nc3.sh $PROG
if [ "$?" != "0" ]; then RC="1"; fi
./tests/test_nc3.sh $PROG
if [ "$?" != "0" ]; then RC="1"; fi
fi
echo Slower tests...