-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
57 lines (43 loc) · 1.34 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
TESTS = $(wildcard programs/test*.py)
TEST_RESULTS = ${TESTS:.py=.out}
TEST_REFERENCE = ${TESTS:.py=.ref}
.PHONY: all test ref clean test-clean jenkins
all: bootstrapped.bin
test: ${TEST_RESULTS}
jenkins: clean
$(MAKE) jenkins-test
jenkins-test: ${TEST_RESULTS}
./jenkins-integration.py ${TEST_RESULTS}
ref: ${TEST_REFERENCE}
%.out: %.py bootstrapped.bin programs/files/stat4
@echo "Testing $<"
@./kpython --output-mode raw -- $< one two "three four" > [email protected]
@- test "`grep "< k > .K </ k >" [email protected]`" && cp [email protected] $@ && echo "$< passed"
programs/files/stat4:
rm -rf programs/files/stat4
mkdir programs/files/stat4
chmod ugo-rwx programs/files/stat4
%.ref: %.py
-PYTHONHASHSEED=1 python3.3 $< one two "three four" > /dev/null 2>&1 && touch $@
bootstrapped.bin: python-kompiled/base.maude kpython
rm -f bootstrapped.bin
./kpython -cPGM="bootstrap"
semantics: python-kompiled/base.maude
test -e bootstrapped.bin && touch bootstrapped.bin
python-kompiled/base.maude: ?*.k
kompile python.k -v --transition "allocation"
clean: test-clean
rm -rf .k
rm -rf python-kompiled
rm -f bootstrapped.bin
rm -f kompile_*
rm -f all_tokens.tok
rm -f kmain-python.maude python.maude shared.maude
rm -f out
rm -f IN.maude
rm -f *.k~
rm -f *.orig
rm -f junit-results.xml
rm -f nohup.out
test-clean:
rm -f programs/*.out programs/*.ref programs/*.out.tmp