chore(Data): add dependencies to DataTest

This commit is contained in:
Günter Obiltschnig 2024-02-19 12:03:45 +01:00 committed by Alex Fabijanic
parent a7020dc0e7
commit 4b782b0958
7 changed files with 14 additions and 3 deletions

View File

@ -42,6 +42,5 @@ endif
target = testrunner
target_version = 1
target_libs = PocoDataODBC PocoDataTest PocoData PocoFoundation CppUnit
target_includes += $(POCO_BASE)/Data/DataTest/include
include $(POCO_BASE)/build/rules/exec

View File

@ -0,0 +1 @@
Data/DataTest

View File

@ -20,6 +20,5 @@ endif
target = testrunner
target_version = 1
target_libs = PocoDataPostgreSQL PocoDataTest PocoData PocoFoundation CppUnit
target_includes += $(POCO_BASE)/Data/DataTest/include
include $(POCO_BASE)/build/rules/exec

View File

@ -0,0 +1 @@
Data/DataTest

View File

@ -13,6 +13,7 @@ Data/SQLite
Data/ODBC
Data/MySQL
Data/PostgreSQL
Data/DataTest
Zip
PageCompiler
PageCompiler/File2Page

View File

@ -348,9 +348,18 @@ ${comp}-libexec: $dependencies
ENDOFSCRIPT
if [ -d "${POCO_BASE}/${comp}/testsuite" ] ; then
tdependencies=""
if [ -f "${POCO_BASE}/${comp}/testsuite/dependencies" ] ; then
for dep in `cat "${POCO_BASE}/${comp}/testsuite/dependencies"` ;
do
# get rid of surrounding whitespace (trailing \r on Cygwin)
read dep <<< ${dep}
tdependencies="$tdependencies ${dep}-libexec"
done
fi
cat >>${target}/Makefile <<ENDOFSCRIPT
${comp}-tests: ${comp}-libexec cppunit
${comp}-tests: ${comp}-libexec $tdependencies cppunit
\$(MAKE) -C \$(POCO_BASE)/${comp}/testsuite
ENDOFSCRIPT
fi

View File

@ -6,6 +6,7 @@ Data/SQLite
Data/ODBC
Data/MySQL
Data/PostgreSQL
Data/DataTest
Zip
PageCompiler
PageCompiler/File2Page