-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (40 loc) · 1.84 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
.PHONY: test_perso test_public
ALL: test_daily
# Launch the test with the vasm version of my machine
test_perso:
python vasm_eval.py
# Launch the test with the public version of vasm
test_daily:
$(MAKE) __test__really__ VASM_URL=http://sun.hasenbraten.de/vasm/daily/vasm.tar.gz VASM_PATTERN=$(VASM_PATTERN)
# Launch the test with a specific version
test_version_1.7g:
$(MAKE) __test__really__ VASM_URL=http://server.owl.de/~frank/tags/vasm1_7g.tar.gz VASM_PATTERN=$(VASM_PATTERN)
test_version_1.7f:
$(MAKE) __test__really__ VASM_URL=http://server.owl.de/~frank/tags/vasm1_7f.tar.gz VASM_PATTERN=$(VASM_PATTERN)
test_version_1.7e:
$(MAKE) __test__really__ VASM_URL=http://server.owl.de/~frank/tags/vasm1_7e.tar.gz VASM_PATTERN=$(VASM_PATTERN)
test_version_1.7d:
$(MAKE) __test__really__ VASM_URL=http://server.owl.de/~frank/tags/vasm1_7d.tar.gz VASM_PATTERN=$(VASM_PATTERN)
test_version_1.7c:
$(MAKE) __test__really__ VASM_URL=http://server.owl.de/~frank/tags/vasm1_7c.tar.gz VASM_PATTERN=$(VASM_PATTERN)
test_version_1.7b:
$(MAKE) __test__really__ VASM_URL=http://server.owl.de/~frank/tags/vasm1_7b.tar.gz VASM_PATTERN=$(VASM_PATTERN)
__test__really__:
-rm -rf vasm
@wget $(VASM_URL) -O vasm.tar.gz > /dev/null
@tar -xzf vasm.tar.gz > /dev/null
@rm vasm.tar.gz > /dev/null
@cd vasm && make CPU=z80 SYNTAX=oldstyle -j $$(nproc) > /dev/null
python vasm_eval.py vasm/vasmz80_oldstyle $(VASM_PATTERN) | tee current_state.txt
@rm -rf vasm
update_current_state:
$(MAKE) test_public
git add current_state.txt
-git commit -m "Update log results with current vasm version"
THIRD_PARTIES_FILES_GOOD=thirdparties/vasmz80_testcases/z80validopcodes.asm
include_third_parties:
cd
for file in $(THIRD_PARTIES_FILES); \
do \
cat $$file | sed -e 's/\.section/section/' > good/$$(basename $$file) ; \
cp $$(dirname $$file)/$$(basename -s 'asm' $$file).bin