File tree 4 files changed +12
-13
lines changed 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set(DICT_PATH "/usr/share/sphinx-voxforge-en/lm/voxforge_en_sphinx.cd_cont_3000/
11
11
12
12
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR} /cmake" "${CMAKE_MODULE_PATH} " )
13
13
14
- option (ENABLE_TESTS "Determine if tests will be run" ON )
14
+ option (ENABLE_VOICE_TESTS "Determine if voice tests will be run" OFF )
15
15
16
16
find_package (PkgConfig REQUIRED)
17
17
@@ -72,13 +72,11 @@ configure_file(
72
72
add_subdirectory ("src" )
73
73
add_subdirectory ("data" )
74
74
75
- if (${ENABLE_TESTS} )
76
- enable_testing ()
77
- ADD_CUSTOM_TARGET (
78
- check
79
- ${CMAKE_CTEST_COMMAND} --force-new-ctest-process --output -on -failure
80
- )
81
- endif ()
75
+ enable_testing ()
76
+ ADD_CUSTOM_TARGET (
77
+ check
78
+ ${CMAKE_CTEST_COMMAND} --force-new-ctest-process --output -on -failure
79
+ )
82
80
83
81
add_subdirectory (tests)
84
82
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ mkdir -p $BUILDDIR
64
64
cd $BUILDDIR
65
65
cmake " $SOURCEDIR " -G " $GENERATOR " \
66
66
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
67
- -DCMAKE_INSTALL_PREFIX=" $SOURCEDIR /../$BRANCHNAME -install"
67
+ -DCMAKE_INSTALL_PREFIX=" $SOURCEDIR /../$BRANCHNAME -install" \
68
+ -DENABLE_VOICE_TESTS=ON
68
69
$BUILD_COMMAND
69
70
)
Original file line number Diff line number Diff line change @@ -6,6 +6,3 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=4
6
6
% :
7
7
dh $@ --parallel --fail-missing
8
8
9
- override_dh_auto_configure :
10
- dh_auto_configure -- -DENABLE_TESTS=NO
11
-
Original file line number Diff line number Diff line change @@ -20,10 +20,13 @@ add_definitions(-DPRONOUCE_DICT_HTK="${CMAKE_CURRENT_SOURCE_DIR}/data/test-prono
20
20
set (
21
21
UNIT_TESTS_SRC
22
22
TestPronounceDict.cpp
23
- TestVoiceService.cpp
24
23
main.cpp
25
24
)
26
25
26
+ if (${ENABLE_VOICE_TESTS} )
27
+ list (APPEND UNIT_TESTS_SRC TestVoiceService.cpp)
28
+ endif ()
29
+
27
30
add_executable (
28
31
unit-tests
29
32
${UNIT_TESTS_SRC}
You can’t perform that action at this time.
0 commit comments