From e1bcd7dfaec0f5c10cab060f6d9e97329c048162 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 15 Jan 2026 12:16:31 -0300 Subject: smoke test: allow passing configure flags --- smoke_test.sh | 12 +++++++----- 1 file 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 @@ #!/bin/sh -e tarball="$1" +shift rm -rf smoketestdir mkdir smoketestdir @@ -10,9 +11,10 @@ cd smoketestdir tar zxvpf "$(basename "$tarball")" cd "$(basename "$tarball" .tar.gz)" -if [ "$2" = "binary" ] +if [ "$1" = "binary" ] then - ./configure --prefix=foobar + shift + ./configure --prefix=foobar "$@" make binary make install-binary cd foobar @@ -32,7 +34,7 @@ fi # test installation with make install ################################################################################ -./configure --prefix=foobar +./configure --prefix=foobar "$@" make make install cd foobar @@ -51,7 +53,7 @@ rm -rf foobar # test installation with make bootstrap ################################################################################ -./configure --prefix=fooboot +./configure --prefix=fooboot "$@" make bootstrap ./luarocks --verbose ./luarocks --verbose install inspect @@ -74,7 +76,7 @@ rm -rf fooboot # test installation with luarocks install ################################################################################ -./configure --prefix=foorock +./configure --prefix=foorock "$@" make bootstrap ./luarocks make --pack-binary-rock cd foorock -- cgit v1.2.3-55-g6feb