Skip to content

Commit 5cb02ce

Browse files
author
rasmussn
committed
Initial version.
1 parent c4c339a commit 5cb02ce

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

tests/productions/Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
SYNTAX = ../../src/syntax
2+
3+
all : check
4+
5+
$(SYNTAX)/Fortran.tbl :
6+
cd $(SYNTAX) ; make ; cd -
7+
8+
check : $(SYNTAX)/Fortran.tbl
9+
@for file in *.f90 ; do \
10+
echo "Running test $$file"; \
11+
sglri -p $(SYNTAX)/Fortran.tbl -i $$file -o $$file.ast; \
12+
if test $$? != 0 ; then \
13+
echo $$file " FAILED!"; \
14+
fi; \
15+
pp-aterm -i $$file.ast -o $$file.ast.aterm; \
16+
done;
17+
18+
junk :
19+
sglri -p $(SYNTAX)/Fortran.tbl -i junk.f90 -o junk.f90.ast
20+
pp-aterm -i junk.f90.ast -o junk.f90.aterm
21+
22+
clean :
23+
rm -f *.ast *.ast.aterm
24+
rm -f *.o *.mod

0 commit comments

Comments
 (0)