]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'extend-coverage-for-add-missing' into testsuite-work
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 12 Jun 2011 22:00:53 +0000 (00:00 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 12 Jun 2011 22:00:53 +0000 (00:00 +0200)
* extend-coverage-for-add-missing:
  tests: new test dedicated to `--add-missing' and `--copy'

1  2 
ChangeLog
tests/Makefile.am
tests/Makefile.in

diff --cc ChangeLog
index a7f9a4aa00a02cafae07d79c9cd86e564dd82f96,a41dfdf7850a126554188a69bb09167832c15ca5..ab9a6ddbba719d59b17970d3493a7f10d4955605
+++ b/ChangeLog
+ 2011-06-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       tests: new test dedicated to `--add-missing' and `--copy'
+       * tests/add-missing.test: New test.
+       * tests/Makefile.am (TESTS): Update.
+       Suggested by Peter Rosin.
 +2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      testsuite: use 'fatal_' and 'framework_failure_' for hard errors
 +      * tests/defs (require_xsi): Use `fatal_', not `framework_failure',
 +      to report an invalid usage.
 +      * tests/remake-gnulib-remove-header.test: Prefer using `fatal_'
 +      with a proper error message over a direct call to `Exit 99'.
 +      * tests/pr8365-remake-timing.test: Likewise.
 +      * tests/cygnus-imply-foreign.test: Likewise.
 +      * tests/missing6.test: Likewise.
 +      * tests/cond8.test: Likewise.
 +      * tests/cond33.test: Likewise.
 +      * tests/python-virtualenv.test: Prefer using `framework_failure_'
 +      with a proper error message over a direct call to `Exit 99'.
 +      * tests/instspc-tests.sh: Prefer using `framework_failure_' and
 +      `fatal_' over direct calls to `Exit 99'.
 +      (fatal_): Define this (which is a simplified version of the one
 +      in `tests/defs') for early uses (i.e., before `tests/defs'
 +      gets sourced).
 +      * tests/depmode-tests.sh: Likewise.  Also, simplify the
 +      'get_depmodes' function and calls to it accordingly.
 +
 +2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      self tests: check new 'fatal_' function
 +      * tests/self-check-exit.test: Also check the new 'fatal_'
 +      function.
 +
 +2011-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      test defs: new function 'fatal_', for hard errors
 +      Before this patch, the only way offered by tests/defs to
 +      properly signal a hard error was the `framework_failure_'
 +      function.  But the error message issued by that function,
 +      as its name would suggest, refers to a set-up failure in the
 +      testsuite, while hard errors can obviously also be due to
 +      other reasons.  The best way to fix this inconsistency is to
 +      introduce a new function with a more general error message.
 +      Inspired by a recent similar change to Gnulib's tests/init.sh.
 +      * tests/defs (fatal_): New function.
 +      * tests/README (Section "Writing test cases" subsection "Do"):
 +      Suggest the use of `fatal_', not of `framework_failure_', for
 +      generic hard errors.  The latter should be reserved for "real"
 +      set-up failures.
 +
 +2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests: `lib/' shell scripts transparently tested also with $SHELL
 +      With the previous commit, the user could prefer the use of $SHELL
 +      over /bin/sh in some tests checking the Automake-provided shell
 +      scripts by manually exporting `test_prefer_config_shell' to "yes"
 +      in the environment.  With this commit, we ensure that such tests
 +      *always* and *transparently* run using both $SHELL and /bin/sh
 +      to execute the checked scripts.  The `test_prefer_config_shell'
 +      variable becomes an internal detail, and is no more meant to be
 +      manually defined or overridden.
 +      * tests/defs-static.in: Check that `test_prefer_config_shell' is
 +      not exported in the environment.  Error out if this is the case.
 +      * tests/config-shell-tests.sh: New file, driver script to run
 +      checks on the shell scripts in `lib/' using the $SHELL determined
 +      at configure time instead of the default system shell /bin/sh.
 +      * Makefile.am (TESTS_EXTENSIONS): Add `.shtst'.
 +      (SHTST_LOG_COMPILER): Define, it calls `config-shell-tests.sh'.
 +      (config_shell_tests): Define to a list of tests that wraps other
 +      `*.test' tests using `config-shell-tests.sh'.
 +      ($(config_shell_tests)): Dummy dependency declaration required
 +      in order to have make actually produce expected log files from
 +      the `.shtst.log' suffix rule.
 +      (EXTRA_DIST): Distribute `config-shell-tests.sh'.
 +      (TESTS): Add `$(config_shell_tests)'.
 +      * tests/self-check-env-sanitize.test: Update, by checking that
 +      `test_prefer_config_shell' isn't exported in the environment.
 +
 +2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests: can use also $SHELL to check shell scripts from `lib/'
 +      * tests/ar-lib.test: If the variable `$test_prefer_config_shell'
 +      is set to "yes", run the script under test with configure-time
 +      determined $SHELL, rather than with /bin/sh.
 +      The `$test_prefer_config_shell' variable defaults to empty, but
 +      can be overridden at runtime by the user, thus allowing more
 +      coverage.
 +      * tests/compile.test: Likewise.
 +      * tests/compile2.test: Likewise.
 +      * tests/compile3.test: Likewise.
 +      * tests/compile4.test: Likewise.
 +      * tests/compile5.test: Likewise.
 +      * tests/compile6.test: Likewise.
 +      * tests/instsh2.test: Likewise.
 +      * tests/instsh3.test: Likewise.
 +      * tests/mkinst3.test: Likewise.
 +      * tests/missing.test: Likewise.
 +      * tests/missing2.test: Likewise.
 +      * tests/missing3.test: Likewise.
 +      * tests/missing5.test: Likewise.
 +      * tests/defs (get_shell_script): New subroutine, factoring out
 +      code common to the tests above.
 +      (xsi-lib-shell): If `$test_prefer_config_shell' is set to "yes",
 +      check that $SHELL, not /bin/sh, supports XSI constructs, as we
 +      expect the test will use $SHELL and not /bin/sh to run the
 +      script being tested.
 +
 +2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests defs: better requirements for XSI shells
 +      This change avoids potential spurious failures with tests using
 +      the requirement 'xsi-shell' to mean that they want */bin/sh* (not
 +      $SHELL) to be XSI-conforming.  This idiom used to work before
 +      commit `v1.11-874-g1321be7' (as back then the test scripts were
 +      unconditionally run with /bin/sh), but has become inconsistent
 +      now that the test scripts re-execute themselves with configure
 +      determined $SHELL.
 +      The described spurious failures have already occurred in practice,
 +      for examples on Solaris systems which also had GNU Bash installed.
 +      From a suggestion by Peter Rosin.  See discussion at:
 +      <http://lists.gnu.org/archive/html/automake-patches/2011-06/msg00016.html>
 +      * tests/defs (xsi-shell): Now check that $SHELL, rather than the
 +      shell currently running the test script, is an XSI shell.
 +      (xsi-bin-sh): New requirement, checking that /bin/sh (which can
 +      differ from $SHELL) is an XSI shell.
 +      (xsi-lib-shell): New requirement, checking that the shell that
 +      should be used to test the Automake-provided scripts from `lib/'
 +      is an XSI shell.  For the moment, this is just an alias for
 +      `xsi-bin-sh'.
 +      (require_xsi): New subroutine, used to factor out code common to
 +      the requirements above.
 +      ($xsi_shell_code): New variable, contains shell code supposed to
 +      work only with XSI shells.  Used by the new subroutine above.
 +      * tests/ar-lib.test ($required): Require 'xsi-lib-shell' instead
 +      of 'xsi-shell', since the script we test here is run with /bin/sh,
 +      not with $SHELL.
 +      * tests/compile3.test: Likewise.
 +      * tests/compile6.test: Likewise.
 +
 +2011-06-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests: fix typo-related error in auxdir2.test
 +      * tests/auxdir2.test (configure.in):  Close m4 quoting in the
 +      argument to AC_CONFIG_AUX_DIR.  Without this, aclocal fails with
 +      "ERROR: end of file in string".  This problem hasn't been exposed
 +      by the testsuite before because this test is in XFAIL_TESTS, so
 +      its failure went unnoticed, even if it was due to a wrong cause.
 +      Bug introduced in commit v1.11-249-g49ac3de.
 +
 +2011-06-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      self tests: check that `$me' can be overridden
 +      * tests/self-check-me.test: Check that `$me' can be overridden
 +      before sourcing ./defs, with or without sourcing ./defs-static
 +      beforehand, and that this override is honored.  Update heading
 +      comments.
 +
  2011-06-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        self tests: fix another spurious failure
Simple merge
Simple merge