From b6affad4a505125be2f6d41b6319048142618d47 Mon Sep 17 00:00:00 2001 From: Dirk Loss Date: Mon, 20 Jul 2009 10:21:37 +0200 Subject: [PATCH] Added Windows batch files for run_scapy and run_tests --- run_scapy.bat | 3 +++ test/run_tests.bat | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 run_scapy.bat create mode 100644 test/run_tests.bat diff --git a/run_scapy.bat b/run_scapy.bat new file mode 100644 index 000000000..6c7cf9297 --- /dev/null +++ b/run_scapy.bat @@ -0,0 +1,3 @@ +@echo off +set PYTHONPATH=%cd% +python -m scapy diff --git a/test/run_tests.bat b/test/run_tests.bat new file mode 100644 index 000000000..1aa3b29d0 --- /dev/null +++ b/test/run_tests.bat @@ -0,0 +1,8 @@ +@echo off +set MYDIR=%cd%\.. +set PYTHONPATH=%MYDIR% +if [%1]==[] ( + python %MYDIR%\scapy\tools\UTscapy.py -t regression.uts -f html -o scapy_regression_test_%DATE%.html +) else ( + python %MYDIR%\scapy\tools\UTscapy.py %1 %2 %3 %4 %5 %6 %7 %8 %9 +)