scapy/.travis/test.sh

19 lines
361 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Don't run tests that requires root privileges
if [ -z $TRAVIS_SUDO ]
then
UT_FLAGS="-K netaccess"
fi
# Run unit tests
cd test/
for f in *.uts
do
$TRAVIS_SUDO ./run_tests -q -F -t $f $UT_FLAGS || exit $?
done
for f in ../scapy/contrib/*.uts
do
$TRAVIS_SUDO ./run_tests -q -F -t $f $UT_FLAGS -P "load_contrib('$(basename ${f/.uts})')" || exit $?
done