mirror of
https://github.com/fluencelabs/redis
synced 2025-04-26 02:52:15 +00:00
Added a 'runtest' script that is responsible to check if Tcl is available and run the test. This is invoked from Makefile as well.
This commit is contained in:
parent
81c74eb48f
commit
abd4cd7827
9
runtest
Executable file
9
runtest
Executable file
@ -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 $*
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user