Permalink
Browse files

Added a 'runtest' script that is responsible to check if Tcl is avail…

…able and run the test. This is invoked from Makefile as well.
  • Loading branch information...
1 parent 81c74eb commit abd4cd782759c717ea8eb1f5a9ea9a558ac191d7 @antirez committed with Jul 13, 2011
Showing with 11 additions and 2 deletions.
  1. +9 −0 runtest
  2. +2 −2 src/Makefile
View
9 runtest
@@ -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 $*
View
4 src/Makefile
@@ -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

0 comments on commit abd4cd7

Please sign in to comment.