From a5f6b3e2f9ed7eb6788bf6568c31746185bcfa86 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Tue, 29 Nov 2011 22:55:54 +1030 Subject: Add automated build testing (LuaRocks, Makefile) --- runtests.sh | 45 +++++++++++++++++++++++++++++++++++++++++++++ tests/test.lua | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100755 runtests.sh diff --git a/runtests.sh b/runtests.sh new file mode 100755 index 0000000..1e0a5cd --- /dev/null +++ b/runtests.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +MAKE=make +#MAKE=gmake + +EGREP="grep -E" +#EGREP="egrep" + +set -e + +do_tests() { + echo + cd tests + ./test.lua | $EGREP 'version|PASS|FAIL' + cd .. +} + +cat <