Start of tests for this.

This commit is contained in:
Chris Pressey 2019-10-21 17:29:38 +01:00
parent b09d0c0b76
commit 684256f7e9
3 changed files with 26 additions and 0 deletions

View File

@ -10,4 +10,5 @@ falderal --substring-error \
"tests/SixtyPical Storage.md" \
"tests/SixtyPical Control Flow.md" \
"tests/SixtyPical Fallthru.md" \
"tests/SixtyPical Callgraph.md" \
"tests/SixtyPical Compilation.md"

View File

@ -0,0 +1,22 @@
SixtyPical Callgraph
====================
This is a test suite, written in [Falderal][] format, for the ability of
a SixtyPical analyzer to construct a callgraph of which routines call which
other routines, and its ability to discover which routines will never be
called.
[Falderal]: http://catseye.tc/node/Falderal
-> Tests for functionality "Dump callgraph info for SixtyPical program"
The `main` routine is always called.
| define main routine
| {
| }
= [
= [
= "main"
= ]
= ]

View File

@ -16,5 +16,8 @@ implementation, `sixtypical`, that is going to implement these functionalities.
-> Functionality "Dump fallthru info for SixtyPical program" is implemented by
-> shell command "bin/sixtypical --optimize-fallthru --dump-fallthru-info --analyze-only --traceback %(test-body-file)"
-> Functionality "Dump callgraph info for SixtyPical program" is implemented by
-> shell command "bin/sixtypical --dump-callgraph --analyze-only --traceback %(test-body-file)"
-> Functionality "Compile SixtyPical program with fallthru optimization" is implemented by
-> shell command "bin/sixtypical --output-format=c64-basic-prg --optimize-fallthru --traceback %(test-body-file) --output /tmp/foo && tests/appliances/bin/dcc6502-adapter </tmp/foo"