-
Notifications
You must be signed in to change notification settings - Fork 139
/
Makefile
38 lines (28 loc) · 1.79 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
SUBMODULES = testdata/Packages/.git
info:
$(info Targets)
$(info -----------------------------------------------------------------------)
$(info assets | generate default theme packs and syntax)
$(info - OTHER TARGETS -------------------------------------------------------)
$(info themes | generate default theme pack)
$(info packs | generate default syntax pack)
$(info syntest | run syntax test summary)
$(SUBMODULES):
git submodule update --init --recursive
assets: packs themes
packs: $(SUBMODULES)
cargo run --features=metadata --example gendata -- synpack testdata/Packages assets/default_newlines.packdump assets/default_nonewlines.packdump assets/default_metadata.packdump testdata/DefaultPackage
themes: $(SUBMODULES)
cargo run --example gendata -- themepack testdata assets/default.themedump
syntest: $(SUBMODULES)
@echo Tip: Run make update-known-failures to update the known failures file.
cargo run --release --example syntest -- testdata/Packages testdata/Packages --summary | diff -U 1000000 testdata/known_syntest_failures.txt -
@echo No new failures!
syntest-fancy: $(SUBMODULES)
@echo Tip: Run make update-known-failures to update the known failures file.
cargo run --features default-fancy --no-default-features --release --example syntest -- testdata/Packages testdata/Packages --summary | diff -U 1000000 testdata/known_syntest_failures_fancy.txt -
@echo No new failures!
update-known-failures: $(SUBMODULES)
cargo run --release --example syntest -- testdata/Packages testdata/Packages --summary | tee testdata/known_syntest_failures.txt
update-known-failures-fancy: $(SUBMODULES)
cargo run --features default-fancy --no-default-features --release --example syntest -- testdata/Packages testdata/Packages --summary | tee testdata/known_syntest_failures_fancy.txt