scapy/test/run_tests

14 lines
373 B
Plaintext
Raw Normal View History

2012-12-30 10:22:47 +00:00
#! /bin/bash
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
2009-02-05 16:03:59 +00:00
if [ "$*" == "" ]
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