Support #251
How to add a test for CoCoA-5 (CoCoAInterpreter)
Description
- write a test file foo.cocoa5 in tests/
- run it and check if it really does what you want it to do ;-)
- add foo.cocoa5 in tests/Makefile (in the list TESTS= ...)
- in tests/ run (the first make check will obviously return an error)
make check mv foo.found foo.out make check
See below for external libs
Related issues
History
#1
Updated by Anna Maria Bigatti almost 12 years ago
For external libraries:
same as above, but the test file has to be called, say for library Foo,
ExtLibFOO.cocoa5
Such test is run only if the variable HAVE_FOO is set to "yes" in autoconf.mk.
If it isn't no test is run, because a different mechanism has to be used to automatically check "errors" in an easy way (still thinking ...)
#2
Updated by Anna Maria Bigatti over 11 years ago
- Category set to Portability
#3
Updated by Anna Maria Bigatti over 11 years ago
- Category deleted (
Portability)
#4
Updated by Anna Maria Bigatti over 11 years ago
- Category set to Manual/documentation
#5
Updated by Anna Maria Bigatti over 10 years ago
- Target version set to CoCoA-5.1.0 Easter14
#6
Updated by Anna Maria Bigatti about 10 years ago
- Estimated time set to 1.50 h
#7
Updated by John Abbott about 10 years ago
JAA suggests as a general rule: try to avoid designing tests that produce much output (unless the test specifically checks some "output" function).
Why do I think this? Not entirely sure; but I definitely prefer "silent" tests(e.g. TEST_ASSERT(fn(a,b) == c)
).
If a test is long, it might be worth printing out a little "progress report" every so often...?
#8
Updated by John Abbott about 10 years ago
I have recently added a new C5 test (exbugs.cocoa5
) and was surprised to find that it produces output. What happened was that the file was read using input redirection rather than being passed to C5 as a comand line argument; this means that every input line produced a prompt.
I suggest passing the file name as a cmd line arg to avoid this; doing so would make exbugs.cocoa5
a "silent" test. This would then require modifying the expected output of all tests.
#9
Updated by John Abbott about 10 years ago
- Target version changed from CoCoA-5.1.0 Easter14 to CoCoA-5.1.1 Seoul14
#10
Updated by John Abbott almost 10 years ago
- Target version changed from CoCoA-5.1.1 Seoul14 to CoCoA-5.1.2 summer 2015
#11
Updated by Anna Maria Bigatti almost 9 years ago
- Status changed from Resolved to Closed
- % Done changed from 90 to 100