aboutsummaryrefslogtreecommitdiff
path: root/smoke_test.sh
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-03-11 13:18:44 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-03-11 19:46:57 +0000
commita59747ce4e0379fb696d882aac2869e2c5b026a1 (patch)
tree9f3c10d4893d648f3a3bd3060814c92dd95853b4 /smoke_test.sh
parent24a8f07810f2b961b2f14b013bac7a5365354b40 (diff)
downloadluarocks-a59747ce4e0379fb696d882aac2869e2c5b026a1.tar.gz
luarocks-a59747ce4e0379fb696d882aac2869e2c5b026a1.tar.bz2
luarocks-a59747ce4e0379fb696d882aac2869e2c5b026a1.zip
ci: add binary build smoke test
Diffstat (limited to '')
-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