Skip to content

Commit

Permalink
Added a 'runtest' script that is responsible to check if Tcl is avail…
Browse files Browse the repository at this point in the history
…able and run the test. This is invoked from Makefile as well.
  • Loading branch information
antirez committed Jul 15, 2011
1 parent 81c74eb commit abd4cd7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions runtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
TCL=tclsh8.5
which $TCL
if [ "$?" != "0" ]
then
echo "You need '$TCL' in order to run the Redis test"
exit 1
fi
$TCL tests/test_helper.tcl $*
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ clean:
dep:
$(CC) -MM *.c -I ../deps/hiredis -I ../deps/linenoise

test: redis-server
(cd ..; tclsh8.5 tests/test_helper.tcl --tags "${TAGS}")
test: redis-server redis-check-aof
@(cd ..; ./runtest)

bench:
./redis-benchmark
Expand Down

0 comments on commit abd4cd7

Please sign in to comment.