libtabula

Check-in [869873f020]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added a CTest-based "test" top-level target which currently only runs dtest. We still have the top-level dtest target since "test" suppresses output, and that's important for debugging the integration tests. The plan now is to move the unit tests out of dtest into CTest, so that dtest returns to its classic (MySQL++ 2.x?) form, doing integration tests only.
Timelines: family | ancestors | descendants | both | dtest-to-ctest
Files: files | file ages | folders
SHA1: 869873f02070b6c57e281ca1448323dcc4ca2d03
User & Date: etr 2015-08-14 19:02:18
Context
2015-08-15
08:51
Merged dtest-to-ctest branch into trunk. (It only had to branch to avoid a fork.) check-in: 518f8d3962 user: tangent tags: trunk
2015-08-14
19:02
Added a CTest-based "test" top-level target which currently only runs dtest. We still have the top-level dtest target since "test" suppresses output, and that's important for debugging the integration tests. The plan now is to move the unit tests out of dtest into CTest, so that dtest returns to its classic (MySQL++ 2.x?) form, doing integration tests only. Closed-Leaf check-in: 869873f020 user: etr tags: dtest-to-ctest
18:54
The dtest script now returns nonzero on error, so callers can tell whether it succeeded. The reason will be clear soon. check-in: 940bd74363 user: etr tags: dtest-to-ctest
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to CMakeLists.txt.

140
141
142
143
144
145
146





147
148




149
150
151
152
153
154
155

add_subdirectory(doc)
add_subdirectory(src)
add_subdirectory(src/ssx)
add_subdirectory(test)
add_subdirectory(examples)






add_custom_target(dtest
	COMMAND ${PROJECT_SOURCE_DIR}/dtest -u test -p test)





# If ctags is present, add a top-level "tags" target which includes all
# files in both the build and source versions of src/*.  Conditional
# since it isn't always present on *ix, and almost never on Windows.
find_program(CTAGS_PATH ctags)
if (CTAGS_PATH)
    message(STATUS "Found ctags: ${CTAGS_PATH}")







>
>
>
>
>


>
>
>
>







140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164

add_subdirectory(doc)
add_subdirectory(src)
add_subdirectory(src/ssx)
add_subdirectory(test)
add_subdirectory(examples)

# Two testing targets based on the dtest script, one running it
# standalone, one under CTest.  The latter suppresses output and 
# only reports pass/fail.  The dtest target can't depend on "all"
# due to a CMake design weakness, while "test" does implicitly,
# since it's integrated into the CMake design.
add_custom_target(dtest
	COMMAND ${PROJECT_SOURCE_DIR}/dtest -u test -p test)
include(CTest)
if (BUILD_TESTING)
    add_test(dtest ${PROJECT_SOURCE_DIR}/dtest -u test -p test)
endif(BUILD_TESTING)

# If ctags is present, add a top-level "tags" target which includes all
# files in both the build and source versions of src/*.  Conditional
# since it isn't always present on *ix, and almost never on Windows.
find_program(CTAGS_PATH ctags)
if (CTAGS_PATH)
    message(STATUS "Found ctags: ${CTAGS_PATH}")

Changes to Wishlist.md.

10
11
12
13
14
15
16


17
18
19
20
21
22
23
Any Version
-----------

Items in this section can be done at any time because they do not break
either the API or the ABI.

*   test/manip doesn't test the escape manipulator!



*   The `DateTime` family's `time_t` conversion operators should detect
    DATETIME("0") type values and return `time_t(0)` rather than
    attempt to stuff an out-of-range value into a smaller box.

*   Any time you must hand-roll some SQL code in your program,
    consider whether it could be generalized to a widely-useful







>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Any Version
-----------

Items in this section can be done at any time because they do not break
either the API or the ABI.

*   test/manip doesn't test the escape manipulator!

*   Move unit tests out from under dtest umbrella into CTest.

*   The `DateTime` family's `time_t` conversion operators should detect
    DATETIME("0") type values and return `time_t(0)` rather than
    attempt to stuff an out-of-range value into a smaller box.

*   Any time you must hand-roll some SQL code in your program,
    consider whether it could be generalized to a widely-useful