MineClone2/test.sh

16 lines
268 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -ex
which luarocks && eval $(luarocks path)
which luarocks-5.3 && eval $(luarocks-5.3 path)
sh tests/luacheck/test.sh || true
# Run unit tests
find ./ -name 'unit-test.lua' | while read TEST; do
(
cd $(dirname $TEST)
busted unit-test.lua
)
done