mirror of
https://github.com/catseye/SixtyPical.git
synced 2025-04-07 23:37:23 +00:00
Start of tests for this.
This commit is contained in:
parent
b09d0c0b76
commit
684256f7e9
1
test.sh
1
test.sh
@ -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"
|
||||
|
22
tests/SixtyPical Callgraph.md
Normal file
22
tests/SixtyPical Callgraph.md
Normal 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"
|
||||
= ]
|
||||
= ]
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user