diff options
author | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-04-01 17:11:57 +0000 |
---|---|---|
committer | hisham <hisham@9ca3f7c1-7366-0410-b1a3-b5c78f85698c> | 2009-04-01 17:11:57 +0000 |
commit | a88d6f2eeba2b3355c33fac6d736cf6086342f47 (patch) | |
tree | 03ebfa0ced0186e091609cf337e290580fab8c11 /test/test_require.lua | |
download | luarocks-a88d6f2eeba2b3355c33fac6d736cf6086342f47.tar.gz luarocks-a88d6f2eeba2b3355c33fac6d736cf6086342f47.tar.bz2 luarocks-a88d6f2eeba2b3355c33fac6d736cf6086342f47.zip |
Import latest revision from CVS at luaforge.netv1.0v0.5.2v0.5.1v0.5v0.4.3v0.4.2v0.4.1v0.4v0.3.2v0.3.1v0.3v0.2v0.1
git-svn-id: http://luarocks.org/svn/luarocks/trunk@1 9ca3f7c1-7366-0410-b1a3-b5c78f85698c
Diffstat (limited to 'test/test_require.lua')
-rwxr-xr-x | test/test_require.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/test_require.lua b/test/test_require.lua new file mode 100755 index 00000000..2a652d29 --- /dev/null +++ b/test/test_require.lua | |||
@@ -0,0 +1,25 @@ | |||
1 | #!/usr/bin/env lua | ||
2 | |||
3 | local luarocks = require("luarocks.require") | ||
4 | |||
5 | luarocks.set_context("cgilua", "cvs-2") | ||
6 | |||
7 | print(package.path) | ||
8 | |||
9 | print(package.cpath) | ||
10 | |||
11 | local socket = require("socket") | ||
12 | if not socket then os.exit(1) end | ||
13 | print(socket, socket._VERSION) | ||
14 | |||
15 | local socket2 = require("socket") | ||
16 | if not socket2 then os.exit(1) end | ||
17 | print(socket2, socket2._VERSION) | ||
18 | |||
19 | local mime = require("mime") | ||
20 | if not mime then os.exit(1) end | ||
21 | print(mime, mime._VERSION) | ||
22 | |||
23 | local socket = require("lfs") | ||
24 | if not lfs then os.exit(1) end | ||
25 | print(lfs, lfs._VERSION) | ||