diff options
| -rwxr-xr-x | smoke_test.sh | 12 |
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 | ||
| 3 | tarball="$1" | 3 | tarball="$1" |
| 4 | shift | ||
| 4 | 5 | ||
| 5 | rm -rf smoketestdir | 6 | rm -rf smoketestdir |
| 6 | mkdir smoketestdir | 7 | mkdir smoketestdir |
| @@ -10,9 +11,10 @@ cd smoketestdir | |||
| 10 | tar zxvpf "$(basename "$tarball")" | 11 | tar zxvpf "$(basename "$tarball")" |
| 11 | cd "$(basename "$tarball" .tar.gz)" | 12 | cd "$(basename "$tarball" .tar.gz)" |
| 12 | 13 | ||
| 13 | if [ "$2" = "binary" ] | 14 | if [ "$1" = "binary" ] |
| 14 | then | 15 | then |
| 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 "$@" |
| 36 | make | 38 | make |
| 37 | make install | 39 | make install |
| 38 | cd foobar | 40 | cd 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 "$@" |
| 55 | make bootstrap | 57 | make 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 "$@" |
| 78 | make bootstrap | 80 | make bootstrap |
| 79 | ./luarocks make --pack-binary-rock | 81 | ./luarocks make --pack-binary-rock |
| 80 | cd foorock | 82 | cd foorock |
