Skip to content
Browse files

Print version info before running the test

  • Loading branch information...
1 parent b02e81b commit 748a2da3e84893b9034d55372e332d3d1eebb129 @antirez committed May 20, 2011
Showing with 7 additions and 0 deletions.
  1. +1 −0 tests/test_helper.tcl
  2. +6 −0 tests/unit/printver.tcl
View
1 tests/test_helper.tcl
@@ -108,6 +108,7 @@ proc cleanup {} {
}
proc execute_everything {} {
+ execute_tests "unit/printver"
execute_tests "unit/auth"
execute_tests "unit/protocol"
execute_tests "unit/basic"
View
6 tests/unit/printver.tcl
@@ -0,0 +1,6 @@
+start_server {} {
+ set i [r info]
+ regexp {redis_version:(.*?)\r\n} $i - version
+ regexp {redis_git_sha1:(.*?)\r\n} $i - sha1
+ puts "Testing Redis version $version ($sha1)"
+}

0 comments on commit 748a2da

Please sign in to comment.
Something went wrong with that request. Please try again.