scapy/test/run_tests

14 lines
376 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)/..
if python --version 2>&1 | grep -q '^Python 2'; then
PYTHON=python
else
PYTHON=python2
fi
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 -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