test/src/SuiteMaker.cc
branchlocal_cpptest
changeset 2645 a1932fb654b8
parent 2644 271d7a25c8d3
child 2650 cafe06d8b209
     1.1 --- a/test/src/SuiteMaker.cc	Thu May 03 12:01:06 2018 +0200
     1.2 +++ b/test/src/SuiteMaker.cc	Thu May 03 12:39:56 2018 +0200
     1.3 @@ -1,18 +1,24 @@
     1.4 +// This file is under GNU General Public License 3.0
     1.5 +// see LICENSE.txt
     1.6 +
     1.7 +//
     1.8 +// src/SuiteMaker.cc generated by gensuitemaker.py - changes may be overwritten. You've been warned!
     1.9 +//
    1.10 +
    1.11  #include <cpptest.h>
    1.12  #include <cpptest-suite.h>
    1.13  #include <memory>
    1.14  #include <vector>
    1.15 -
    1.16 +#include "SuiteMaker.h"
    1.17  
    1.18 -// Begin where we should generate stuff
    1.19 +// Begin where we generate stuff
    1.20  #include "DecorateTests.h"
    1.21  #include "AppleMailTests.h"
    1.22  
    1.23 -#include "SuiteMaker.h"
    1.24  
    1.25  const char* SuiteMaker::all_suites[] = {
    1.26      "DecorateTests",
    1.27 -    "AppleMailTests"
    1.28 +    "AppleMailTests",
    1.29  };
    1.30  
    1.31  // This file is generated, so magic constants are ok.
    1.32 @@ -22,7 +28,7 @@
    1.33      if (strcmp(test_class_name, "DecorateTests") == 0)
    1.34          *test_suite = new DecorateTests(test_class_name, test_home);
    1.35      else if (strcmp(test_class_name, "AppleMailTests") == 0)
    1.36 -        *test_suite = new AppleMailTests(test_class_name, test_home);    
    1.37 +        *test_suite = new AppleMailTests(test_class_name, test_home);
    1.38  }
    1.39  
    1.40  void SuiteMaker::suitemaker_buildlist(const char** test_class_names, int num_to_run, const char* test_home, std::vector<Test::Suite*>& test_suites) {
    1.41 @@ -32,9 +38,9 @@
    1.42          if (!suite)
    1.43              throw std::runtime_error("Could not create a test suite instance."); // FIXME, better error, cleanup, obviously
    1.44          test_suites.push_back(suite);
    1.45 -    }    
    1.46 +    }
    1.47  }
    1.48 -
    1.49  void SuiteMaker::suitemaker_buildall(const char* test_home, std::vector<Test::Suite*>& test_suites) {
    1.50      SuiteMaker::suitemaker_buildlist(SuiteMaker::all_suites, SuiteMaker::num_suites, test_home, test_suites);
    1.51  }
    1.52 +