[elbe-devel] [PATCH 6/6] Add example for test-suites in include development example.

dion at linutronix.de dion at linutronix.de
Thu Jul 18 14:02:46 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Simple example to demonstrate how to use test suites in the
<project-finetuning> node.

If new test case types are add, they should be add to the
"project-finetuning.xml" file.

By running the example, users should see a output.xml in the build
directory of the project.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 examples/includes/devel/project-finetuning.xml        | 13 +++++++++++++
 examples/x86_32-pc-hdimg-with-include-development.xml |  1 +
 2 files changed, 14 insertions(+)
 create mode 100644 examples/includes/devel/project-finetuning.xml

diff --git a/examples/includes/devel/project-finetuning.xml b/examples/includes/devel/project-finetuning.xml
new file mode 100644
index 00000000..0aa67c63
--- /dev/null
+++ b/examples/includes/devel/project-finetuning.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<project-finetuning>
+	<test-suites dst="junit.xml">
+		<test-suite name="Suite 1">
+			<file-exists>/etc/fstab</file-exists>
+			<file-exists>/dev/fuse</file-exists>
+		</test-suite>
+		<test-suite name="Suite 2">
+			<file-exists>/bin/bash</file-exists>
+			<file-exists>/bin/clang</file-exists>
+		</test-suite>
+	</test-suites>
+</project-finetuning>
diff --git a/examples/x86_32-pc-hdimg-with-include-development.xml b/examples/x86_32-pc-hdimg-with-include-development.xml
index ccb6dd7b..220e7c50 100644
--- a/examples/x86_32-pc-hdimg-with-include-development.xml
+++ b/examples/x86_32-pc-hdimg-with-include-development.xml
@@ -36,5 +36,6 @@
 		</fstab>
 		<xi:include href="includes/devel/finetuning.xml"/>
 		<xi:include href="includes/devel/pkglist.xml"/>
+		<xi:include href="includes/devel/project-finetuning.xml"/>
 	</target>
 </ns0:RootFileSystem>
-- 
2.11.0




More information about the elbe-devel mailing list