Files
mono/mcs/class/System.Data/Test/ProviderTests/Makefile
T
Nagappan Alagappan 369a8174d1 2006-12-05 Nagappan A <[email protected]>
* Makefile: Modified to work with 2.0 profile.


svn path=/trunk/mcs/; revision=69821
2006-12-20 17:22:36 +00:00

38 lines
1.0 KiB
Makefile

thisdir=class/System.Data/Test/ProviderTests
include ../../../../build/rules.make
LIB_MCS_FLAGS += /r:System.Data,System.Data.OracleClient,ByteFX.Data,Npgsql,System,System.Xml,nunit.framework,Mono.Data,Mono.Data.SybaseClient
DATABASE=sql92
LIBRARY = System.Data.Connected.Tests.dll
NO_INSTALL=yes
NO_SIGN_ASSEMBLY=yes
${LIBRARY}:
$(CSCOMPILE) $(LIB_MCS_FLAGS) /target:library /out:$@ /debug @$(LIBRARY).sources
run-test-local: run-test-db
run-test-db: ${LIBRARY}
ifdef OSQLCMD
$(OSQLCMD) sql/$(DATABASE).sql
endif
cp app-$(PROFILE).config $(LIBRARY).config
unlink conn_string || :
ln -s $(DATABASE).config conn_string
ok=:; \
$(TEST_RUNTIME) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) /output:TestResult-$(PROFILE).log /include=$(DATABASE) /xml:TestResult-$(PROFILE).xml $< || ok=false; \
sed '1,/^Tests run: /d' TestResult-$(PROFILE).log; \
$$ok
test-local: run-test-db
CLEAN_FILES = *.exe *.dll *.log ${LIBRARY}.config *.mdb TestResult*.xml conn_string
clean-local:
rm $(CLEAN_FILES) || :