scapy/test/run_tests

11 lines
342 B
Plaintext
Raw Normal View History

2016-03-30 10:27:32 +00:00
#! /bin/sh
2009-02-05 16:03:59 +00:00
DIR=$(dirname $0)/..
PYTHON=${PYTHON:-python}
2017-10-03 18:28:54 +00:00
PYTHONDONTWRITEBYTECODE="True"
if [ -z "$*" ]
2009-02-05 16:03:59 +00:00
then
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -K ipv6 -l -o /tmp/scapy_regression_test_$(date +%Y%m%d-%H%M%S).html
2009-02-05 16:03:59 +00:00
else
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@"
2009-02-05 16:03:59 +00:00
fi