tools/tests: remove vhpet tests
PATCH 1/1 tools/tests: remove vhpet tests
tools/tests/vhpet tests don't build since ages (at least since 4.10) and they can't be activated from outside of tools/tests/vhpet.
Remove them as they seem to be irrelevant.
---
Andrew seems to remember that Roger wanted to keep those tests, but this information might be stale or based on false assumptions. So this patch should only go in with Roger's Ack.
--- tools/tests/vhpet/.gitignore | 4 - tools/tests/vhpet/Makefile | 39 -- tools/tests/vhpet/emul.h | 414 ------------------- tools/tests/vhpet/main.c | 776 ----------------------------------- 4 files changed, 1233 deletions(-) delete mode 100644 tools/tests/vhpet/.gitignore delete mode 100644 tools/tests/vhpet/Makefile delete mode 100644 tools/tests/vhpet/emul.h delete mode 100644 tools/tests/vhpet/main.c
tools/tests/vhpet/.gitignore deleted +0 -4
@@ -1,4 +0,0 @@ -test_vhpet -test_vhpet.out -hpet.h -hpet.c
tools/tests/vhpet/Makefile deleted +0 -39
@@ -1,39 +0,0 @@ - -XEN_ROOT=$(CURDIR)/../../.. -include $(XEN_ROOT)/tools/Rules.mk - -TARGET := test_vhpet - -.PHONY: all -all: $(TARGET) - -.PHONY: run -run: $(TARGET) - ./$(TARGET) > $(TARGET).out - ./$(TARGET) 0 > $(TARGET).0.out - ./$(TARGET) 0 1 0 20 > $(TARGET).0.1.0.20.out - ./$(TARGET) 200 > $(TARGET).200.out - ./$(TARGET) 200 1 0 20 > $(TARGET).200.1.0.20.out - ./$(TARGET) 300 5 > $(TARGET).200.5.out - ./$(TARGET) 400 4 2000 > $(TARGET).200.4.2000.out - ./$(TARGET) 0 1 0 20 0x0103 > $(TARGET).0.1.0.20.0x0103.out - ./$(TARGET) 200 1 0 20 0x0103 > $(TARGET).200.1.0.20.0x0103.out - -$(TARGET): hpet.c main.c hpet.h emul.h Makefile - $(HOSTCC) -g -o $@ hpet.c main.c - -.PHONY: clean -clean: - rm -rf $(TARGET) $(TARGET).out *.o *~ core* hpet.h hpet.c - -.PHONY: distclean -distclean: clean - -.PHONY: install -install: - -hpet.h: $(XEN_ROOT)/xen/arch/x86/include/asm/hpet.h - cp $< $@ - -hpet.c: $(XEN_ROOT)/xen/arch/x86/hvm/hpet.c - sed -e "/#include/d" -e "1i#include \"emul.h\"\n" <$< >$@
tools/tests/vhpet/emul.h deleted +0 -414
414 lines not on this page · raw message
tools/tests/vhpet/main.c deleted +0 -776
776 lines not on this page · raw message
Signature · 1 line
2.35.3
Quoted 2 lines · Juergen Gross
tools/tests/vhpettests don't build since ages (at least since 4.10) and they can't be activated from outside oftools/tests/vhpet.
This isn't exactly true - see the run-tests-% goal in the top level Makefile.
Quoted 7 lines
Remove them as they seem to be irrelevant.
Signed-off-by Juergen Gross <[email protected]>---
Andrew seems to remember that Roger wanted to keep those tests, but this information might be stale or based on false assumptions. So this patch should only go in with Roger's Ack.
Having tried a little I can see that it's going to be quite a bit of work to get the thing to at least build again. In fact it looks as if it, having been introduced in 4.5, may already not have built successfully anymore by the time 4.5 was released: hpet_init() takes a struct domain *, but is passed &vcpu0 (matching what I can see in 4.4); I've noticed this while trying to figure out from where it got a declaration of the function in the first place.
Nevertheless the test once served a purpose, so it may be worth making it work again. So yes, to decide which direction to move we will want Roger's opinion.
Whether just building it by default is useful I'm not entirely certain. What I'd consider more useful is if tests like this were _run_ in the course of routine automated testing.
Jan
Quoted 6 lines · Jan Beulich
Quoted 2 lines · Juergen Gross
tools/tests/vhpettests don't build since ages (at least since 4.10) and they can't be activated from outside oftools/tests/vhpet.This isn't exactly true - see the run-tests-% goal in the top level
Makefile.
Ah, I missed that one.
Quoted 17 lines
Quoted 8 lines
Remove them as they seem to be irrelevant.
Signed-off-by Juergen Gross <[email protected]>---
Andrew seems to remember that Roger wanted to keep those tests, but this information might be stale or based on false assumptions. So this patch should only go in with Roger's Ack.Having tried a little I can see that it's going to be quite a bit of work to get the thing to at least build again. In fact it looks as if it, having been introduced in 4.5, may already not have built successfully anymore by the time 4.5 was released:
hpet_init()takes a struct domain *, but is passed &vcpu0 (matching what I can see in 4.4); I've noticed this while trying to figure out from where it got a declaration of the function in the first place.
Quoted 3 lines
Nevertheless the test once served a purpose, so it may be worth making it work again. So yes, to decide which direction to move we will want Roger's opinion.
Yes, I agree. The main reason to write this patch was to come to a decision what to do with the test: discard it or repair it.
Quoted 3 lines
Whether just building it by default is useful I'm not entirely certain. What I'd consider more useful is if tests like this were _run_ in the course of routine automated testing.
In which case it would need to built at least by this test step.
I agree this would be a sensible thing to do.
Juergen
Quoted 10 lines · Juergen Gross
tools/tests/vhpettests don't build since ages (at least since 4.10) and they can't be activated from outside oftools/tests/vhpet.Remove them as they seem to be irrelevant.
Signed-off-by Juergen Gross <[email protected]>---
Andrew seems to remember that Roger wanted to keep those tests, but this information might be stale or based on false assumptions. So this patch should only go in with Roger's Ack.
Everything I've done related to the vHPET was tested using XTF rather than this unit tests. I don't think they are useful as unit tests, if anything we should consider re-implementing them using XTF.
Thanks, Roger.