xref: /5.5.2/couchdb/test/etap/CMakeLists.txt (revision f7298f32)
1SET(TEST_FILES
2  001-load.t
3  002-write-guard.t
4  010-file-basics.t
5  011-file-headers.t
6  020-btree-basics.t
7  021-btree-reductions.t
8  022-btree-copy.t
9  023-btree-guided-purge.t
10  024-btree-guided-fold.t
11  030-doc-from-json.t
12  031-doc-to-json.t
13  032-doc-to-binary-views.t
14  033-doc-from-binary.t
15  040-util.t
16  041-uuid-gen.t
17  042-work-queue.t
18  070-couch-db.t
19  071-couch-db-external-write.t
20  073-changes.t
21  080-config-get-set.t
22  081-config-override.t
23  082-config-register.t
24  083-config-no-files.t
25  090-task-status.t
26  100-ref-counter.t
27  150-invalid-view-seq.t
28  190-json-stream-parse.t
29  201-view-group-shutdown.t
30  202-dev-view-group-shutdown.t)
31
32FOREACH (it ${TEST_FILES})
33   GET_FILENAME_COMPONENT(testname ${it} NAME_WE)
34   GET_FILENAME_COMPONENT(fullpath ${it} REALPATH)
35   ADD_TEST(couchdb-etap-${testname} ${PYTHON_EXECUTABLE} ${COUCHDB_RUNTEST}
36     -c ${COUCHSTORE_BIN_PATH} -p ${COUCHDB_BIN_PATH}/src
37     -e ${ESCRIPT_EXECUTABLE} -t ${fullpath} --verbose)
38ENDFOREACH (it)
39
40CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/test_util.erl.in
41               ${CMAKE_CURRENT_BINARY_DIR}/test_util.erl)
42
43
44CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/run.tpl
45               ${CMAKE_CURRENT_BINARY_DIR}/run)
46
47ERL_BUILD(APPNAME "etap_test"
48          SOURCES test_web.erl misc.erl ${CMAKE_CURRENT_BINARY_DIR}/test_util.erl)
49