mirror of https://github.com/secdev/scapy.git
14 lines
376 B
Bash
Executable File
14 lines
376 B
Bash
Executable File
#! /bin/sh
|
|
DIR=$(dirname $0)/..
|
|
if python --version 2>&1 | grep -q '^Python 2'; then
|
|
PYTHON=python
|
|
else
|
|
PYTHON=python2
|
|
fi
|
|
if [ -z "$*" ]
|
|
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
|
|
else
|
|
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@"
|
|
fi
|