-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
defncopy: Add test for the applications
Use commands calling programs. Mainly use tsql to create some table, output definition with defncopy and check definition is as expected. Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
- Loading branch information
Showing
6 changed files
with
461 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
AM_CPPFLAGS = -I$(top_srcdir)/include | ||
|
||
SUBDIRS = fisql | ||
SUBDIRS = fisql . unittests | ||
|
||
DIST_SUBDIRS = $(SUBDIRS) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
include_directories(..) | ||
|
||
foreach(target defncopy) | ||
add_executable(a_${target} EXCLUDE_FROM_ALL ${target}.c) | ||
set_target_properties(a_${target} PROPERTIES OUTPUT_NAME ${target}) | ||
target_link_libraries(a_${target} replacements tdsutils ${lib_NETWORK} ${lib_BASE}) | ||
add_test(NAME a_${target} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND a_${target}) | ||
add_dependencies(check a_${target}) | ||
endforeach(target) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
NULL= | ||
TESTS = \ | ||
defncopy$(EXEEXT) \ | ||
$(NULL) | ||
|
||
check_PROGRAMS = $(TESTS) | ||
|
||
defncopy_SOURCES = defncopy.c | ||
|
||
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(srcdir)/.. -I../ -DFREETDS_TOPDIR=\"$(top_srcdir)\" | ||
LDADD = ../../replacements/libreplacements.la $(LTLIBICONV) $(NETWORK_LIBS) | ||
EXTRA_DIST = CMakeLists.txt | ||
|
Oops, something went wrong.