diff options
Diffstat (limited to 'test/scripts')
-rwxr-xr-x | test/scripts/a | 9 | ||||
-rw-r--r-- | test/scripts/a.py | 9 | ||||
-rwxr-xr-x | test/scripts/err_data | 2 | ||||
-rwxr-xr-x | test/scripts/err_return | 6 | ||||
-rw-r--r-- | test/scripts/loaderr.py | 3 | ||||
-rw-r--r-- | test/scripts/nonexecutable | 0 | ||||
-rw-r--r-- | test/scripts/syntaxerr.py | 3 |
7 files changed, 15 insertions, 17 deletions
diff --git a/test/scripts/a b/test/scripts/a deleted file mode 100755 index fb4a7b82..00000000 --- a/test/scripts/a +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python -import sys -sys.path.insert(0, "..") -from libmproxy import script - -f = script.load_flow() -f.request.host = "TESTOK" -print >> sys.stderr, "DEBUG" -script.return_flow(f) diff --git a/test/scripts/a.py b/test/scripts/a.py new file mode 100644 index 00000000..0a21b619 --- /dev/null +++ b/test/scripts/a.py @@ -0,0 +1,9 @@ + +var = 0 +def here(ctx): + global var + var += 1 + return var + +def errargs(): + pass diff --git a/test/scripts/err_data b/test/scripts/err_data deleted file mode 100755 index 4bb1b1ba..00000000 --- a/test/scripts/err_data +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env python -print "NONSENSE" diff --git a/test/scripts/err_return b/test/scripts/err_return deleted file mode 100755 index 09e9eb5e..00000000 --- a/test/scripts/err_return +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python -import sys -sys.path.insert(0, "..") -print >> sys.stderr, "output" -sys.exit(1) - diff --git a/test/scripts/loaderr.py b/test/scripts/loaderr.py new file mode 100644 index 00000000..8dc4d56d --- /dev/null +++ b/test/scripts/loaderr.py @@ -0,0 +1,3 @@ + + +a = x diff --git a/test/scripts/nonexecutable b/test/scripts/nonexecutable deleted file mode 100644 index e69de29b..00000000 --- a/test/scripts/nonexecutable +++ /dev/null diff --git a/test/scripts/syntaxerr.py b/test/scripts/syntaxerr.py new file mode 100644 index 00000000..219d6b84 --- /dev/null +++ b/test/scripts/syntaxerr.py @@ -0,0 +1,3 @@ + + +a + |