1. 29 7月, 2019 1 次提交
  2. 28 11月, 2017 1 次提交
  3. 13 11月, 2017 1 次提交
  4. 08 11月, 2017 1 次提交
  5. 31 10月, 2017 1 次提交
  6. 13 8月, 2017 1 次提交
  7. 07 8月, 2017 1 次提交
  8. 02 8月, 2017 1 次提交
  9. 28 7月, 2017 1 次提交
  10. 27 7月, 2017 1 次提交
    • P
      Update the test framework so that the need for test_main is removed. Everything · ad887416
      Pauli 提交于
      that needed test_main now works using the same infrastructure as tests that used
      register_tests.
      
      This meant:
      * renaming register_tests to setup_tests and giving it a success/failure return.
      * renaming the init_test function to setup_test_framework.
      * renaming the finish_test function to pulldown_test_framework.
      * adding a user provided global_init function that runs before the test frame
          work is initialised.  It returns a failure indication that stops the stest.
      * adding helper functions that permit tests to access their command line args.
      * spliting the BIO initialisation and finalisation out from the test setup and
          teardown.
      * hiding some of the now test internal functions.
      * fix the comments in testutil.h
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/3953)
      ad887416
  11. 05 7月, 2017 1 次提交
  12. 23 6月, 2017 1 次提交
  13. 20 6月, 2017 1 次提交
  14. 17 6月, 2017 1 次提交
  15. 10 6月, 2017 1 次提交
  16. 06 6月, 2017 1 次提交
  17. 12 5月, 2017 1 次提交
  18. 10 5月, 2017 2 次提交
  19. 28 4月, 2017 3 次提交
  20. 25 4月, 2017 3 次提交
  21. 19 4月, 2017 1 次提交
  22. 13 4月, 2017 1 次提交
  23. 11 4月, 2017 1 次提交
  24. 29 3月, 2017 1 次提交
  25. 24 2月, 2017 1 次提交
  26. 09 11月, 2016 1 次提交
    • E
      Add main() test methods to reduce test boilerplate. · e364c3b2
      Emilia Kasper 提交于
      Simple tests only need to implement register_tests().
      Tests that need a custom main() should implement test_main(). This will
      be wrapped in a main() that performs common setup/teardown (currently
      crypto-mdebug).
      
      Note that for normal development, enable-asan is usually
      sufficient for detecting leaks, and more versatile.
      
      enable-crypto-mdebug is stricter as it will also
      insist that all static variables be freed. This is useful for debugging
      library init/deinit; however, it also means that test_main() must free
      everything it allocates.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      e364c3b2
  27. 07 11月, 2016 1 次提交
    • E
      Simplify tests part 2 · d836d71b
      Emilia Kasper 提交于
      1) Remove some unnecessary fixtures
      2) Add EXECUTE_TEST_NO_TEARDOWN shorthand when a fixture exists but has
      no teardown.
      3) Fix return values in ct_test.c (introduced by an earlier refactoring,
      oops)
      
      Note that for parameterized tests, the index (test vector) usually holds all the
      customization, and there should be no need for a separate test
      fixture. The CTS test is an exception: it demonstrates how to combine
      customization with parameterization.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      d836d71b
  28. 04 11月, 2016 1 次提交
  29. 02 11月, 2016 1 次提交
  30. 10 8月, 2016 1 次提交
  31. 19 7月, 2016 1 次提交
  32. 18 5月, 2016 1 次提交
  33. 05 4月, 2016 2 次提交
    • E
      testutil: return 1 on success · ababe86b
      Emilia Kasper 提交于
      Require that test methods return 1 on success (not 0). This is more
      customary for OpenSSL.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      ababe86b
    • E
      New SSL test framework · 453dfd8d
      Emilia Kasper 提交于
      Currently, SSL tests are configured via command-line switches to
      ssltest.c. This results in a lot of duplication between ssltest.c and
      apps, and a complex setup. ssltest.c is also simply old and needs
      maintenance.
      
      Instead, we already have a way to configure SSL servers and clients, so
      we leverage that. SSL tests can now be configured from a configuration
      file. Test servers and clients are configured using the standard
      ssl_conf module. Additional test settings are configured via a test
      configuration.
      
      Moreover, since the CONF language involves unnecessary boilerplate, the
      test conf itself is generated from a shorter Perl syntax.
      
      The generated testcase files are checked in to the repo to make
      it easier to verify that the intended test cases are in fact run; and to
      simplify debugging failures.
      
      To demonstrate the approach, min/max protocol tests are converted to the
      new format. This change also fixes MinProtocol and MaxProtocol
      handling. It was previously requested that an SSL_CTX have both the
      server and client flags set for these commands; this clearly can never work.
      
      Guide to this PR:
       - test/ssl_test.c - test framework
       - test/ssl_test_ctx.* - test configuration structure
       - test/handshake_helper.* - new SSL test handshaking code
       - test/ssl-tests/ - test configurations
       - test/generate_ssl_tests.pl - script for generating CONF-style test
         configurations from perl inputs
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      453dfd8d
  34. 27 1月, 2016 1 次提交
    • R
      Remove /* foo.c */ comments · 34980760
      Rich Salz 提交于
      This was done by the following
              find . -name '*.[ch]' | /tmp/pl
      where /tmp/pl is the following three-line script:
              print unless $. == 1 && m@/\* .*\.[ch] \*/@;
              close ARGV if eof; # Close file to reset $.
      
      And then some hand-editing of other files.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      34980760