]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.test-framework/README
Update copyright years in gcc/
[thirdparty/gcc.git] / gcc / testsuite / gcc.test-framework / README
CommitLineData
395909dd
JJ
1Check the test directives used in GCC's testsuite by generating and
2running tests that use combinations of those commands or that stress
91442c20
JJ
3the selector expressions that can be used in those directives. Also
4run a few tests of specific functionality from the source directory.
395909dd 5
91442c20
JJ
6Each generated test has two parts: a file ending in "-1.c" whose
7expected result is encoded in the filename after "-exp-", and a file
8ending in "-2.c" which is always expected to pass.
395909dd
JJ
9
10This test directory is normally skipped and is not meant to be run at
11the same time as other parts of the testsuite; it's only of interest to
12people who are modifying the test directives or their support in GCC's
13.exp files.
14
15To run these tests:
16
17 CHECK_TEST_FRAMEWORK=1 make -k check RUNTESTFLAGS="test-framework.exp"
18
19To check the results:
20
21 TF=${SRC}/gcc/testsuite/gcc.test-framework
01113dd6 22 awk -f ${TF}/test-framework.awk gcc/testsuite/gcc/gcc.sum
395909dd
JJ
23
24The awk script prints unexpected results followed by the number of tests
91442c20 25that passed and failed.
ad41bd84
JM
26
27\f
23a5b65a 28Copyright (C) 2005-2014 Free Software Foundation, Inc.
ad41bd84
JM
29
30Copying and distribution of this file, with or without modification,
31are permitted in any medium without royalty provided the copyright
32notice and this notice are preserved.