Commit 03bcd203 authored by math's avatar math
Browse files

[ADD]

 * Added cxxtest to OTHER_LIBS in our brainLinter
 * Added new cocheck target to check all things before commiting
 * fixed some style issues which I forgot
parent dbb7517c
......@@ -85,6 +85,13 @@ ADD_CUSTOM_TARGET(stylecheck
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Check if code complies to CodingStandard" )
# Prints the verbose output of the test runners, so you may identify the source of error early, if any
ADD_CUSTOM_TARGET(vtest
COMMAND make test ARGS="-V"
COMMENT "Runs the test in verboseness to see what actually went wrong" )
# Checks if all is well to commit (aka commitCheck, cocheck)
ADD_CUSTOM_TARGET(cocheck
COMMAND make test && make stylecheck
COMMENT "Checks if all is well to commit" )
......@@ -24,6 +24,8 @@
#ifndef WOPTIONHANDLER_TEST_H
#define WOPTIONHANDLER_TEST_H
#include <string>
#include <cxxtest/TestSuite.h>
#include "../WOptionHandler.h"
......@@ -74,7 +76,7 @@ public:
WOptionHandler th( argc, arg );
TS_ASSERT_THROWS_EQUALS( th.parseOptions(), po::error &e, std::string( e.what() ),
"unknown option thisoptiondoesnotexist");
"unknown option thisoptiondoesnotexist" );
}
/**
......
......@@ -198,7 +198,7 @@ _CPP_HEADERS = frozenset([
# Other heders which are include like system headers, starting with a '<'
_OTHER_HEADERS = frozenset([
'QtGui', 'GL'
'QtGui', 'GL', 'cxxtest'
])
# Assertion macros. These are defined in base/logging.h and
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment