1. 10 Sep, 2020 5 commits
    • Oran Agra's avatar
      handle cur_test for nested tests · 643d3e0b
      Oran Agra authored
      if there are nested tests and nested servers, we need to restore the
      previous value of cur_test when a test exist.
      
      example:
      ```
      test{test 1} {
      	start_server {
      		test{test 1.1 - master only} {
      		}
      		start_server {
      		    test{test 1.2 - with replication} {
                  }
      		}
      	}
      }
      ```
      when `test 1.1 - master only exists`, we're still inside `test 1`
      
      (cherry picked from commit 0a1e7341)
      643d3e0b
    • bodong.ybd's avatar
      Tests: Some fixes for macOS · 781e50d4
      bodong.ybd authored
      1) cur_test: when restart_server, "no such variable" error occurs
        ./runtest --single integration/rdb
        test {client freed during loading}
            SET ::cur_test
            restart_server
              kill_server
                test "Check for memory leaks (pid $pid)"
                SET ::cur_test
                UNSET ::cur_test
            UNSET ::cur_test // This global variable has been unset.
      
      2) `ps --ppid` not available on macOS platform, can be replaced with
      `pgrep -P pid`.
      
      (cherry picked from commit f22fa959)
      781e50d4
    • Oran Agra's avatar
      test infra - add durable mode to work around test suite crashing · 41c7c791
      Oran Agra authored
      in some cases a command that returns an error possibly due to a timing
      issue causes the tcl code to crash and thus prevents the rest of the
      tests from running. this adds an option to make the test proceed despite
      the crash.
      maybe it should be the default mode some day.
      
      (cherry picked from commit fe5da2e6)
      41c7c791
    • Oran Agra's avatar
      test infra - improve test skipping ability · 28e07460
      Oran Agra authored
      - skip full units
      - skip a single test (not just a list of tests)
      - when skipping tag, skip spinning up servers, not just the tests
      - skip tags when running against an external server too
      - allow using multiple tags (split them)
      
      (cherry picked from commit 677d14c2)
      28e07460
    • Oran Agra's avatar
      test infra - write test name to logfile · bce350c6
      Oran Agra authored
      (cherry picked from commit 9d527d07)
      bce350c6
  2. 20 Jul, 2020 1 commit
    • Oran Agra's avatar
      runtest --stop pause stops before terminating the redis server (#7513) · b5c5f870
      Oran Agra authored
      in the majority of the cases (on this rarely used feature) we want to
      stop and be able to connect to the shard with redis-cli.
      since these are two different processes interracting with the tty we
      need to stop both, and we'll have to hit enter twice, but it's not that
      bad considering it is rarely used.
      
      (cherry picked from commit 02ef355f)
      b5c5f870
  3. 29 Oct, 2019 1 commit
    • Oran Agra's avatar
      test infra: improve prints on failed assertions · a0cfd519
      Oran Agra authored
      sometimes we have several assertions with the same condition in the same test
      at different stages, and when these fail (the ones that print the condition
      text) you don't know which one it was. other assertions didn't print the
      condition text (variable names), just the expected and unexpected values.
      
      So now, all assertions print context line, and conditin text.
      
      besides, one of the major differences between 'assert' and 'assert_equal',
      is that the later is able to print the value that doesn't match the expected.
      if there is a rare non-reproducible failure, it is helpful to know what was
      the value the test encountered and how far it was from the threshold.
      
      So now, adding assert_lessthan and assert_range that can be used in some places.
      were we used just 'assert { a > b }' so far.
      a0cfd519
  4. 30 Sep, 2019 1 commit
  5. 30 Jul, 2018 1 commit
    • Oran Agra's avatar
      test suite conveniency improvements · 78292876
      Oran Agra authored
      * allowing --single to be repeated
      * adding --only so that only a specific test inside a unit can be run
      * adding --skiptill useful to resume a test that crashed passed the problematic unit.
        useful together with --clients 1
      * adding --skipfile to use a file containing list of tests names to skip
      * printing the names of the tests that are skiped by skipfile or denytags
      * adding --config to add config file options from command line
      78292876
  6. 25 Apr, 2016 1 commit
  7. 02 Jan, 2015 1 commit
  8. 29 Sep, 2014 1 commit
  9. 22 Feb, 2014 1 commit
    • antirez's avatar
      Sentinel test: framework improved and conf-update unit added. · 8c254415
      antirez authored
      It is now possible to kill and restart sentinel or redis instances for
      more real-world testing.
      
      The 01 unit tests the capability of Sentinel to update the configuration
      of Sentinels rejoining the cluster, however the test is pretty trivial
      and more tests should be added.
      8c254415
  10. 17 Feb, 2014 1 commit
  11. 26 Apr, 2012 2 commits
  12. 06 Jan, 2012 1 commit
  13. 21 Dec, 2011 1 commit
  14. 28 Jul, 2011 1 commit
  15. 11 Jul, 2011 1 commit
  16. 10 Jul, 2011 3 commits
  17. 25 Jun, 2011 1 commit
  18. 22 Feb, 2011 1 commit
  19. 15 Dec, 2010 3 commits
  20. 10 Dec, 2010 1 commit
  21. 15 Oct, 2010 1 commit
  22. 01 Aug, 2010 1 commit
  23. 29 Jul, 2010 1 commit
  24. 16 Jun, 2010 1 commit
  25. 15 Jun, 2010 1 commit
  26. 14 Jun, 2010 1 commit
  27. 04 Jun, 2010 1 commit
  28. 02 Jun, 2010 4 commits