From 48b1370f94df2abc447030559c4284d5b1cedb8d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 20 Jan 2023 10:41:58 -0800 Subject: make_artifacts.sh: remove cabal test, add sanity checks. Check that the binary has lua and server support, and that it contains baked-in templates. --- linux/make_artifacts.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh index 41700d409..1da9efbd3 100644 --- a/linux/make_artifacts.sh +++ b/linux/make_artifacts.sh @@ -23,12 +23,17 @@ ghc --version cabal update cabal clean -cabal test $CABALOPTS --ghc-options="$GHCOPTS" all cabal install $CABALOPTS --ghc-options="$GHCOPTS" --install-method=copy --installdir="$ARTIFACTS" pandoc-cli # Confirm that we have static builds file "$ARTIFACTS/pandoc" | grep "statically linked" +# Confirm that it has +lua and +server support +"./$ARTIFACTS/pandoc --version" | grep -q '+server +lua' + +# Confirm that it has data files baked in: +strings "./$ARTIFACTS/pandoc" | grep -q '\$title\$' + make_deb() { VERSION=$("$ARTIFACTS"/pandoc --version | awk '{print $2; exit;}') REVISION=${REVISION:-1} -- cgit v1.2.3