There are enough files starting with test.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
/docs/autogenerated/
/selftests/test-*
/tests/*/test-*
+/tests/*/info.json
clean:
find . \( -name "*.o" -o -name "*.d" -o -name "*.lds" \) -delete
find tests/ \( -perm -a=x -name "test-*" -o -name "test-*.cfg" \
- -o -name "test-info.json" \) -delete
+ -o -name "info.json" \) -delete
.PHONY: distclean
distclean: clean
.PHONY: build
build: $(foreach env,$(TEST-ENVS),test-$(env)-$(NAME) test-$(env)-$(NAME).cfg)
-build: test-info.json
+build: info.json
-test-info.json: $(ROOT)/build/mkinfo.py FORCE
+info.json: $(ROOT)/build/mkinfo.py FORCE
@$(PYTHON) $< $@.tmp "$(NAME)" "$(CATEGORY)" "$(TEST-ENVS)"
@$(call move-if-changed,$@.tmp,$@)
.PHONY: install install-each-env
-install: install-each-env test-info.json
+install: install-each-env info.json
@$(INSTALL_DIR) $(DESTDIR)$(xtftestdir)/$(NAME)
- $(INSTALL_DATA) test-info.json $(DESTDIR)$(xtftestdir)/$(NAME)
+ $(INSTALL_DATA) info.json $(DESTDIR)$(xtftestdir)/$(NAME)
define PERENV_build
$ make -j4
... <snip>
$ ls tests/example/
+ info.json
main.c
main-hvm32.d
main-hvm32.o
test-hvm32pse-example.cfg
test-hvm64-example
test-hvm64-example.cfg
- test-info.json
test-pv32pae-example
test-pv32pae-example.cfg
test-pv64-example
The `.o` and `.d` files are build artefacts, leading to the eventual
`test-$ENV-$NAME` microkernel. Individual `xl.cfg` files are generated for
-each microkernel. `test-info.json` contains metadata about the test.
+each microkernel. `info.json` contains metadata about the test.
@section install Installing
""" Errors relating to xtf-runner itself """
def open_test_info():
- """ Open and collate each test-info.json """
+ """ Open and collate each info.json """
info = {}
test_json = {}
try:
- # Ignore directories which don't have a test-info.json inside them
+ # Ignore directories which don't have a info.json inside them
try:
- test_info = open(path.join("tests", test, "test-info.json"))
+ test_info = open(path.join("tests", test, "info.json"))
except IOError:
continue