File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,11 @@ find_program(SED_EXECUTABLE sed)
192
192
find_program (GIT_EXECUTABLE git )
193
193
194
194
# ---------- CORE FEATURE SWITCHES
195
-
196
- option (ENABLE_SCE "enables Script Check Engine - an alternative checking engine that lets you use executables instead of OVAL for checks" FALSE )
195
+ if (WIN32 OR APPLE )
196
+ option (ENABLE_SCE "enables Script Check Engine - an alternative checking engine that lets you use executables instead of OVAL for checks" OFF )
197
+ else ()
198
+ option (ENABLE_SCE "enables Script Check Engine - an alternative checking engine that lets you use executables instead of OVAL for checks" ON )
199
+ endif ()
197
200
198
201
# ---------- OVAL FEATURE SWITCHES
199
202
Original file line number Diff line number Diff line change 1
1
file (GLOB_RECURSE SCE_SOURCES "*.c" )
2
2
file (GLOB_RECURSE SCE_PUBLIC_HEADERS "public/*.h" )
3
3
4
- add_library (openscap_sce SHARED ${SCE_SOURCES} )
4
+ add_library (openscap_sce SHARED
5
+ ${SCE_SOURCES}
6
+ "${CMAKE_SOURCE_DIR} /src/common/list.c"
7
+ "${CMAKE_SOURCE_DIR} /src/common/oscap_string.c"
8
+ "${CMAKE_SOURCE_DIR} /src/common/oscap_buffer.c"
9
+ )
5
10
target_include_directories (openscap_sce PUBLIC public )
6
11
set_target_properties (openscap_sce PROPERTIES VERSION ${SONAME} SOVERSION ${SOVERSION} )
7
12
target_link_libraries (openscap_sce PRIVATE openscap )
Original file line number Diff line number Diff line change 1
1
if (ENABLE_SCE )
2
- add_oscap_test ("test_sce.sh" )
2
+ if (${PYTHON_VERSION_MAJOR} EQUAL "3" )
3
+ add_oscap_test ("test_sce.sh" )
4
+ endif ()
3
5
add_oscap_test ("test_passing_vars.sh" )
4
6
add_oscap_test ("test_check_engine_results.sh" )
5
7
add_oscap_test ("test_sce_parse_errors.sh" )
Original file line number Diff line number Diff line change 8
8
set -e -o pipefail
9
9
10
10
function test_sce {
11
+ require " python3" || return 255
11
12
12
13
local ret_val=0;
13
14
local DEFFILE=${srcdir} /$1
You can’t perform that action at this time.
0 commit comments