summaryrefslogtreecommitdiff
path: root/Tests/CMakeLib/testXMLParser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeLib/testXMLParser.cxx')
-rw-r--r--Tests/CMakeLib/testXMLParser.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testXMLParser.cxx b/Tests/CMakeLib/testXMLParser.cxx
new file mode 100644
index 000000000..54ed5dc90
--- /dev/null
+++ b/Tests/CMakeLib/testXMLParser.cxx
@@ -0,0 +1,17 @@
+#include "testXMLParser.h"
+
+#include "cmXMLParser.h"
+
+#include <cmsys/ios/iostream>
+
+int testXMLParser(int, char*[])
+{
+ // TODO: Derive from parser and check attributes.
+ cmXMLParser parser;
+ if(!parser.ParseFile(SOURCE_DIR "/testXMLParser.xml"))
+ {
+ cmsys_ios::cerr << "cmXMLParser failed!" << cmsys_ios::endl;
+ return 1;
+ }
+ return 0;
+}