1. 01 4月, 2016 1 次提交
  2. 31 3月, 2016 3 次提交
  3. 18 3月, 2016 1 次提交
  4. 08 3月, 2016 1 次提交
  5. 13 2月, 2016 1 次提交
    • R
      Rethink logging of test recipes · b843cdb1
      Richard Levitte 提交于
      The logging that was performed in OpenSSL::Test was initially set up
      as a means not to let messages that test programs write to STDERR get
      displayed when a test isn't running in verbose mode.  However, the way
      it was implemented, it meant that those messages were never displayed,
      and you had to look in a test log.  This also meant that output to
      STDERR and output to STDOUT got broken apart, which isn't optimal.
      
      So, we remove the whole test log file implementation, and instead,
      we're sending STDERR to the null device unless one of these conditions
      apply:
      
      - the test recipe already redirects stderr.  Just let it.
      - the environment variable HARNESS_ACTIVE is undefined, meaning the
        recipe is run directly as a perl script instead of being harnessed
        by Test::Harness
      - the environment variable HARNESS_VERBOSE is set.
      
      Getting a full log of the tests now becomes as simple as this:
      
          HARNESS_VERBOSE=yes make test 2>&1 | tee tests.log
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      b843cdb1
  6. 09 2月, 2016 2 次提交
  7. 31 1月, 2016 1 次提交
  8. 27 1月, 2016 1 次提交
  9. 26 1月, 2016 1 次提交
    • R
      Have OpenSSL::Test handle perl scripts like any program · a00c84f6
      Richard Levitte 提交于
      Since we're building some of our perl scripts and the result might not
      end up in apps/ (*), we may need to treat them like the compile
      programs we use for testing.
      
      This introduces perlapp() and perltest(), which behave like app() and
      test(), but will add the perl executable in the command line.
      
      -----
      
      (*) For example, with a mk1mf build, the result will end up in $(BIN_D)
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      a00c84f6
  10. 15 1月, 2016 1 次提交
  11. 14 1月, 2016 1 次提交
    • R
      Add a directry spec for mcr if there is none · 502e1685
      Richard Levitte 提交于
      On VMS, the command MCR will assume SYS$SYSTEM: when the first
      argument lacks a directory spec.  So for programs in the current
      directory, we add [] to tell MCR it is in the current directory.
      It's the same as having ./ at the start of a program on Unix so the
      shell doesn't start looking along $PATH.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      502e1685
  12. 14 10月, 2015 2 次提交
  13. 10 9月, 2015 1 次提交
    • R
      Make sure the temporary error log resides in a well defined location · ceffb33d
      Richard Levitte 提交于
      If a test recipe does something like this:
      
          indir "foo.$$" => sub {
              chmod 0500, File::Spec->curdir();
              ok(run(app(["something"])));
          }
      
      we get a problem, because we were storing the temporary stderr file in
      the current directory at all times (so while inside the 'indir', we
      would attemp to store it in "foo.$$").
      
      So, change our ways to always store that temporary file in the exact
      same location, defined by the environment variable RESULT_D, or
      failing that TEST_D, or failing that $TOP/test.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      ceffb33d
  14. 07 9月, 2015 6 次提交
    • R
      Small fix in OpenSSL::Test · e3ff0892
      Richard Levitte 提交于
      Be careful when shifting in a function argument, you end up changing
      the caller's value.  Instead, when it is an array, make a shallow copy
      and shift in that instead.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      e3ff0892
    • R
      Document OpenSSL::Test and OpenSSL::Test::Simple · f5098edb
      Richard Levitte 提交于
      For OpenSSL::Test, it meant rearranging the code to better suite the
      structure of the documentation.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      f5098edb
    • R
      Change OpenSSL::Test to be an extension of Test::More · fd99c6b5
      Richard Levitte 提交于
      It became tedious as well as error prone to have all recipes use
      Test::More as well as OpenSSL::Test.  The easier way is to make
      OpenSSL::Test an extension of Test::More, thereby having all version
      checks as well as future checks firmly there.  Additionally, that
      allows us to extend existing Test::More functions if the need would
      arise.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      fd99c6b5
    • R
      New feature: STOPTEST · caadc543
      Richard Levitte 提交于
      When the environment variable STOPTEST is defined (with any value other
      than the empty string), the test machinery in OpenSSL::Test goes into a
      different mode that will stop all testing at the end of a failing recipe.
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      caadc543
    • R
      Add version numbers on some modules we use. · fb921436
      Richard Levitte 提交于
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      fb921436
    • R
      Groundwork for a perl based testing framework · aec27d4d
      Richard Levitte 提交于
      The idea with this perl based testing framework is to make use of
      what's delivered with perl and exists on all sorts of platforms.
      
      The choice came to using Test::More and Test::Harness, as that seems
      to be the most widely spread foundation, even if perl is aged.
      
      The main runner of the show is run_tests.pl.  As it currently stands,
      it's designed to run from inside Makefile, but it's absolutely
      possible to run it from the command line as well, like so:
      
      	cd test
      	OPENSSL_SRCDIR=.. perl run_tests.pl
      
      The tester scripts themselves are stored in the subdirectory recipes/,
      and initially, we have two such scripts, recipes/00-check_testalltests.t
      and recipes/00-check_testexes.t.  recipes/00-check_testalltests.t will
      pick out the dependencies of "alltests" in test/Makefile, and check if
      it can find recipes with corresponding names.  recipes/00-check_testexes.t
      does something similar, but bases it on existing compiled test binaries.
      They make it easy to figure out what's to be added, and will be
      removed when this effort is finished.
      
      Individual recipes can be run as well, of course, as they are perl
      scripts in themselves.  For example, you can run only
      recipes/00-check_testexes.t like so:
      
      	cd test
      	OPENSSL_SRCDIR=.. perl recipes/00-check_testexes.t
      
      To make coding easier, there's a routine library OpenSSL::Test, which
      is reachable in a perl script like so:
      
      	use lib 'testlib';
      	use OpenSSL::Test;
      Reviewed-by: NRich Salz <rsalz@openssl.org>
      aec27d4d