tests/compile6.test


Log

Author Commit Date CI Message
Stefano Lattarini 5b44ce39 2012-02-23T13:07:57 tests: quote 'like this', not `like this', as per GCS recommendation This patch converts the automake testsuite and related files, to the use of new quoting format 'like this' or "like this" rather than `like this'. This is done for consistency with the new recommendations in the GNU Coding Standards, and, well, because I've come to actually prefer the '...' and "..." quoting formats over the `...' one. * tests/README: Update quoting format throughout. Remove some "excessive" use of quoting, and throw in minor rewording where appropriate. * tests/Makefile.am: Likewise, for comments. * tests/CheckListOfTests.am: Likewise. * tests/defs-static.in: Likewise. * tests/defs: Likewise. * tests/trivial-test-driver: Likewise. * Many tests/*.tap, tests/*.test and tests/*.sh files: Likewise, and for the diagnostic and informational messages as well. * tests/gen-testsuite-part: Likewise, and for the generated tests as well.
Stefano Lattarini 641a5a4b 2012-02-16T10:46:23 maint: run "make update-copyright"
Stefano Lattarini 02aa6404 2011-09-10T21:34:19 tests: avoid creating useless files in some test directories * tests/aclocal.test: Define `$am_create_testdir' to "empty" before sourcing ./defs, to avoid bringing in unused auxiliary files. Related adjustments. * tests/aclocal3.test: Likewise. * tests/aclocal8.test: Likewise. * tests/aclocal9.test: Likewise. * tests/acloca10.test: Likewise. * tests/acloca11.test: Likewise. * tests/acloca12.test: Likewise. * tests/acloca15.test: Likewise. * tests/acloca16.test: Likewise. * tests/acloca17.test: Likewise. * tests/acloca18.test: Likewise. * tests/acloca20.test: Likewise. * tests/acloca21.test: Likewise. * tests/acloca23.test: Likewise. * tests/aclocal-print-acdir.test: Likewise. * tests/ar-lib.test: Likewise. * tests/compile.test: Likewise. * tests/compile2.test: Likewise. * tests/compile3.test: Likewise. * tests/compile6.test: Likewise. * tests/instsh2.test: Likewise. * tests/instsh3.test: Likewise. * tests/mdate5.test: Likewise. * tests/mdate6.test: Likewise. * tests/missing3.test: Likewise. * tests/missing5.test: Likewise. * tests/mkinst3.test: Likewise. * tests/self-check-explicit-skips.test: Likewise. * tests/self-check-report.test: Likewise. * tests/self-check-sanity.test: Likewise. * tests/tap-driver-stderr.test: Likewise.
Stefano Lattarini 2838ad57 2011-06-06T14:40:22 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.
Stefano Lattarini 0fe3c328 2011-06-06T11:32:19 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.
Stefano Lattarini 9986bd92 2011-06-05T12:16:48 Revert "tests: use `$SHELL' to run the shell scripts from `lib/'" This reverts commit f977d00e0a3ab9af3555bb3bc8ea78726cb7a143. See <http://lists.gnu.org/archive/html/automake-patches/2011-06/msg00018.html> for the reasons behind this revert.
Stefano Lattarini f977d00e 2011-06-02T17:05:51 tests: use `$SHELL' to run the shell scripts from `lib/' This should offer greater testsuite coverage for those developers that override CONFIG_SHELL at configure time in order to test more shells on a single system, instead of just the default `/bin/sh'. This change also fixes few spurious failures in tests using the `xsi-shell' requirement, where inconsistencies could crop up if the shell probed for XSI features (which, by default, is $SHELL) was not the same shell later used to run the scripts using those features (which was hard-coded to `/bin/sh'). Such failures have already occurred in practice, for examples on Solaris systems which had also GNU Bash installed. * tests/ar-lib.test: Run the `ar-lib' script with `$SHELL', rather than directly with `./ar-lib', which would make run unconditionally with `/bin/sh'. * tests/compile.test: Likewise, but for the `compile' script. * tests/compile2.test: Likewise. * tests/compile3.test: Likewise. * tests/compile4.test: Likewise. * tests/compile5.test: Likewise. * tests/compile6.test: Likewise. * tests/instsh2.test: Likewise, but for the `install' script. * tests/instsh3.test: Likewise. * tests/mkinst3.test: Likewise, but for the `mkinstalldirs' script. * tests/missing.test: Likewise, but for the `missing' script. * tests/missing2.test: Likewise. * tests/missing3.test: Likewise. * tests/missing5.test: Likewise.
Stefano Lattarini 79103003 2011-01-08T19:40:04 tests: enable 'errexit' shell flag by default. * tests/defs: Enable `errexit' shell flag (near the end). Removed redundant comment about the enabling of shell traces. * tests/README (Writing test cases): Update, and use nicer formatting in a couple of places. * All tests: Adjusted by removing now-redundant calls to 'set -e'.
Stefano Lattarini ba1e3121 2010-12-12T22:10:05 Tests defs: more uses of $top_testsrcdir. * tests/compile6.test: Use `$top_testsrcdir' instead of `$testsrcdir/..'.
Peter Rosin 38846c5f 2010-11-16T13:01:58 Skip MSVC oriented tests if the shell is not capable. * tests/defs.in: New required entry 'xsi-shell'. * tests/ar-lib.test, tests/compile3.test, tests/compile6.test: Require a XSI capable shell. Reported by Ralf Wildenhues. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Peter Rosin 0431dc44 2010-09-21T20:59:54 compile: implement library search to support MSVC static linking * lib/compile (func_cl_wrapper): Implement library search and -static option so that the user can select whether to prefer dll import libraries or static libraries. This enables MSVC to link against dlls generated by libtool without requiring libtool or workarounds such as -lfoo.dll etc. Makes the tests/static.at test case in libtool pass. * tests/compile3.test: Don't trip up if there happens to exist a "foo" library in the library search path. * tests/compile6.test: New test, verifying the library search. * tests/Makefile.am (TESTS): Update. Signed-off-by: Peter Rosin <peda@lysator.liu.se>