diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-02-13 22:21:59 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-02-13 22:21:59 +0500 |
commit | 70133fb356f2a9d8902dd0f685d354f8953d90eb (patch) | |
tree | 66e40bfc60a8af591a02b6ec487872d9b5407867 /tests/test.lua | |
parent | b164423d1fa554646a2984494a377aadb2259d25 (diff) | |
download | prosody-70133fb356f2a9d8902dd0f685d354f8953d90eb.tar.gz prosody-70133fb356f2a9d8902dd0f685d354f8953d90eb.zip |
Fixed tests/test.lua to work on Windows
Diffstat (limited to 'tests/test.lua')
-rw-r--r-- | tests/test.lua | 9 |
1 files changed, 7 insertions, 2 deletions
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" |