[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/5] {test-protocols} tap: add experimental TAP-aware driver
From: |
Ralf Wildenhues |
Subject: |
Re: [PATCH 5/5] {test-protocols} tap: add experimental TAP-aware driver |
Date: |
Mon, 18 Jul 2011 23:13:31 +0200 |
* Stefano Lattarini wrote on Mon, Jul 18, 2011 at 10:17:01AM CEST:
> On Friday 15 July 2011, Stefano Lattarini wrote:
> > * doc/automake.texi (Using the TAP test protocol): New section.
> > (Overview of Custom Test Drivers Support): Minor updates.
> > * lib/tap-driver: New script, TAP-aware test driver for Automake;
> > implemented in perl and based on TAP::Parser.
> > * lib/Makefile.am (dist_script_DATA): Add it.
[...]
> And consider this squashed in:
The squash-in is OK (but I'm not done with the original patch yet).
Thanks,
Ralf
> --- a/tests/tap-color.test
> +++ b/tests/tap-color.test
> @@ -52,7 +52,8 @@ AUTOMAKE_OPTIONS = color-tests
> AM_TEST_LOG_DRIVER_FLAGS = --comments
> TEST_LOG_COMPILER = cat
> TEST_LOG_DRIVER = $(PERL) $(srcdir)/tap-driver
> -TESTS = all.test skip.test bailout.test plan-errors.test
> +TESTS = all.test skip.test bail.test badplan.test noplan.test \
> + few.test many.test order.test
> END
>
> cat > all.test << 'END'
> @@ -66,15 +67,41 @@ ok 5 - zardoz # TODO
> END
>
> cat > skip.test << 'END'
> -1..0 # Whole script not run
> +1..0 # SKIP whole script
> END
>
> -cat > errors.test << 'END'
> +cat > bail.test << 'END'
> 1..1
> ok 1
> Bail out!
> END
>
> +cat > badplan.test << 'END'
> +# foo
> +1..1
> +ok 1
> +END
> +
> +cat > noplan.test << 'END'
> +ok 1
> +END
> +
> +cat > few.test << 'END'
> +1..2
> +ok 1
> +END
> +
> +cat > many.test << 'END'
> +1..1
> +ok 1
> +ok 2
> +END
> +
> +cat > order.test << 'END'
> +1..1
> +ok 5
> +END
> +
> $ACLOCAL
> $AUTOCONF
> $AUTOMAKE
> @@ -92,9 +119,15 @@ test_color ()
> cat stdout | grep "^${blu}SKIP${std}: all\.test 3 - baz # SKIP sk$"
> cat stdout | grep "^${red}FAIL${std}: all\.test 4 - quux$"
> cat stdout | grep "^${red}XPASS${std}: all\.test 5 - zardoz # TODO$"
> - cat stdout | grep "^${blu}SKIP${std}: skip\.test # Whole script not run$"
> - cat stdout | grep "^${grn}PASS${std}: bailout\.test 1$"
> - cat stdout | grep "^${mgn}ERROR${std}: all\.test - Bail out!$"
> + cat stdout | grep "^${blu}SKIP${std}: skip\.test - whole script$"
> + cat stdout | grep "^${grn}PASS${std}: bail\.test 1$"
> + cat stdout | grep "^${mgn}ERROR${std}: bail\.test - Bail out!$"
> + cat stdout | grep "^${mgn}ERROR${std}: badplan\.test - test plan in middle
> of output$"
> + cat stdout | grep "^${mgn}ERROR${std}: noplan\.test - missing test plan$"
> + cat stdout | grep "^${mgn}ERROR${std}: few.test - too few tests run
> (expected 2, got 1)$"
> + cat stdout | grep "^${mgn}ERROR${std}: many.test - too many tests run
> (expected 1, got 2)$"
> + cat stdout | grep "^${mgn}ERROR${std}: many.test 2 # UNPLANNED$"
> + cat stdout | grep "^${mgn}ERROR${std}: order.test 5 # OUT-OF-ORDER
> (expecting 1)$"
> # Diagnostic messages shouldn't be colorized.
> cat stdout | grep "^# all\.test: Hi! I shouldn't be colorized!$"
- Re: [PATCH 2/5] {test-protocols} parallel-tests: new recognized test result 'ERROR', (continued)
[PATCH 3/5] {test-protocols} parallel-tests: simplify testsuite summary, Stefano Lattarini, 2011/07/14
[PATCH 4/5] {test-protocols} tests defs: new auxiliary function 'count_test_results', Stefano Lattarini, 2011/07/14
[PATCH 5/5] {test-protocols} tap: add experimental TAP-aware driver, Stefano Lattarini, 2011/07/14
Re: [GSoC] Some patches for testsuite harness improvements and TAP support introduction, Ralf Wildenhues, 2011/07/18
[PATCH 6/5] tap: some preparatory refactoring (1), Stefano Lattarini, 2011/07/18
[PATCH 7/5] tap: some preparatory refactoring (2), Stefano Lattarini, 2011/07/18
[PATCH 8/5] tap: support colorization of testsuite progress output, Stefano Lattarini, 2011/07/18