mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
test:spec: Add version of Infix/OEM build
Show the version of the infix build, for traceability This fix #744 Signed-off-by: Mattias Walström <lazzer@gmail.com>
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
:topdoc:
|
||||
|
||||
= Test specification
|
||||
This is the test specification for Infix.
|
||||
:title-page:
|
||||
:toc:
|
||||
:toclevels: 2
|
||||
:sectnums:
|
||||
:sectnumlevels: 2
|
||||
|
||||
<<<
|
||||
include::../case/misc/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/ietf_system/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/ietf_syslog/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/ietf_interfaces/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/ietf_routing/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/infix_containers/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/infix_dhcp/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/ietf_hardware/Readme.adoc[]
|
||||
|
||||
<<<
|
||||
|
||||
include::../case/infix_services/Readme.adoc[]
|
||||
@@ -1,7 +1,7 @@
|
||||
:topdoc:
|
||||
|
||||
= Test specification
|
||||
This is the test specification for {REPLACE}.
|
||||
{REPLACE}
|
||||
:title-page:
|
||||
:toc:
|
||||
:toclevels: 2
|
||||
|
||||
+9
-3
@@ -4,8 +4,14 @@ ninepm := $(BR2_EXTERNAL_INFIX_PATH)/test/9pm/9pm.py
|
||||
spec-dir := $(test-dir)/spec
|
||||
test-specification := $(O)/images/test-specification.pdf
|
||||
|
||||
UNIT_TESTS ?= $(test-dir)/case/all-repo.yaml $(test-dir)/case/all-unit.yaml
|
||||
TESTS ?= $(test-dir)/case/all.yaml
|
||||
UNIT_TESTS ?= $(test-dir)/case/all-repo.yaml $(test-dir)/case/all-unit.yaml
|
||||
TESTS ?= $(test-dir)/case/all.yaml
|
||||
ifeq ($INFIX_OEM_PATH), "")
|
||||
GIT_PATH = $(INFIX_OEM_PATH)
|
||||
else
|
||||
GIT_PATH = $(BR2_EXTERNAL_INFIX_PATH)
|
||||
endif
|
||||
GIT_VERSION = $(shell git -C $(GIT_PATH) describe --dirty --always --tags)
|
||||
|
||||
IMAGE ?= infix
|
||||
TOPOLOGY-DIR ?= $(test-dir)/virt/quad
|
||||
@@ -34,7 +40,7 @@ test-sh:
|
||||
$(test-dir)/env $(base) $(mode) $(binaries) -i /bin/sh
|
||||
|
||||
test-spec:
|
||||
@sed 's/{REPLACE}/$(subst ",,$(INFIX_NAME))/' $(spec-dir)/Readme.adoc.in > $(spec-dir)/Readme.adoc
|
||||
@sed 's/{REPLACE}/$(subst ",,$(INFIX_NAME)) $(GIT_VERSION)/' $(spec-dir)/Readme.adoc.in > $(spec-dir)/Readme.adoc
|
||||
@$(spec-dir)/generate_spec.py -d $(test-dir)/case -r $(BR2_EXTERNAL_INFIX_PATH)
|
||||
@asciidoctor-pdf --failure-level INFO --theme $(spec-dir)/theme.yml -a pdf-fontsdir=$(spec-dir)/fonts -o $(test-specification) $(spec-dir)/Readme.adoc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user