2008-09-04 02:20:39 +04:00
|
|
|
#include <fstream>
|
2014-03-23 07:46:04 +04:00
|
|
|
#include <iostream>
|
2008-09-04 02:20:39 +04:00
|
|
|
#include <sstream>
|
|
|
|
#include <vector>
|
2014-03-23 07:46:04 +04:00
|
|
|
|
|
|
|
#include "emittertests.h"
|
|
|
|
#include "parsertests.h"
|
|
|
|
#include "spectests.h"
|
|
|
|
#include "tests.h"
|
2008-09-04 02:20:39 +04:00
|
|
|
|
2014-03-22 21:49:16 +04:00
|
|
|
namespace Test {
|
|
|
|
void RunAll() {
|
|
|
|
bool passed = true;
|
|
|
|
if (!RunEmitterTests())
|
|
|
|
passed = false;
|
2008-09-04 02:20:39 +04:00
|
|
|
|
2014-03-22 21:49:16 +04:00
|
|
|
if (!RunSpecTests())
|
|
|
|
passed = false;
|
|
|
|
|
|
|
|
if (!RunParserTests())
|
|
|
|
passed = false;
|
2009-09-08 02:17:02 +04:00
|
|
|
|
2014-03-22 21:49:16 +04:00
|
|
|
if (passed)
|
|
|
|
std::cout << "All tests passed!\n";
|
|
|
|
}
|
|
|
|
}
|