Skip to content

Commit

Permalink
non-stop test running mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hayamiz committed Dec 28, 2009
1 parent a971d2c commit ab163fe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ update-po:
$(MAKE) -C doc update-po

check:
./test/run-test.sh
./test/run-test.sh -y

clean :
rm -f twittering-mode.elc README NEWS *.zip *.tar.gz
Expand Down
18 changes: 16 additions & 2 deletions test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,28 @@

emacsen="emacs23 emacs22 emacs21"

continue_on_error=
if [ $# -gt 0 ]; then
continue_on_error="yes"
fi
exit_status=0

for emacs in $(echo ${emacsen}); do
if ! which $emacs 1> /dev/null 2> /dev/null; then
echo "No such executable found: ${emacs}: skipped."
continue
fi
$emacs -q --no-site-file --batch --load $(dirname $0)/el-test-runner.el
if [ $? != 0 ]; then
exit_status=$?
if [ $exit_status != 0 ]; then
echo "Test failed on $(${emacs} --version | head -n 1)"
exit 1
if [ -z "${continue_on_error}" ]; then
exit 1
else
echo "sleep 5 secs..."
sleep 5
fi
fi
done

exit $exit_status

0 comments on commit ab163fe

Please sign in to comment.