From 947603b5d7f05053a93a3cfe257fa7ab11304a90 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Thu, 8 May 2014 21:16:31 +0200 Subject: Implemented black-box test cases * the directories below "./test" contain test cases ** "transformation.xsl" and the expected result as "reference.xml" ** tests are performed by "check.sh" *** returns diff on error * this system enables simple verification of external function results ** way simpler than C++ unit tests would be in this scenario * expanded cmake instructions to automatically execute the test cases * old example transformation was removed --- test/read_file/reference.xml | 11 +++++++++++ test/read_file/transformation.xsl | 24 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 test/read_file/reference.xml create mode 100644 test/read_file/transformation.xsl (limited to 'test/read_file') diff --git a/test/read_file/reference.xml b/test/read_file/reference.xml new file mode 100644 index 0000000..7cbcc95 --- /dev/null +++ b/test/read_file/reference.xml @@ -0,0 +1,11 @@ + + +<?xml version="1.0"?> +<tester> + <eintrag>Hello 1</eintrag> + <eintrag>Hello 2</eintrag> + <eintrag>Hello 3</eintrag> + <eintrag>Hello 4</eintrag> +</tester> + + diff --git a/test/read_file/transformation.xsl b/test/read_file/transformation.xsl new file mode 100644 index 0000000..96b8976 --- /dev/null +++ b/test/read_file/transformation.xsl @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + -- cgit v1.2.3