aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/test.yml16
-rwxr-xr-xsmoke_test.sh39
2 files changed, 37 insertions, 18 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 07803faf..7b722abe 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -82,3 +82,19 @@ jobs:
82 ./makedist dev 82 ./makedist dev
83 ./smoke_test.sh luarocks-dev.tar.gz 83 ./smoke_test.sh luarocks-dev.tar.gz
84 84
85 ##############################################################################
86 BinaryBuild:
87 runs-on: "ubuntu-latest"
88 steps:
89 - uses: actions/checkout@master
90
91 - uses: leafo/gh-actions-lua@v8.0.0
92 with:
93 luaVersion: "5.4"
94
95 - name: Binary Build Smoke Test
96 run: |
97 ./configure
98 ./makedist dev
99 ./smoke_test.sh luarocks-dev.tar.gz binary
100
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