Skip to content

Commit

Permalink
Print version info before running the test
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed May 20, 2011
1 parent b02e81b commit 748a2da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_helper.tcl
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions 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.