diff options
author | Piotr Fusik <fox@scene.pl> | 2023-06-16 16:23:57 +0200 |
---|---|---|
committer | Piotr Fusik <fox@scene.pl> | 2023-06-16 16:23:57 +0200 |
commit | f0c7d444cbe9848f3f590ecf9808c4656f95115a (patch) | |
tree | e1cd924dfee88da80b9fa04b6efd639f1722c584 | |
parent | c63a5e104ba2a8c881c8d2802ea2e3501aa612e7 (diff) |
[test] Speed up coverage assesment.travis
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -241,10 +241,12 @@ test/node_modules: test/package.json test/bin/%/error.txt: test/error/%.ci cito $(DO)mkdir -p $(@D) && ! $(CITO) -o $(@:%.txt=%.cs) $< 2>$@ && perl -ne 'print "$$ARGV($$.): $$1\n" while m!//(ERROR: .+?)(?=$$| //)!g' $< | diff -u --strip-trailing-cr - $@ && echo PASSED >$@ -test-transpile: $(foreach t, $(patsubst test/%.ci, test/bin/%/Test., $(wildcard test/*.ci)), $tc $tcpp $tcs $td $tjava $tjs $tts $tpy $tswift $tcl) +test-transpile: $(patsubst test/%.ci, test/bin/%/all, $(wildcard test/*.ci)) + +test/bin/%/all: test/%.ci cito + $(DO)mkdir -p $(@D) && $(CITO) -o $(@D)/Test.c,cpp,cs,d,java,js,d.ts,ts,py,swift,cl $< || true coverage/output.xml: - $(MAKE) clean dotnet-coverage collect -f xml -o $@ "make -j`nproc` test-transpile test-error CITO_HOST=cs" coverage: coverage/output.xml |