File: test_require.lua

package info (click to toggle)
luarocks 0.6.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 328 kB
  • ctags: 225
  • sloc: sh: 346; makefile: 145
file content (25 lines) | stat: -rwxr-xr-x 527 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env lua

local luarocks = require("luarocks.require")

luarocks.set_context("cgilua", "cvs-2")

print(package.path)

print(package.cpath)

local socket = require("socket")
if not socket then os.exit(1) end
print(socket, socket._VERSION)

local socket2 = require("socket")
if not socket2 then os.exit(1) end
print(socket2, socket2._VERSION)

local mime = require("mime")
if not mime then os.exit(1) end
print(mime, mime._VERSION)

local socket = require("lfs")
if not lfs then os.exit(1) end
print(lfs, lfs._VERSION)