aboutsummaryrefslogtreecommitdiff
path: root/smoke_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'smoke_test.sh')
-rwxr-xr-xsmoke_test.sh39
1 files changed, 21 insertions, 18 deletions
diff --git a/smoke_test.sh b/smoke_test.sh
index bb1a5984..86b85c51 100755
--- a/smoke_test.sh
+++ b/smoke_test.sh
@@ -7,12 +7,31 @@ mkdir smoketestdir
7cp "$tarball" smoketestdir 7cp "$tarball" smoketestdir
8cd smoketestdir 8cd smoketestdir
9 9
10tar zxvpf "$(basename "$tarball")"
11cd "$(basename "$tarball" .tar.gz)"
12
13if [ "$2" = "binary" ]
14then
15 ./configure --prefix=foobar
16 make binary
17 make install-binary
18 cd foobar
19 bin/luarocks
20 bin/luarocks install inspect
21 bin/luarocks show inspect
22 (
23 eval $(bin/luarocks path)
24 lua -e 'print(assert(require("inspect")(_G)))'
25 )
26 cd ..
27 rm -rf foobar
28 exit 0
29fi
30
10################################################################################ 31################################################################################
11# test installation with make install 32# test installation with make install
12################################################################################ 33################################################################################
13 34
14tar zxvpf "$(basename "$tarball")"
15cd "$(basename "$tarball" .tar.gz)"
16./configure --prefix=foobar 35./configure --prefix=foobar
17make 36make
18make install 37make install
@@ -80,22 +99,6 @@ rm -rf foorock2
80 99
81################################################################################ 100################################################################################
82 101
83if [ "$2" = "binary" ]
84then
85 make binary
86 make install-binary
87 cd foobar
88 bin/luarocks
89 bin/luarocks install inspect
90 bin/luarocks show inspect
91 (
92 eval $(bin/luarocks path)
93 lua -e 'print(assert(require("inspect")(_G)))'
94 )
95 cd ..
96 rm -rf foobar
97fi
98
99if [ "$3" = "windows" ] 102if [ "$3" = "windows" ]
100then 103then
101 make windows-binary 104 make windows-binary