diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-02-16 15:44:54 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-02-16 15:44:54 +0000 |
commit | 10c09017ad54825707638483f95f3586a59da86e (patch) | |
tree | 53f279f8fd8d787d27cf1929c107841c27949de5 /tests | |
parent | d0163230f0ac07af614f5f042501fb643a0af94f (diff) | |
parent | 0ed691e5632ba3b8fe2805537211be3cd15e3a90 (diff) | |
download | prosody-10c09017ad54825707638483f95f3586a59da86e.tar.gz prosody-10c09017ad54825707638483f95f3586a59da86e.zip |
Merge from waqas
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run_tests.bat | 10 | ||||
-rw-r--r-- | tests/test.lua | 9 |
2 files changed, 17 insertions, 2 deletions
diff --git a/tests/run_tests.bat b/tests/run_tests.bat new file mode 100644 index 00000000..648081f5 --- /dev/null +++ b/tests/run_tests.bat @@ -0,0 +1,10 @@ +@echo off
+
+set oldpath=%path%
+set path=%path%;..;..\lualibs
+
+del reports\*.report
+lua test.lua %*
+
+set path=%oldpath%
+set oldpath=
\ No newline at end of file diff --git a/tests/test.lua b/tests/test.lua index 3b994314..1efab371 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -21,8 +21,13 @@ end local verbosity = tonumber(arg[1]) or 2; -package.path = package.path..";../?.lua"; -package.cpath = package.cpath..";../?.so"; +if os.getenv("WINDIR") then + package.path = package.path..";..\\?.lua"; + package.cpath = package.cpath..";..\\?.dll"; +else + package.path = package.path..";../?.lua"; + package.cpath = package.cpath..";../?.so"; +end require "util.import" |