@@ -15,34 +15,34 @@ docs:
1515
1616.PHONY : lint
1717lint :
18+ cargo clippy --workspace -- -D warnings
19+ cargo clippy --workspace --no-default-features -- -D warnings
20+ cargo clippy --workspace --all-features -- -D warnings
1821 cargo fmt --all -- --check
19- cargo clippy -- -D warnings
20- cargo clippy --no-default-features -- -D warnings
21- cargo clippy --all-features -- -D warnings
2222
2323.PHONY : check
2424check :
2525 cargo test --workspace
2626 cargo test --workspace --no-default-features
2727
28- .PHONY : suite
29- suite :
28+ .PHONY : test_html_ut
29+ test_html_ut :
3030 git submodule update --init modules/djot.js
3131 for f in $$ (find modules/djot.js/test -name ' *.test' | xargs basename -a); do \
32- ln -fs ../../modules/djot.js/test/$$ f tests/suite /djot_js_$$ f; \
32+ ln -fs ../../../ modules/djot.js/test/$$ f tests/html-ut/ut /djot_js_$$ f; \
3333 done
34- (cd tests/suite && make)
35- cargo test --features suite suite::
34+ cargo test -p test-html-ut
35+ cargo test -p test-html-ut -- --ignored 2> /dev/null | grep -q ' test result: FAILED. 0 passed '
3636
37- .PHONY : suite_bench
38- suite_bench :
37+ .PHONY : test_html_ref
38+ test_html_ref :
3939 git submodule update --init modules/djot.js
4040 for f in $$ (find modules/djot.js/bench -name ' *.dj' | xargs basename -a); do \
4141 dst=$$(echo $$f | sed 's/-/_/g' ) ; \
42- ln -fs ../../modules/djot.js/bench/$$ f tests/bench /$$ dst; \
42+ ln -fs ../../modules/djot.js/bench/$$ f tests/html-ref /$$ dst; \
4343 done
44- (cd tests/bench && make)
45- cargo test --features suite_bench bench::
44+ cargo test -p test-html-ref
45+ cargo test -p test-html-ref -- --ignored 2> /dev/null | grep -q ' test result: FAILED. 0 passed '
4646
4747.PHONY : bench
4848bench :
5252 ln -fs ../../modules/djot.js/bench/$$ f bench/input/$$ dst; \
5353 done
5454
55- cov : suite suite_bench
56- LLVM_COV=llvm-cov LLVM_PROFDATA=llvm-profdata cargo llvm-cov --features=suite,suite_bench --workspace --html --ignore-run-fail
57-
5855AFL_TARGET? =parse
5956AFL_JOBS? =1
6057AFL_TARGET_CRASH? =crashes
@@ -101,11 +98,12 @@ afl_tmin:
10198
10299clean :
103100 cargo clean
101+ rm -rf bench/iai/target
104102 git submodule deinit -f --all
105- find tests -type l -path ' tests/suite /*.test' -print0 | xargs -0 rm -f
106- (cd tests/suite && make clean)
107- rm -f tests/bench /* .dj
108- (cd tests/bench && make clean)
103+ find tests -type l -path ' tests/html-ut/ut /*.test' -print0 | xargs -0 rm -f
104+ (cd tests/html-ut && make clean)
105+ rm -f tests/html-ref /* .dj
106+ (cd tests/html-ref && make clean)
109107 find bench -type l -path ' bench/*.dj' -print0 | xargs -0 rm -f
110108 rm -rf tests/afl/out
111109 (cd examples/jotdown_wasm && make clean)
0 commit comments