Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Enable one test to be run at once.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Sep 19, 2015
1 parent 2495783 commit 852269e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#!/bin/sh

TESTS=("blog" "gallery" "index")
TESTS=("blog" "gallery" "index" "directories")

for TEST in ${TESTS[*]}; do
echo "#"
echo "# Running test: $TEST"
echo "#"
cd "tests/$TEST"
rm -rf build/
luapress init "/tests/$TEST/index"
luapress
cd ../..
echo
if [[ "$1" = "" ]] || [[ "$1" = "$TEST" ]]; then
echo "#"
echo "# Running test: $TEST"
echo "#"
cd "tests/$TEST"
rm -rf build/
luapress init "/tests/$TEST/index"
luapress
cd ../..
echo
fi
done

0 comments on commit 852269e

Please sign in to comment.