Skip to content
Snippets Groups Projects
Commit e0b3b0ab authored by gpotter2's avatar gpotter2
Browse files

New .bat's + disable __pycache__

parent c1696e49
No related branches found
No related tags found
No related merge requests found
@echo off
set PYTHONPATH=%cd%
python -m scapy.__init__ %*
call run_scapy_py2.bat --nopause
if errorlevel 1 (
PAUSE
call run_scapy_py3.bat --nopause
)
if errorlevel 1 (
PAUSE
)
\ No newline at end of file
@echo off
set PYTHONPATH=%cd%
set PYTHONDONTWRITEBYTECODE=True
"C:\Program Files (x86)\Python3\python.exe" -m scapy.__init__ %*
if errorlevel 1 (
PAUSE
)
@echo off
set PYTHONPATH=%cd%
set PYTHONDONTWRITEBYTECODE=True
if "%1"=="--nopause" (
set nopause="True"
python -m scapy.__init__
) else (
set nopause="False"
python -m scapy.__init__ %*
)
if %errorlevel%==1 if NOT "%nopause%"=="True" (
PAUSE
)
@echo off
set PYTHONPATH=%cd%
set PYTHONDONTWRITEBYTECODE=True
if "%1"=="--nopause" (
set nopause="True"
python3 -m scapy.__init__
) else (
set nopause="False"
python3 -m scapy.__init__ %*
)
if %errorlevel%==1 if NOT "%nopause%"=="True" (
PAUSE
)
#! /bin/sh
DIR=$(dirname $0)/..
PYTHON=${PYTHON:-python}
PYTHONDONTWRITEBYTECODE="True"
if [ -z "$*" ]
then
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -K ipv6 -l -o /tmp/scapy_regression_test_$(date +%Y%m%d-%H%M%S).html
......
@echo off
title UTscapy - All tests
title UTscapy - All tests - PY2
set MYDIR=%cd%\..
set PYTHONPATH=%MYDIR%
if [%1]==[] (
......
@echo off
title UTscapy - All tests - PY3
set MYDIR=%cd%\..
set PYTHONPATH=%MYDIR%
set PYTHONDONTWRITEBYTECODE=True
if [%1]==[] (
python3 "%MYDIR%\scapy\tools\UTscapy.py" -c configs\\windows2.utsc -T bpf.uts -T linux.uts -o scapy_py3_regression_test_%date:~6,4%_%date:~3,2%_%date:~0,2%.html
) else (
python3 "%MYDIR%\scapy\tools\UTscapy.py" %@
)
PAUSE
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment