Commit abd4cd78 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by antirez
Browse files

Added a 'runtest' script that is responsible to check if Tcl is available and...

Added a 'runtest' script that is responsible to check if Tcl is available and run the test. This is invoked from Makefile as well.
parent 81c74eb4
#!/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 $*
...@@ -195,8 +195,8 @@ clean: ...@@ -195,8 +195,8 @@ clean:
dep: dep:
$(CC) -MM *.c -I ../deps/hiredis -I ../deps/linenoise $(CC) -MM *.c -I ../deps/hiredis -I ../deps/linenoise
test: redis-server test: redis-server redis-check-aof
(cd ..; tclsh8.5 tests/test_helper.tcl --tags "${TAGS}") @(cd ..; ./runtest)
bench: bench:
./redis-benchmark ./redis-benchmark
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment