Skip to contentSkip to conversation

Make target check-report.tap is broken

Qemu-devel Markus Armbruster 2 participants 3 messages May 28, 2019

lore
Share & tools
lore
#0 lore raw

Commit 9df43317b82 "test: replace gtester with a TAP driver" replaced targets check-report.xml and check-report.html by

check-report.tap: $(patsubst %,check-report-qtest-%.tap, $(QTEST_TARGETS)) check-report-unit.tap

	$(call quiet-command,./scripts/tap-merge.py $^ > $@,"GEN","$@")

This never worked: scripts/tap-merge.py does not exist.

Perhaps it accidentally wasn't committed.

Perhaps it's just a typoed tap-merge.pl. But that one reads its intput from stdin. Possible fix appended.

Paolo, please advise.

tests/Makefile.include +1 -1
index 1a3f17faa9..54d888fc5c 100644
@@ -905,7 +905,7 @@ check-report-unit.tap: $(check-unit-y)
 # Reports and overall runs
 
 check-report.tap: $(patsubst %,check-report-qtest-%.tap, $(QTEST_TARGETS)) check-report-unit.tap
-	$(call quiet-command,./scripts/tap-merge.py $^ > $@,"GEN","$@")
+	$(call quiet-command, cat $^ | scripts/tap-merge.pl >$@,"GEN","$@")
 
 # FPU Emulation tests (aka softfloat)
 #
#1 lore raw
Quoted 4 lines · Markus Armbruster

Commit 9df43317b82 "test: replace gtester with a TAP driver" replaced targets check-report.xml and check-report.html by

check-report.tap: $(patsubst %,check-report-qtest-%.tap, $(QTEST_TARGETS)) check-report-unit.tap

Quoted 8 lines
	$(call quiet-command,./scripts/tap-merge.py $^ > $@,"GEN","$@")

This never worked: scripts/tap-merge.py does not exist.

Perhaps it accidentally wasn't committed.

Perhaps it's just a typoed tap-merge.pl. But that one reads its intput from stdin. Possible fix appended.

Indeed that's the right one.

Paolo

Quoted 18 lines

Paolo, please advise.

tests/Makefile.include +1 -1
index 1a3f17faa9..54d888fc5c 100644
@@ -905,7 +905,7 @@ check-report-unit.tap: $(check-unit-y)
 # Reports and overall runs
 
 check-report.tap: $(patsubst %,check-report-qtest-%.tap, $(QTEST_TARGETS)) check-report-unit.tap
-	$(call quiet-command,./scripts/tap-merge.py $^ > $@,"GEN","$@")
+	$(call quiet-command, cat $^ | scripts/tap-merge.pl >$@,"GEN","$@")
 
 # FPU Emulation tests (aka softfloat)
 #
#2 lore raw
Quoted 7 lines · Paolo Bonzini
Quoted 6 lines · Markus Armbruster

Commit 9df43317b82 "test: replace gtester with a TAP driver" replaced targets check-report.xml and check-report.html by

check-report.tap: $(patsubst %,check-report-qtest-%.tap, $(QTEST_TARGETS)) check-report-unit.tap

	$(call quiet-command,./scripts/tap-merge.py $^ > $@,"GEN","$@")
Quoted 8 lines
Quoted 6 lines

This never worked: scripts/tap-merge.py does not exist.

Perhaps it accidentally wasn't committed.

Perhaps it's just a typoed tap-merge.pl. But that one reads its intput from stdin. Possible fix appended.

Indeed that's the right one.

Then I'll post it as a proper patch. Thanks!