File: run_tests

package info (click to toggle)
scapy 2.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,564 kB
  • ctags: 10,248
  • sloc: python: 49,469; makefile: 61; sh: 21
file content (13 lines) | stat: -rwxr-xr-x 376 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /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