blob: 52ca07df3795a4cd6b1f899a0d6c1049999c529e [file] [log] [blame]
Guillaume Valadon0d5cc452016-03-30 12:27:32 +02001#! /bin/sh
Philb5f59b62009-02-05 17:03:59 +01002DIR=$(dirname $0)/..
Pierre LALET37cc56c2016-03-26 12:39:20 +01003if python --version 2>&1 | grep -q '^Python 2'; then
Pierre LALET6dcd8912016-03-15 09:08:41 +01004 PYTHON=python
5else
6 PYTHON=python2
7fi
Victor Engmarkeb40f182016-06-11 10:16:51 +01008if [ -z "$*" ]
Philb5f59b62009-02-05 17:03:59 +01009then
Victor Engmarkeb40f182016-06-11 10:16:51 +010010 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
Philb5f59b62009-02-05 17:03:59 +010011else
Victor Engmarkeb40f182016-06-11 10:16:51 +010012 PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@"
Philb5f59b62009-02-05 17:03:59 +010013fi