summaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
blob: 92a5e7a8dbeeb42102993a1717964914327ad885 (plain)
1
2
3
4
5
6
7
8
9
10
11
FOREACH(tcdir testcases libsolv-zypptestcases)
    IF(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${tcdir}")
        FILE(GLOB dirs "${CMAKE_CURRENT_SOURCE_DIR}/${tcdir}/[_a-zA-Z0-9]*")
        FOREACH(dir ${dirs})
	    IF(IS_DIRECTORY ${dir})
		FILE(RELATIVE_PATH myname "${CMAKE_CURRENT_SOURCE_DIR}/${tcdir}" ${dir})
		ADD_TEST(${myname} ${CMAKE_CURRENT_SOURCE_DIR}/runtestcases ${CMAKE_BINARY_DIR}/tools/testsolv ${dir})
	    ENDIF(IS_DIRECTORY ${dir})
        ENDFOREACH(dir)
    ENDIF(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${tcdir}")
ENDFOREACH(tcdir)