mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 06:20:23 +00:00
5872cc7c1f
We create a new CMakeLibTests driver executable in which to writes unit tests for CMakeLib. Our first test is a smoke-test of cmXMLParser.
18 lines
355 B
C++
18 lines
355 B
C++
#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;
|
|
}
|