add_oscap_test_executable(test_api_probes_smoke
	"test_api_probes_smoke.c"
	"${CMAKE_SOURCE_DIR}/src/common/memusage.c"
	"${CMAKE_SOURCE_DIR}/src/common/bfind.c"
)
target_include_directories(test_api_probes_smoke PUBLIC
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes"
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes/public"
	"${CMAKE_SOURCE_DIR}/src/common"
)
add_oscap_test("test_api_probes_smoke.sh" LABELS api probes)

add_oscap_test_executable(test_fsdev_is_local_fs
	"test_fsdev_is_local_fs.c"
)
target_include_directories(test_fsdev_is_local_fs PUBLIC
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes"
)
add_oscap_test("test_fsdev_is_local_fs.sh" LABELS api probes)

file(GLOB_RECURSE OVAL_RESULTS_SOURCES "${CMAKE_SOURCE_DIR}/src/OVAL/results/oval_cmp*.c")
add_oscap_test_executable(oval_fts_list
	"oval_fts_list.c"
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes/fsdev.c"
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes/oval_fts.c"
	"${CMAKE_SOURCE_DIR}/src/common/error.c"
	"${CMAKE_SOURCE_DIR}/src/common/err_queue.c"
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes/probe/entcmp.c"
	"${CMAKE_SOURCE_DIR}/src/common/util.c"
	"${CMAKE_SOURCE_DIR}/src/common/oscap_pcre.c"
	"${CMAKE_SOURCE_DIR}/src/common/oscap_utf8.c"
	"${OVAL_RESULTS_SOURCES}"
)
target_include_directories(oval_fts_list PUBLIC
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes"
	"${CMAKE_SOURCE_DIR}/src/OVAL/results"
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes/probe"
	"${CMAKE_SOURCE_DIR}/src/OVAL/probes/public"
	"${CMAKE_SOURCE_DIR}/src/common"
)
target_link_libraries(oval_fts_list openscap)
add_oscap_test("fts.sh" LABELS api probes)

add_oscap_test_executable(test_memusage
	"test_memusage.c"
	"${CMAKE_SOURCE_DIR}/src/common/bfind.c"
)
target_include_directories(test_memusage PUBLIC
	"${CMAKE_SOURCE_DIR}/src/common"
)
add_oscap_test("test_memusage.sh" LABELS api probes)

add_oscap_test_executable(test_memusage_platform
	"test_memusage_platform.c"
	"${CMAKE_SOURCE_DIR}/src/common/memusage.c"
	"${CMAKE_SOURCE_DIR}/src/common/bfind.c"
)
target_include_directories(test_memusage_platform PUBLIC
	"${CMAKE_SOURCE_DIR}/src/common"
)
add_oscap_test("test_memusage_platform.sh" LABELS api probes freebsd macos linux)

add_oscap_test_executable(test_memusage_freebsd_stress
	"test_memusage_freebsd_stress.c"
	"${CMAKE_SOURCE_DIR}/src/common/memusage.c"
	"${CMAKE_SOURCE_DIR}/src/common/bfind.c"
)
target_include_directories(test_memusage_freebsd_stress PUBLIC
	"${CMAKE_SOURCE_DIR}/src/common"
)
target_link_libraries(test_memusage_freebsd_stress Threads::Threads)
add_oscap_test("test_memusage_freebsd_stress.sh" LABELS api probes freebsd)
