8sa1-gcc/gcc/testsuite/gcc.test-framework
Janis Johnson d6682e2189 sourcebuild.texi (Test Directives): Add output-exists and output-exists-not.
gcc/

2006-11-06  Janis Johnson  <janis187@us.ibm.com>

	* gcc/doc/sourcebuild.texi (Test Directives): Add output-exists
	and output-exists-not.

gcc/testsuite/

2006-11-06  Janis Johnson  <janis187@us.ibm.com
	    Bernhard Fischer  <aldot@gcc.gnu.org>

	* lib/gcc-dg.exp (output-exists): New proc.
	(output-exists-not): New proc.
	* gcc.test-framework/test-framework.awk: Support new directives.
	* gcc.test-framework/dg-outexistsnot-exp-F.c: New test.
	* gcc.test-framework/dg-outexistsnot-exp-P.c: New test.
	* gcc.test-framework/dg-outexists-exp-F.c: New test.
	* gcc.test-framework/dg-outexists-exp-XP.c: New test.
	* gcc.test-framework/dg-outexistsnot-exp-XF.c: New test.
	* gcc.test-framework/dg-outexists-exp-P.c: New test.

From-SVN: r118531
2006-11-07 00:08:32 +00:00
..
dg-bogus-exp-P.c
dg-bogus-exp-XF.c
dg-do-assemble-exp-P.c
dg-do-compile-exp-P.c
dg-do-link-exp-P.c
dg-do-run-exp-P.c
dg-do-run-sf-exp-F.c
dg-do-run-sf-exp-P.c
dg-do-run-sft-exp-F.c
dg-do-run-sft-exp-P.c
dg-dot-run-exp-P.c
dg-dot-run-exp-U.c
dg-dot-run-sif-exp-P.c
dg-dot-run-sif-exp-U.c
dg-dot-run-xif-exp-P.c
dg-dot-run-xif-exp-XP.c
dg-dox-run-exp-XF.c
dg-dox-run-sf-exp-XF.c
dg-dox-run-sf-exp-XP.c
dg-error-exp-P.c
dg-error-exp-XP.c
dg-excess-errors-exp-XF.c
dg-excess-errors-exp-XP.c
dg-outexists-exp-F.c
dg-outexists-exp-P.c
dg-outexists-exp-XP.c
dg-outexistsnot-exp-F.c
dg-outexistsnot-exp-P.c
dg-outexistsnot-exp-XF.c
dg-output-exp-P.c
dg-output-exp-XF.c
dg-warning-exp-P.c
gen_directive_tests
README
test-framework.awk
test-framework.exp

Check the test directives used in GCC's testsuite by generating and
running tests that use combinations of those commands or that stress
the selector expressions that can be used in those directives.  Also
run a few tests of specific functionality from the source directory.
                                                                                
Each generated test has two parts: a file ending in "-1.c" whose
expected result is encoded in the filename after "-exp-", and a file
ending in "-2.c" which is always expected to pass.
                                                                                
This test directory is normally skipped and is not meant to be run at
the same time as other parts of the testsuite; it's only of interest to
people who are modifying the test directives or their support in GCC's
.exp files.

To run these tests:
                                                                                
    CHECK_TEST_FRAMEWORK=1 make -k check RUNTESTFLAGS="test-framework.exp"
                                                                                
To check the results:
                                                                                
    TF=${SRC}/gcc/testsuite/gcc.test-framework
    awk -f ${TF}/test-framework.awk gcc/testsuite/gcc.sum
                                                                                
The awk script prints unexpected results followed by the number of tests
that passed and failed.