test/src/SuiteMaker.cc
author Krista Bennett <krista@pep-project.org>
Wed, 02 May 2018 11:07:57 +0200
branchlocal_cpptest
changeset 2641 f249c4bcc819
parent 2637 30db80f1a874
child 2642 7dbfc6c3f3c8
permissions -rw-r--r--
shelving
krista@2637
     1
#include <cpptest.h>
krista@2634
     2
#include <cpptest-suite.h>
krista@2637
     3
#include <cpptest-textoutput.h>
krista@2634
     4
#include <string>
krista@2634
     5
#include <sys/stat.h>
krista@2634
     6
#include <errno.h>
krista@2634
     7
#include "EngineTestSuite.h"
krista@2634
     8
#include "EngineTestIndividualSuite.h"
krista@2634
     9
#include "EngineTestSessionSuite.h"
krista@2637
    10
#include "SuiteMaker.h"
krista@2634
    11
krista@2634
    12
// Begin where we should generate stuff
krista@2634
    13
#include "DecorateTests.h"
krista@2634
    14
krista@2637
    15
using namespace std;
krista@2637
    16
krista@2637
    17
void suitemaker_build(const char* test_class_name, const char* test_home, std::auto_ptr<Test::Suite>& test_suite) {
krista@2634
    18
    if (strcmp(test_class_name, "DecorateTests") == 0)
krista@2637
    19
        test_suite = auto_ptr<Test::Suite> (new DecorateTests(test_class_name, test_home));
krista@2641
    20
    else if (strcmp(test_class_name, "AppleMailTests") == 0)
krista@2641
    21
        test_suite = auto_ptr<Test::Suite> (new DecorateTests(test_class_name, test_home));    
krista@2634
    22
}