-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.61 KB
/
Makefile
File metadata and controls
48 lines (40 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PHP=php
PYTHON=python3
LINKS=-lm
CFLAGS=-std=c11 -Wall -Wextra -pedantic -g
TEST_PARSER_DIC=tests/parse-only/move
TEST_INT_DIC=tests/interpret-only
TEST_INT_BOTH=tests/both
TEST_INT_STACK=tests/interpret-advanced/stack_tests
TEST_INT_FLOAT=tests/interpret-advanced/float_tests
TEST_KOULE=tests/hardcore-koule/Lakoc/koule_Lakoc.xml
PARSER=src/parser/parser.php
TESTER=src/tester/test.php
INTERPRET=src/interpreter/interpret.py
PARSER_OUTPUT=test_output/testparser.html
INT_OUTPUT=test_output/testint.html
BOTH_OUTPUT=test_output/testboth.html
STACK_OUTPUT=test_output/teststack.html
FLOAT_OUTPUT=test_output/testfloat.html
STATS_FILE=stats/test.st
test_int_advanced: test_int_stack test_int_float
test_parser:
$(PHP) $(TESTER) --parse-only --parse-script=$(PARSER) --recursive --directory=$(TEST_PARSER_DIC) > $(PARSER_OUTPUT) ;
open $(PARSER_OUTPUT)
test_int:
$(PHP) $(TESTER) --int-only --int-script=$(INTERPRET) --recursive --directory=$(TEST_INT_DIC) > $(INT_OUTPUT) ;
open $(INT_OUTPUT)
test_both:
$(PHP) $(TESTER) --recursive --parse-script=$(PARSER) --int-script=$(INTERPRET) --directory=$(TEST_INT_BOTH) > $(BOTH_OUTPUT) ;
open $(BOTH_OUTPUT)
test_int_stack:
$(PHP) $(TESTER) --recursive --int-only --int-script=$(INTERPRET) --directory=$(TEST_INT_STACK) > $(STACK_OUTPUT) ;
open $(STACK_OUTPUT)
test_int_float:
$(PHP) $(TESTER) --recursive --int-only --int-script=$(INTERPRET) --directory=$(TEST_INT_FLOAT) > $(FLOAT_OUTPUT) ;
open $(FLOAT_OUTPUT)
test_koule:
$(PYTHON) $(INTERPRET) --source=$(TEST_KOULE) --stats=$(STATS_FILE) --insts --vars
.PHONY: clean
clean:
rm -f $(INT_OUTPUT) $(PARSER_OUTPUT) $(BOTH_OUTPUT)