2011-09-05 04:50:08 +04:00
|
|
|
#include "tests.h"
|
|
|
|
|
#include "emittertests.h"
|
2011-09-11 08:22:30 +04:00
|
|
|
#include "nodetests.h"
|
2011-09-05 04:50:08 +04:00
|
|
|
#include "parsertests.h"
|
|
|
|
|
#include "spectests.h"
|
|
|
|
|
#include "yaml-cpp/yaml.h"
|
|
|
|
|
#include <fstream>
|
|
|
|
|
#include <sstream>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
namespace Test
|
|
|
|
|
{
|
|
|
|
|
void RunAll()
|
|
|
|
|
{
|
|
|
|
|
bool passed = true;
|
|
|
|
|
if(!RunParserTests())
|
|
|
|
|
passed = false;
|
|
|
|
|
|
|
|
|
|
if(!RunEmitterTests())
|
|
|
|
|
passed = false;
|
|
|
|
|
|
|
|
|
|
if(!RunSpecTests())
|
|
|
|
|
passed = false;
|
2011-09-11 08:22:30 +04:00
|
|
|
|
|
|
|
|
if(!RunNodeTests())
|
|
|
|
|
passed = false;
|
2012-01-21 09:36:08 +04:00
|
|
|
|
2011-09-05 04:50:08 +04:00
|
|
|
if(passed)
|
|
|
|
|
std::cout << "All tests passed!\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|