2008-09-04 02:20:39 +04:00
|
|
|
#include "tests.h"
|
2009-09-08 02:17:02 +04:00
|
|
|
#include "emittertests.h"
|
|
|
|
#include "parsertests.h"
|
2009-09-03 18:27:03 +04:00
|
|
|
#include "spectests.h"
|
|
|
|
#include "yaml.h"
|
2008-09-04 02:20:39 +04:00
|
|
|
#include <fstream>
|
|
|
|
#include <sstream>
|
|
|
|
#include <vector>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
namespace Test
|
|
|
|
{
|
2009-05-31 10:36:01 +04:00
|
|
|
void RunAll()
|
2008-09-04 02:20:39 +04:00
|
|
|
{
|
|
|
|
bool passed = true;
|
2009-05-31 10:36:01 +04:00
|
|
|
if(!RunParserTests())
|
|
|
|
passed = false;
|
2009-09-03 18:27:03 +04:00
|
|
|
|
2009-05-23 01:52:31 +04:00
|
|
|
if(!RunEmitterTests())
|
|
|
|
passed = false;
|
2008-09-04 02:20:39 +04:00
|
|
|
|
2009-09-06 21:02:24 +04:00
|
|
|
if(!RunSpecTests())
|
|
|
|
passed = false;
|
|
|
|
|
2008-09-04 02:20:39 +04:00
|
|
|
if(passed)
|
|
|
|
std::cout << "All tests passed!\n";
|
|
|
|
}
|
|
|
|
}
|
2009-09-08 02:17:02 +04:00
|
|
|
|