summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Fusik <fox@scene.pl>2023-06-16 16:23:57 +0200
committerPiotr Fusik <fox@scene.pl>2023-06-16 16:23:57 +0200
commitf0c7d444cbe9848f3f590ecf9808c4656f95115a (patch)
treee1cd924dfee88da80b9fa04b6efd639f1722c584
parentc63a5e104ba2a8c881c8d2802ea2e3501aa612e7 (diff)
[test] Speed up coverage assesment.travis
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d95ad48..119883a 100644
--- a/Makefile
+++ b/Makefile
@@ -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