summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib/testXMLParser.cxx
blob: 8617cc118bc7dc6ecff1b9d065dd1d68b6cfbb78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "testXMLParser.h"

#include <iostream>

#include "cmXMLParser.h"

int testXMLParser(int /*unused*/, char* /*unused*/ [])
{
  // TODO: Derive from parser and check attributes.
  cmXMLParser parser;
  if (!parser.ParseFile(SOURCE_DIR "/testXMLParser.xml")) {
    std::cerr << "cmXMLParser failed!" << std::endl;
    return 1;
  }
  return 0;
}