aboutsummaryrefslogtreecommitdiff
path: root/smoke_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'smoke_test.sh')
-rwxr-xr-xsmoke_test.sh55
1 files changed, 55 insertions, 0 deletions
diff --git a/smoke_test.sh b/smoke_test.sh
new file mode 100755
index 00000000..e57a8d02
--- /dev/null
+++ b/smoke_test.sh
@@ -0,0 +1,55 @@
1#!/bin/sh -e
2
3tarball="$1"
4
5rm -rf smoketestdir
6mkdir smoketestdir
7cp "$tarball" smoketestdir
8cd smoketestdir
9
10tar zxvpf "$(basename "$tarball")"
11cd "$(basename "$tarball" .tar.gz)"
12./configure --prefix=foobar
13make
14./luarocks --verbose
15./luarocks --verbose install inspect
16./luarocks --verbose show inspect
17./lua -e 'print(assert(require("inspect")(_G)))'
18make install
19cd foobar
20bin/luarocks --verbose
21bin/luarocks --verbose install inspect
22bin/luarocks --verbose show inspect
23(
24 eval $(bin/luarocks path)
25 lua -e 'print(assert(require("inspect")(_G)))'
26)
27cd ..
28rm -rf foobar
29
30if [ "$2" = "binary" ]
31then
32 make binary
33 make install-binary
34 cd foobar
35 bin/luarocks
36 bin/luarocks install inspect
37 bin/luarocks show inspect
38 (
39 eval $(bin/luarocks path)
40 lua -e 'print(assert(require("inspect")(_G)))'
41 )
42 cd ..
43 rm -rf foobar
44fi
45
46if [ "$3" = "windows" ]
47then
48 make windows-binary
49fi
50
51cd ..
52rm -rf smoketestdir
53echo
54echo "Full test ran and nothing caught fire!"
55echo