Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
8feccd84
Commit
8feccd84
authored
Jun 27, 2014
by
dbarbera
Browse files
Added test-llvm make rule
parent
738d4c8f
Changes
17
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
8feccd84
...
...
@@ -6,6 +6,9 @@ test-parse:
test-ada
:
@
python tests/test.py test-ada
test-llvm
:
@
python tests/test.py test-llvm
flake8
:
@
echo
Generating flake8_report file
flake8 opengeode.py sdlSymbols.py genericSymbols.py ogParser.py AdaGenerator.py Renderer.py Clipboard.py Lander.py ogAST.py undoCommands.py Connectors.py Asn1scc.py Helper.py Statechart.py
>
flake8_report
...
...
tests/regression/test1/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py og.pr system_structure.pr
--check
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
og.adb
test-llvm
:
../../../opengeode.py og.pr system_structure.pr
--llvm
llc og.ll
gcc
-c
og.s
coverage
:
coverage run
-p
../../../opengeode.py og.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test10/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py challenge.pr system_structure.pr
--check
...
...
@@ -12,8 +12,14 @@ test-ada:
gnatlink
-o
testcase test.o challenge.ali
-lgnat
-lm
./testcase | diff expected -
test-llvm
:
../../../opengeode.py challenge.pr system_structure.pr
--llvm
llc challenge.ll
gcc
-c
challenge.s
coverage
:
coverage run
-p
../../../opengeode.py challenge.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr testcase
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test11/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py og.pr system_structure.pr
--check
...
...
@@ -7,13 +7,23 @@ test-ada:
../../../opengeode.py
--toAda
og.pr system_structure.pr
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
*
.adb
gcc
-c
test.c
gcc
-c
test
_ada
.c
gnatbind
-n
og.ali
gnatlink
-o
testcase test.o og.ali
-lgnat
gnatlink
-o
testcase test
_ada
.o og.ali
-lgnat
./testcase | diff expected -
test-llvm
:
../../../opengeode.py og.pr system_structure.pr
--llvm
llc og.ll
gcc
-c
og.s
gcc
-c
test_llvm.c
gcc og.o test_llvm.o
-o
testcase
./testcase | diff expected -
coverage
:
coverage run
-p
../../../opengeode.py og.pr system_structure.pr
--toAda
clean
:
rm
-rf
result
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr testcase
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test11/test.c
→
tests/regression/test11/test
_ada
.c
View file @
8feccd84
#include
<math.h>
#include
<stdio.h>
extern
void
adainit
();
int
main
()
{
printf
(
"[C Code] Running test
\n
"
);
int
main
()
{
adainit
();
return
0
;
}
tests/regression/test11/test_llvm.c
0 → 100644
View file @
8feccd84
extern
void
og_startup
();
int
main
()
{
og_startup
();
return
0
;
}
\ No newline at end of file
tests/regression/test12/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py trafficlight.pr system_structure.pr
--check
...
...
@@ -11,8 +11,14 @@ test-ada:
#gnatbind -n trafficlight.ali
#gnatlink -o testcase test.o trafficlight.ali -lgnat -lm
test-llvm
:
../../../opengeode.py trafficlight.pr system_structure.pr
--llvm
llc trafficlight.ll
gcc
-c
trafficlight.s
coverage
:
coverage run
-p
../../../opengeode.py trafficlight.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
test
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test13/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py basic.pr system_structure.pr
--check
...
...
@@ -12,5 +12,14 @@ test-ada:
gnatlink test_ada.o basic.ali
-lgnat
-lm
-o
testcase
./testcase | diff expected -
test-llvm
:
../../../opengeode.py basic.pr system_structure.pr
--check
--llvm
llc basic.ll
gcc
-c
basic.s
gcc
-c
test_llvm.c
gcc basic.o test_llvm.o
-o
testcase
./testcase | diff expected -
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr testcase
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test14/Makefile
View file @
8feccd84
...
...
@@ -21,5 +21,5 @@ test-llvm:
./testcase | diff expected -
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali
\
gnat.cfg examiner
bin
*
.wrn
*
.gpr testcase
sequences.ll sequences
.s
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali
gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test2/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py orchestrator.pr system_structure.pr
--check
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
orchestrator.adb
test-llvm
:
../../../opengeode.py orchestrator.pr system_structure.pr
--llvm
llc orchestrator.ll
gcc
-c
orchestrator.s
coverage
:
coverage run
-p
../../../opengeode.py orchestrator.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test3/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py fce.pr system_structure.pr
--check
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
fce.adb
test-llvm
:
../../../opengeode.py fce.pr system_structure.pr
--llvm
llc fce.ll
gcc
-c
fce.s
coverage
:
coverage run
-p
../../../opengeode.py fce.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test4/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py orchestrator.pr system_structure.pr
--check
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
orchestrator.adb
test-llvm
:
../../../opengeode.py orchestrator.pr system_structure.pr
--llvm
llc orchestrator.ll
gcc
-c
orchestrator.s
coverage
:
coverage run
-p
../../../opengeode.py orchestrator.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test5/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py function0.pr system_structure.pr
--check
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
function0.adb
test-llvm
:
../../../opengeode.py function0.pr system_structure.pr
--llvm
llc function0.ll
gcc
-c
function0.s
coverage
:
coverage run
-p
../../../opengeode.py function0.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test6/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py myfunction.pr system_structure.pr
--check
...
...
@@ -8,9 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
myfunction.adb
test-llvm
:
../../../opengeode.py myfunction.pr system_structure.pr
--llvm
llc myfunction.ll
gcc
-c
myfunction.s
coverage
:
coverage run
-p
../../../opengeode.py myfunction.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test7/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py orchestrator.pr system_structure.pr
--check
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
orchestrator.adb
test-llvm
:
../../../opengeode.py orchestrator.pr system_structure.pr
--llvm
llc orchestrator.ll
gcc
-c
orchestrator.s
coverage
:
coverage run
-p
../../../opengeode.py orchestrator.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test8/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py
--check
orchestrator.pr system_structure.pr
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
orchestrator.adb
test-llvm
:
../../../opengeode.py orchestrator.pr system_structure.pr
--llvm
llc orchestrator.ll
gcc
-c
orchestrator.s
coverage
:
coverage run
-p
../../../opengeode.py orchestrator.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
tests/regression/test9/Makefile
View file @
8feccd84
all
:
test-ada
all
:
test-ada
test-llvm
test-parse
:
../../../opengeode.py challenge.pr system_structure.pr
--check
...
...
@@ -8,8 +8,14 @@ test-ada:
asn1.exe
-Ada
dataview-uniq.asn
-typePrefix
asn1Scc
-equal
gnatmake
-c
challenge.adb
test-llvm
:
../../../opengeode.py challenge.pr system_structure.pr
--llvm
llc challenge.ll
gcc
-c
challenge.s
coverage
:
coverage run
-p
../../../opengeode.py challenge.pr system_structure.pr
--toAda
clean
:
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner bin
*
.wrn
*
.gpr
rm
-rf
*
.adb
*
.ads
*
.pyc runSpark.sh spark.idx
*
.o
*
.ali gnat.cfg examiner
\
bin
*
.wrn
*
.gpr testcase
*
.ll
*
.s
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment