automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-commit] [SCM] GNU Automake branch, experimental/refactor-tests


From: Stefano Lattarini
Subject: [Automake-commit] [SCM] GNU Automake branch, experimental/refactor-testsuite, created. v1.12.2-60-gc778045
Date: Wed, 25 Jul 2012 22:36:38 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".

http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=c778045a7b4852031d5ce90430849a62329fb7e0

The branch, experimental/refactor-testsuite has been created
        at  c778045a7b4852031d5ce90430849a62329fb7e0 (commit)

- Log -----------------------------------------------------------------
commit c778045a7b4852031d5ce90430849a62329fb7e0
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 22:49:02 2012 +0200

    separate am/generic test libs
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit ee599cc5742fbd60768e164881f8cbdcbb406bc3
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 21:12:30 2012 +0200

    test setup: move actual calling of testsuite setup in ./defs
    
    * t/ax/test-init.sh: Move call to 'am_test_setup' ...
    * defs: ... here.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit f3d1c3f611703ca34bbbee86e2414ce6ea12c8f8
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 21:04:30 2012 +0200

    test setup: merge definitions of function for simple tests
    
    * t/ax/plain-functions.sh: Delete, moving the definitions of ...
    ($stderr_fileno_): ... this variable ...
    (warn_, fail_, skip_, skip_all_, fatal_, framework_failure_): ... and
    these functions ...
    * t/ax/test-init.sh: ... in here.  This allow us to use those functions
    earlier in this file (instead of having to duplicate their behaviour
    with inlined code).  The TAP-based tests are still able to override these
    functions later to their TAP-enhanced equivalents when 'tap-functions.sh'
    is sourced.
    * Makefile.am (dist_noinst_DATA): Remove 't/ax/plain-functions.sh'.
    * t/ax/tap-functions.sh: Adjust a comment.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit f825eec90420196c78646a386cebb37d0fdbeb70
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 20:40:21 2012 +0200

    configure: testsuite shell can return early from "dot-sourced" files
    
    * configure.ac: Check that the shell selected to run the test
    scripts can call 'return' form within a file being sourced
    with the '.' built-in.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 6be7d953c26fc4658a850186352e5dfffbfa8bec
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 20:31:47 2012 +0200

    test init: refactor: new function 'am_test_setup'
    
    * t/ax/test-init.sh (am_test_setup): Here.
    Call it from the main code.  Remove other calls of functions and
    settings that are now duly called by 'am_test_setup'.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 0892dc6f281ec5ea661e1f94a64c46937673bba2
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 20:25:55 2012 +0200

    test init: refactor: move displaying of debugging info later
    
    * t/ax/test-init.sh: Here, about the values of $PATH, $am_using_tap
    and $am_running_installcheck.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 8d7f0bc9646416fd11ea5ca61772d25ad8c5498a
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 20:20:09 2012 +0200

    test init: refactor: new function 'am_setup_testdir'
    
    * t/ax/test-init.sh (am_setup_testdir): Here.
    Use it instead of inlining its contents in the main code.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 35db5fef268e923b530e7527a29dca2765e3cb49
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 20:17:46 2012 +0200

    test init: refactor: new function 'am_set_exit_traps'
    
    * t/ax/test-init.sh (am_set_exit_traps): Here.
    (trap): Use it instead of inlining the cleanup/finalization code.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 1de40d8b8892f32b68ad50998fd76bf9ee87b9f1
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 19:51:27 2012 +0200

    configure: testsuite shell set exit traps in shell functions
    
    * configure.ac: Check that the shell selected to run the test
    scripts can set an exit trap in a shell function, without having
    that trap executed at the termination of the function rather
    than of the scripts.  According to the Autoconf manual, at least
    AUX 5.3 /bin/sh suffers of such a bug.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 6c67445366f4e6bc05c5f5aaa5dcf16e95951e37
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 19:45:31 2012 +0200

    test init: refactor: new function 'am_exit_trap'
    
    * t/ax/test-init.sh (am_exit_trap): Here.
    (trap): Use it instead of inlining the cleanup/finialization code.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 293da605f80ff46524977f96c43d9f042f344546
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 19:41:57 2012 +0200

    test init: refactor: new function 'process_requirements'
    
    * t/ax/test-init.sh (process_requirements): Here.
    Use it in to check that the tools in $required are present.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 44bcfd80a20c5b4eb53b001f682f7f96b017fb95
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 19:23:29 2012 +0200

    test init: refactor: new function 'require_tool'
    
    * t/ax/test-init.sh (require_tool): Here.
    Use it in the loop in the prerequisites in $required.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit c69b0edf3d2aa70844cfae204e9b93f31c1bd31a
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 18:49:50 2012 +0200

    test init: remove a couple of paranoid sanity checks
    
    * t/ax/test-init.sh: Here, about 'am_top_srcdir' and 'am_top_builddir';
    the values of those variables are AC_SUBST'd, so it's nigh impossible
    for the to be wrong or get "messed up".
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit a9569c57f1efca506666a1fb36516dfecedb4217
Author: Stefano Lattarini <address@hidden>
Date:   Thu Jul 26 00:20:03 2012 +0200

    tests: simplify sourcing of helper shell files
    
    Now that the early $PATH setup in both 'runtest' and AM_TESTS_ENVIRONMENT
    allow the '.' built-in to find to-be-sourced shell scripts in the 't/ax/'
    directory automatically, we can simplify several usages like:
    
       . "$am_testauxdir"/foo.sh
    
    to just:
    
       . foo.sh
    
    Also, because our test scripts run with the 'errexit' flag active, and
    because POSIX mandates that, when the '.' built-in is used,
    
       ... if no readable file is found, a non-interactive shell shall abort ...
    
    we can further simplify usages like:
    
        . "$am_testauxdir"/foo.sh || fatal_ "sourcing foo.sh"
    
    once again to to just:
    
        . foo.sh
    
    * Several tests: Adjusted.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 17a62cc4682c8c20be0292cac542cfdafd7eb6f9
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 18:14:23 2012 +0200

    test defs: move in 't/ax/test-defs.sh'
    
    We can do so with minimal churn, now that the early setup of $PATH in
    both 'runtest' and AM_TESTS_ENVIRONMENT allow the '.' built-in to find
    to-be-sourced shell scripts in 't/ax' automatically, both in in-tree
    and  VPATH builds.
    
    With this change, we take another step forward a more rational and
    "segregated" organization of our testsuite framework.
    
    * defs-static.in: Rename ...
    * t/ax/test-defs.in: ... like this, and adjust.
    * Makefile.am, syntax-checks.mk, t/README, gen-testsuite-part,
    t/tests-init.sh, t/ax/tap-setup.sh, t/tap-summary.sh, .gitignore,
    t/testsuite-summary-color.sh, t/testsuite-summary-count.sh,
    t/self-check-tap.sh, defs: Adjust.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit b9ec0d89514f1284b7e1539438a6e1fa8c862fab
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 23:06:06 2012 +0200

    tests: update PATH early from AM_TESTS_ENVIRONMENT and runtest
    
    Because the POSIX standards mandate that sourcing a file with ". FILE"
    will cause FILE (assuming it is a relative containing no slashes) to be
    looked for in PATH, such a move will allow us to simplify our sourcing
    of shell testing libraries like (currently) 't/ax/test-init.sh' and
    'defs', and to modularize and re-organize them better in the feature,
    with minimal churn.
    
    * runtest.in, Makefile.am (AM_TEST_ENVIRONMENT): Prepend $(abs_srcdir)/t/ax
    and $(abs_builddir)/t/ax (in that order) to PATH; do so avoiding repetition
    in the common case of non-VPATH builds.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 5e4d9a988ff588aac5f82bc1e87ca2a65ac2abfe
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 13:30:05 2012 +0200

    runtest: export $srcdir for use by the test scripts
    
    This is mostly a preparatory change in view of future ones.  But it
    also make the behaviour of runtest more similar to that of the test
    harness used by "make check".
    
    * runtest.in: Export srcdir (was already defined to '@srcdir@').
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit f9f50cf4d9219b1f7b835dcaef430daa930ab517
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 22:06:12 2012 +0200

    gen-tests: $testdir/ax -> $testauxdir
    
    * gen-testsuite-part ($testauxdir): New, defined to "$testdir/ax".
    Use it throughout, for better encapsulation and less duplication.
    ($auxdir): Remove as unneeded.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 5ddd2969281c3e09c310d81cdc298f5faf593eb6
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 15:55:57 2012 +0200

    gen-tests: less hard-coding of 't' as the test directory
    
    This will make life easier for us in case we decide to rename the
    testsuite directory in the future (perhaps to something like 'tests',
    which is somewhat less cryptic than the current 't').
    
    * gen-testsuite-part ($testdir): New variable, used throughout instead
    of hard-coding the name of the test directory to 't'.
    All the script adjusted to make proper use of '$testdir'.
    ($auxdir): Move its definition earlier, for consistency with the one
    of '$testdir'.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 0c3a250d550f981ae8607ca7c8ad962b41fb9ef7
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 16:31:17 2012 +0200

    build: auxiliary testsuite files/scripts built by "make all"
    
    This will allow the developers to run a tests case by hand out of
    a newly extracted tarball simply doing:
    
        $ ./configure && make
        $ ./runtest t/the-test-case.sh
    
    while before this change one has to resort to:
    
        $ ./configure && make && make check TESTS=
        $ ./runtest t/the-test-case.sh
    
    or, with some non-GNU makes, even:
    
        $ ./configure && make && make check TESTS= AM_MAKEFLAGS="TESTS="
        $ ./runtest t/the-test-case.sh
    
    This come very handy sometimes, especially when doing one-shot
    debugging.  Admittedly not a big deal, but one less friction in
    the build system is always nice.
    
    * Makefile.am (check_SCRIPTS, dist_check_DATA, nodist_check_DATA):
    Move their content to ...
    (noinst_SCRIPTS, dist_noinst_DATA, nodist_noinst_DATA): ... these
    variables.
    Adjust comments.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit b2b8e47f08d668bba7cf1c82220d2909ac571e58
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 19:06:22 2012 +0200

    perf tests: reorganize
    
    * t/list-of-tests.mk (handwritten_TESTS): Don't list ($perf_TESTS) in
    here anymore.
    * Makefile.am (EXTRA_DIST): Add them explicitly.
    (perf): New target, run the performance tests and save the logs of
    the ones with unexpected results in the file 't/perf/test-suite.log',
    which is thus ...
    (PERF_TEST_SUITE_LOG): ... defined in this variable ...
    (CLEANFILES): ... and added to this.
    (test_subdirs): Remove 't/perf': the tests in there are no more
    listed in $(TESTS).
    * t/ax/test-init.sh: Don't explicitly skip "perf" test here.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit b4f5f5b31ad281dd3d11b19ee125da7fc9e948f4
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 19:11:40 2012 +0200

    cosmetics: remove leftover comment fragment from runtest.in
    
    Signed-off-by: Stefano Lattarini <address@hidden>

-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU Automake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]