aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/README.gcc
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1997-08-19 01:34:40 -0600
committerJeff Law <law@gcc.gnu.org>1997-08-19 01:34:40 -0600
commit921e5a0eb4f27bab1d45761abdf877d611c6bc9b (patch)
tree335fa7ed68bccaabc938e142eabc167ac296372e /gcc/testsuite/README.gcc
parent45832e2182e27364dd403958fac6a9756fd047cd (diff)
downloadgcc-921e5a0eb4f27bab1d45761abdf877d611c6bc9b.zip
gcc-921e5a0eb4f27bab1d45761abdf877d611c6bc9b.tar.gz
gcc-921e5a0eb4f27bab1d45761abdf877d611c6bc9b.tar.bz2
Initial revision
From-SVN: r14840
Diffstat (limited to 'gcc/testsuite/README.gcc')
-rw-r--r--gcc/testsuite/README.gcc71
1 files changed, 71 insertions, 0 deletions
diff --git a/gcc/testsuite/README.gcc b/gcc/testsuite/README.gcc
new file mode 100644
index 0000000..7428505
--- /dev/null
+++ b/gcc/testsuite/README.gcc
@@ -0,0 +1,71 @@
+This file contains a list of notes for those writing testcases and those
+writing expect scripts. At present, they're in random order.
+
+Verbosity Levels
+
+- each level adds verbosity so level 2 prints all level 1 and level 2 stuff.
+
+1) Print a one-liner indicating the testcase being run (and maybe special
+ compiler options).
+
+2) Print compiler and program invocation including arguments and their output.
+ Proc's gcc_load and gcc_start handle the latter two.
+
+3) Print detailed testcase analysis like "Looking for pattern ...", etc.
+
+4) Maximum verbosity. Print anything else of interest.
+
+send_log conventions
+
+Various messages are stored in gcc.log by the testing framework and we
+try to augment them with some of our own. The format of the framework
+messages are:
+
+PASS: blah blah ...
+FAIL: blah blah ...
+
+so we use
+
+XXXX: blah blah ...
+
+Current messages are:
+
+EXEC: program being executed (so compiler path and args are recorded)
+STAT: intermediate pass/fail statistics
+
+DO NOT PUT NON-PORTABLE TESTCASES IN gcc.c-torture.
+
+ANY TARGET SPECIFIC TESTCASE MUST HAVE APPROPRIATE CODE TO PREVENT IT FROM
+CAUSING A `FAILURE' ON UNSUPPORTED PLATFORMS.
+
+Test scripts must ignore the compiler messages "path prefix never used"
+and "linker input file unused". Don't let their appearance cause a testcase
+to fail. See lib/dg.exp for the exact regsub to use.
+
+If you're unclear about which directory a testcase should be installed in,
+ask gcc-local.
+
+Always use abort() for runtime failures, and exit(0) for success.
+The testing harness is set up to watch for these and do something appropriate
+(when necessary) for target boards.
+
+Have the text of a fail message be the same as that for pass.
+IE: have
+
+ if ...success...
+ pass "pr 1234"
+ else
+ fail "pr 1234"
+
+not
+
+ if ...success...
+ pass "pr 1234 passed"
+ else
+ fail "pr 1234 failed"
+
+
+This lets test-tool (which drives the nightly tests) do a better job
+at tracking which tests have digressed or been fixed.
+
+Add more notes here. \ No newline at end of file