diff --git a/tests/README.md b/tests/README.md index 1aa98dc9ff..b90d0f41a7 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,8 +1,8 @@ -Redis Test Suite +Valkey Test Suite ================ The normal execution mode of the test suite involves starting and manipulating -local `redis-server` instances, inspecting process state, log files, etc. +local `valkey-server` instances, inspecting process state, log files, etc. The test suite also supports execution against an external server, which is enabled using the `--host` and `--port` parameters. When executing against an @@ -16,7 +16,7 @@ match different external server configurations: | `--singledb` | Only use database 0, don't assume others are supported. | | `--ignore-encoding` | Skip all checks for specific encoding. | | `--ignore-digest` | Skip key value digest validations. | -| `--cluster-mode` | Run in strict Redis Cluster compatibility mode. | +| `--cluster-mode` | Run in strict Valkey Cluster compatibility mode. | | `--large-memory` | Enables tests that consume more than 100mb | Tags diff --git a/tests/helpers/bg_block_op.tcl b/tests/helpers/bg_block_op.tcl index dc4e1a999d..4a779b0b99 100644 --- a/tests/helpers/bg_block_op.tcl +++ b/tests/helpers/bg_block_op.tcl @@ -1,4 +1,4 @@ -source tests/support/redis.tcl +source tests/support/valkey.tcl source tests/support/util.tcl set ::tlsdir "tests/tls" diff --git a/tests/helpers/bg_complex_data.tcl b/tests/helpers/bg_complex_data.tcl index 9c0044e7fd..185e5237ab 100644 --- a/tests/helpers/bg_complex_data.tcl +++ b/tests/helpers/bg_complex_data.tcl @@ -1,4 +1,4 @@ -source tests/support/redis.tcl +source tests/support/valkey.tcl source tests/support/util.tcl set ::tlsdir "tests/tls" diff --git a/tests/helpers/gen_write_load.tcl b/tests/helpers/gen_write_load.tcl index 568f5cde28..3caa290cd2 100644 --- a/tests/helpers/gen_write_load.tcl +++ b/tests/helpers/gen_write_load.tcl @@ -1,4 +1,4 @@ -source tests/support/redis.tcl +source tests/support/valkey.tcl set ::tlsdir "tests/tls" diff --git a/tests/instances.tcl b/tests/instances.tcl index 08f05aa55f..654aae5fa8 100644 --- a/tests/instances.tcl +++ b/tests/instances.tcl @@ -10,7 +10,7 @@ package require Tcl 8.5 set tcl_precision 17 -source ../support/redis.tcl +source ../support/valkey.tcl source ../support/util.tcl source ../support/aofmanifest.tcl source ../support/server.tcl diff --git a/tests/support/redis.tcl b/tests/support/valkey.tcl similarity index 100% rename from tests/support/redis.tcl rename to tests/support/valkey.tcl diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index ff2620f6e8..12f56924a3 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -5,7 +5,7 @@ package require Tcl 8.5 set tcl_precision 17 -source tests/support/redis.tcl +source tests/support/valkey.tcl source tests/support/aofmanifest.tcl source tests/support/server.tcl source tests/support/cluster_util.tcl @@ -501,7 +501,7 @@ proc kill_clients {} { proc force_kill_all_servers {} { foreach p $::active_servers { - puts "Killing still running Redis server $p" + puts "Killing still running Valkey server $p" catch {exec kill -9 $p} } } @@ -628,8 +628,8 @@ proc print_help_screen {} { "--skipfile Name of a file containing test names or regexp patterns (if starts with '/') that should be skipped (one per line). This option can be repeated." "--skiptest Test name or regexp pattern (if starts with '/') to skip. This option can be repeated." "--tags Run only tests having specified tags or not having '-' prefixed tags." - "--dont-clean Don't delete redis log files after the run." - "--dont-pre-clean Don't delete existing redis log files before the run." + "--dont-clean Don't delete valkey log files after the run." + "--dont-pre-clean Don't delete existing valkey log files before the run." "--no-latency Skip latency measurements and validation by some tests." "--stop Blocks once the first test fails." "--loop Execute the specified set of tests forever." @@ -637,11 +637,11 @@ proc print_help_screen {} { "--wait-server Wait after server is started (so that you can attach a debugger)." "--dump-logs Dump server log on test failure." "--tls Run tests in TLS mode." - "--tls-module Run tests in TLS mode with Redis module." + "--tls-module Run tests in TLS mode with Valkey module." "--host Run tests against an external host." "--port TCP port to use against external host." - "--baseport Initial port number for spawned redis servers." - "--portcount Port range for spawned redis servers." + "--baseport Initial port number for spawned valkey servers." + "--portcount Port range for spawned valkey servers." "--singledb Use a single database, avoid SELECT." "--cluster-mode Run tests in cluster protocol compatible mode." "--ignore-encoding Don't validate object encoding." diff --git a/utils/speed-regression.tcl b/utils/speed-regression.tcl index 6802d8cd5e..2a4ecde452 100755 --- a/utils/speed-regression.tcl +++ b/utils/speed-regression.tcl @@ -2,7 +2,7 @@ # Copyright (C) 2011 Salvatore Sanfilippo # Released under the BSD license like Redis itself -source ../tests/support/redis.tcl +source ../tests/support/valkey.tcl set ::port 12123 set ::tests {PING,SET,GET,INCR,LPUSH,LPOP,SADD,SPOP,LRANGE_100,LRANGE_600,MSET} set ::datasize 16 @@ -20,25 +20,25 @@ proc run-tests branches { exec -ignorestderr make 2> /dev/null if {$branch_id == 0} { - puts " copy redis-benchmark from unstable to /tmp..." - exec -ignorestderr cp ./redis-benchmark /tmp + puts " copy valkey-benchmark from unstable to /tmp..." + exec -ignorestderr cp ./valkey-benchmark /tmp incr branch_id continue } # Start the server - puts " starting the server... [exec ./redis-server -v]" - set pids [exec echo "port $::port\nloglevel warning\n" | ./redis-server - > /dev/null 2> /dev/null &] + puts " starting the server... [exec ./valkey-server -v]" + set pids [exec echo "port $::port\nloglevel warning\n" | ./valkey-server - > /dev/null 2> /dev/null &] puts " pids: $pids" after 1000 puts " running the benchmark" set r [redis 127.0.0.1 $::port] set i [$r info] - puts " redis INFO shows version: [lindex [split $i] 0]" + puts " valkey INFO shows version: [lindex [split $i] 0]" $r close - set output [exec /tmp/redis-benchmark -n $::requests -t $::tests -d $::datasize --csv -p $::port] + set output [exec /tmp/valkey-benchmark -n $::requests -t $::tests -d $::datasize --csv -p $::port] lappend runs $b $output puts " killing server..." catch {exec kill -9 [lindex $pids 0]}