"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/integration/redis-cli.tcl" between
redis-6.0.7.tar.gz and redis-6.0.8.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

redis-cli.tcl  (redis-6.0.7):redis-cli.tcl  (redis-6.0.8)
skipping to change at line 185 skipping to change at line 185
test_tty_cli "Read last argument from pipe" { test_tty_cli "Read last argument from pipe" {
assert_equal "OK" [run_cli_with_input_pipe "echo foo" set key] assert_equal "OK" [run_cli_with_input_pipe "echo foo" set key]
assert_equal "foo\n" [r get key] assert_equal "foo\n" [r get key]
} }
test_tty_cli "Read last argument from file" { test_tty_cli "Read last argument from file" {
set tmpfile [write_tmpfile "from file"] set tmpfile [write_tmpfile "from file"]
assert_equal "OK" [run_cli_with_input_file $tmpfile set key] assert_equal "OK" [run_cli_with_input_file $tmpfile set key]
assert_equal "from file" [r get key] assert_equal "from file" [r get key]
file delete $tmpfile
} }
test_nontty_cli "Status reply" { test_nontty_cli "Status reply" {
assert_equal "OK" [run_cli set key bar] assert_equal "OK" [run_cli set key bar]
assert_equal "bar" [r get key] assert_equal "bar" [r get key]
} }
test_nontty_cli "Integer reply" { test_nontty_cli "Integer reply" {
r del counter r del counter
assert_equal "1" [run_cli incr counter] assert_equal "1" [run_cli incr counter]
skipping to change at line 218 skipping to change at line 219
test_nontty_cli "Read last argument from pipe" { test_nontty_cli "Read last argument from pipe" {
assert_equal "OK" [run_cli_with_input_pipe "echo foo" set key] assert_equal "OK" [run_cli_with_input_pipe "echo foo" set key]
assert_equal "foo\n" [r get key] assert_equal "foo\n" [r get key]
} }
test_nontty_cli "Read last argument from file" { test_nontty_cli "Read last argument from file" {
set tmpfile [write_tmpfile "from file"] set tmpfile [write_tmpfile "from file"]
assert_equal "OK" [run_cli_with_input_file $tmpfile set key] assert_equal "OK" [run_cli_with_input_file $tmpfile set key]
assert_equal "from file" [r get key] assert_equal "from file" [r get key]
file delete $tmpfile
} }
proc test_redis_cli_rdb_dump {} { proc test_redis_cli_rdb_dump {} {
r flushdb r flushdb
set dir [lindex [r config get dir] 1] set dir [lindex [r config get dir] 1]
assert_equal "OK" [r debug populate 100000 key 1000] assert_equal "OK" [r debug populate 100000 key 1000]
catch {run_cli --rdb "$dir/cli.rdb"} output catch {run_cli --rdb "$dir/cli.rdb"} output
assert_match {*Transfer finished with success*} $output assert_match {*Transfer finished with success*} $output
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)