1Check the test directives used in GCC's testsuite by generating and 2running tests that use combinations of those commands or that stress 3the selector expressions that can be used in those directives. Also 4run a few tests of specific functionality from the source directory. 5 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. 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 22 awk -f ${TF}/test-framework.awk gcc/testsuite/gcc/gcc.sum 23 24The awk script prints unexpected results followed by the number of tests 25that passed and failed. 26 27 28Copyright (C) 2005-2021 Free Software Foundation, Inc. 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. 33