• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ChangeLogH A D12-Sep-1999412 168

I.gamH A D12-Sep-19993.4 KiB14797

Makefile.amH A D12-Sep-1999124 152

Makefile.inH A D13-Sep-19995.3 KiB218162

Q.gamH A D12-Sep-19993.6 KiB165111

READMEH A D12-Sep-1999945 3320

all.gamH A D12-Sep-19991.6 KiB7864

gammon.inH A D13-Sep-199911 KiB566391

README

1README for nana/test
2
3* Running tests.
4use "make check" to run the checkall program which runs the real tests by
5using the checkall program.
6
7individual tests can be run as "nana-clg DI.c | check.awk"
8
9* Method.
10The test programs include "check.h" which provides a set of macros
11which generate output in the form:
12
13output from code@expected output@message\n
14
15This can then be verified by check.awk
16
17* Known Problems.
18With -O3 the local variables used in the test are optimised away so
19we can't use DI(i>=0) etc. Adding a volatile to the declaration solves
20this problem. If you want to see it, add a "-O3 -Dvolatile=" line into
21checkall in the list of optimisation options
22
23* Why so many tests (or so few).
24A lot of the tests are aimed at testing the compiler rather than the
25library. A fair bit of bash testing is needed to find the limitations
26of debuggers and compilers, e.g. a debugger that can only set less
27than 10,000 breakpoints.
28
29
30
31
32
33