xref: /5.5.2/couchdb/test/etap/CMakeLists.txt (revision 6edbd3a3)
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}
7     -c ${COUCHSTORE_BIN_PATH} -p ${COUCHDB_BIN_PATH}/src
8     -e ${ESCRIPT_EXECUTABLE} -t ${it} --verbose)
9ENDFOREACH (it)
10
11CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_util.erl.in
12               ${CMAKE_CURRENT_BINARY_DIR}/test_util.erl)
13
14
15CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/run.tpl
16               ${CMAKE_CURRENT_BINARY_DIR}/run)
17
18FILE(GLOB ETAP_SRC *.erl)
19ERL_BUILD("etap_test" ${ETAP_SRC} ${CMAKE_CURRENT_BINARY_DIR}/test_util.erl)
20