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-55-g6ef01b2
Date: Wed, 25 Jul 2012 19:08:24 +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=6ef01b250fef1d7c5c9573f7c4bae0e1ce326d5b

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

- Log -----------------------------------------------------------------
commit 6ef01b250fef1d7c5c9573f7c4bae0e1ce326d5b
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 69bcec588a0a5c8849cab5ee581457cc2673f57d
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 20:40:21 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 d86c96b311f337df72fcce78517f5ecc220fccde
Author: Stefano Lattarini <address@hidden>
Date:   Wed Jul 25 20:31:47 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 90cdab5da0d55bcb467a69894268732dcb5578c8
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 755328c6a9252cb6272d4f2ba03bb671b3596fce
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 d682d98c59cad5e40aae6d08fc00fb9453b415a9
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 ae223b3cb5b5864e8bf969541ba502bdafaafc1f
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.

commit bf5d31ed0b487f3cde601690df37c25b9138a08d
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 8a4260c08a56ace6caadbacb3c18d96d4cd0e20c
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 0e68dff41d03ef159f824e5b0cce0cb57bcc9657
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 e00514a1df6c7693d70bbfb4dc210fa342632f76
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>

commit 06ee2196e424474820a47cd382bc5813c054ebb8
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 b5d57688f6335e050459e25b97142c2580a76344
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 8783919a6d0175c026964900e04c73875d5817db
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, now that the value of '$srcdir' is made accessible to
    all tests though the environment (either automatically by the Automake
    test harness when the tests are run by "make check", or through the
    wrapper script 'runtest' when the tests are run by hand).  With this
    change, we do another step forward a more rational and "segregated"
    organization of our testsuite framework.
    
    Unfortunately, we also need to duplicate the information of where test
    auxiliary files are (the subdirectory 't/ax', currently) to few more
    tests.  That will be cleaned up by future changes.
    
    * 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: Adjust.
    * defs: Likewise.  Also, check that '$srcdir' is properly defined,
    and display an helpful error message if it's not.
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 8985697c78af66cea941e4dac4597a632b869b1c
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 9f3edac5f7cd302c78c158b5d43ae38669e98615
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 640b7a61ff9478522a6a304d31b65e9165b4bc5c
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>

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


hooks/post-receive
-- 
GNU Automake



reply via email to

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