Enabling testing from the root

This commit is contained in:
Jonathan Turner
2009-05-29 02:24:55 +00:00
parent 72ae292a43
commit 4921d9a89e
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 2.6)
enable_testing()
project(jaytea)
SET (CMAKE_BUILD_TYPE gdb)

View File

@@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 2.6)
enable_testing()
project(boxedcpp)
SET (CMAKE_BUILD_TYPE gdb)

View File

@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 2.6)
enable_testing()
project(langkit)
SET (CMAKE_BUILD_TYPE gdb)
@@ -20,4 +19,4 @@ if(Boost_FOUND)
target_link_libraries(langkit_unittest ${Boost_LIBRARIES})
endif()
add_test(langkit_unittest langkit_unittest)
add_test(langkit_unittest ${EXECUTABLE_OUTPUT_PATH}/langkit_unittest)

View File

@@ -229,6 +229,7 @@ std::pair<Token_Iterator, bool> Optional_Rule
Rule Str(const std::string &text, bool keep) {
return Rule(boost::bind(String_Rule, _1, _2, _3, _4, _5, text), keep);
}
Rule Id(int id, bool keep) {
return Rule(boost::bind(Type_Rule, _1, _2, _3, _4, _5, id), keep);
}