Commit 465894f3 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add test case for simulation

parent 50dec439
include ../shared.mk
all: test-ada test-llvm
edit:
$(OPENGEODE) test.pr
test-parse:
$(OPENGEODE) test.pr --check
test-ada:
$(OPENGEODE) test.pr --toAda
$(ASN1SCC) -Ada dataview.asn -typePrefix asn1Scc -equal
$(GNATMAKE) -O$(O) -c *.adb
$(GNATBIND) -n test.ali
simu:
$(OPENGEODE) test.pr --shared
./test_simu.sh
test-c:
$(OPENGEODE) test.pr --toC
$(ASN1SCC) -c dataview.asn -typePrefix asn1Scc -equal
$(CC) -O$(O) -c *.c
test-llvm:
$(OPENGEODE) test.pr --llvm -O$(O)
$(LLC) *.ll
$(CC) -O$(O) -c *.s
coverage:
coverage run -p $(OPENGEODE) test.pr --toAda
.PHONY: all edit test-parse test-ada test-llvm coverage simu
TASTE-Dataview DEFINITIONS ::=
BEGIN
MyChoice ::= CHOICE {
a SEQUENCE {},
b SEQUENCE {c SEQUENCE {}, d BOOLEAN}
}
END
SYSTEM test;
/* CIF TEXT (164, 303), (287, 140) */
-- Text area for declarations and comments
use datamodel comment 'dataview.asn';
signal go(MyChoice);
/* CIF ENDTEXT */
CHANNEL c
FROM ENV TO test WITH go;
ENDCHANNEL;
BLOCK test;
SIGNALROUTE r
FROM ENV TO test WITH go;
CONNECT c AND r;
/* CIF PROCESS (202, 142), (150, 75) */
PROCESS test;
/* CIF START (106, 48), (70, 35) */
START;
/* CIF NEXTSTATE (106, 98), (70, 35) */
NEXTSTATE wait;
/* CIF STATE (269, 45), (70, 35) */
STATE wait;
ENDSTATE;
ENDPROCESS test;
ENDBLOCK;
ENDSYSTEM;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment