xref: /5.5.2/couchdb/test/etap/CMakeLists.txt (revision 232747b4)
1FILE(GLOB TEST_FILES *.t)
2LIST(SORT TEST_FILES)
3
4FOREACH (it ${TEST_FILES})
5   GET_FILENAME_COMPONENT(testname ${it} NAME_WE)
6   ADD_TEST(couchdb-etap-${testname} ${PYTHON_EXECUTABLE} ${COUCHDB_RUNTEST} -c ${COUCHSTORE_BIN_PATH} -p ${COUCHDB_BIN_PATH}/src -t ${it} --verbose)
7ENDFOREACH (it)
8
9CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_util.erl.in
10               ${CMAKE_CURRENT_BINARY_DIR}/test_util.erl)
11
12
13CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/run.tpl
14               ${CMAKE_CURRENT_BINARY_DIR}/run)
15
16FILE(GLOB ETAP_SRC *.erl)
17ERL_BUILD("etap_test" ${ETAP_SRC} ${CMAKE_CURRENT_BINARY_DIR}/test_util.erl)
18