aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2026-01-15 12:16:31 -0300
committerHisham Muhammad <hisham@gobolinux.org>2026-01-15 12:33:52 -0300
commite1bcd7dfaec0f5c10cab060f6d9e97329c048162 (patch)
tree921cc7ac008d92a10695b13e0ced396842c54e88
parent4188fdb235aca66530d274c782374cf6afba09b8 (diff)
downloadluarocks-e1bcd7dfaec0f5c10cab060f6d9e97329c048162.tar.gz
luarocks-e1bcd7dfaec0f5c10cab060f6d9e97329c048162.tar.bz2
luarocks-e1bcd7dfaec0f5c10cab060f6d9e97329c048162.zip
smoke test: allow passing configure flags
-rwxr-xr-xsmoke_test.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/smoke_test.sh b/smoke_test.sh
index 86b85c51..e0d6ffa9 100755
--- a/smoke_test.sh
+++ b/smoke_test.sh
@@ -1,6 +1,7 @@
1#!/bin/sh -e 1#!/bin/sh -e
2 2
3tarball="$1" 3tarball="$1"
4shift
4 5
5rm -rf smoketestdir 6rm -rf smoketestdir
6mkdir smoketestdir 7mkdir smoketestdir
@@ -10,9 +11,10 @@ cd smoketestdir
10tar zxvpf "$(basename "$tarball")" 11tar zxvpf "$(basename "$tarball")"
11cd "$(basename "$tarball" .tar.gz)" 12cd "$(basename "$tarball" .tar.gz)"
12 13
13if [ "$2" = "binary" ] 14if [ "$1" = "binary" ]
14then 15then
15 ./configure --prefix=foobar 16 shift
17 ./configure --prefix=foobar "$@"
16 make binary 18 make binary
17 make install-binary 19 make install-binary
18 cd foobar 20 cd foobar
@@ -32,7 +34,7 @@ fi
32# test installation with make install 34# test installation with make install
33################################################################################ 35################################################################################
34 36
35./configure --prefix=foobar 37./configure --prefix=foobar "$@"
36make 38make
37make install 39make install
38cd foobar 40cd foobar
@@ -51,7 +53,7 @@ rm -rf foobar
51# test installation with make bootstrap 53# test installation with make bootstrap
52################################################################################ 54################################################################################
53 55
54./configure --prefix=fooboot 56./configure --prefix=fooboot "$@"
55make bootstrap 57make bootstrap
56./luarocks --verbose 58./luarocks --verbose
57./luarocks --verbose install inspect 59./luarocks --verbose install inspect
@@ -74,7 +76,7 @@ rm -rf fooboot
74# test installation with luarocks install 76# test installation with luarocks install
75################################################################################ 77################################################################################
76 78
77./configure --prefix=foorock 79./configure --prefix=foorock "$@"
78make bootstrap 80make bootstrap
79./luarocks make --pack-binary-rock 81./luarocks make --pack-binary-rock
80cd foorock 82cd foorock