Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. thisdir=class/System.Data/Test/ProviderTests
  2. include ../../../../build/rules.make
  3. LIB_MCS_FLAGS = /r:System.Data,System.Data.OracleClient,ByteFX.Data,Npgsql,System,System.Xml,nunit.framework,Mono.Data,Mono.Data.SybaseClient
  4. DATABASE=sql92
  5. LIBRARY = System.Data.Connected.Tests.dll
  6. NO_INSTALL=yes
  7. NO_SIGN_ASSEMBLY=yes
  8. ${LIBRARY}:
  9. $(MCS) $(LIB_MCS_FLAGS) /target:library /out:$@ /debug @$(LIBRARY).sources
  10. run-test-local: run-test-db
  11. run-test-db: ${LIBRARY}
  12. ifdef OSQLCMD
  13. $(OSQLCMD) sql/$(DATABASE).sql
  14. endif
  15. cp app-$(PROFILE).config $(LIBRARY).config
  16. unlink conn_string || :
  17. ln -s $(DATABASE).config conn_string
  18. ok=:; \
  19. $(TEST_RUNTIME) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) /output:TestResult-$(PROFILE).log /include=$(DATABASE) /xml:TestResult-$(PROFILE).xml $< || ok=false; \
  20. sed '1,/^Tests run: /d' TestResult-$(PROFILE).log; \
  21. $$ok
  22. test-local: run-test-db
  23. CLEAN_FILES = *.exe *.dll *.log ${LIBRARY}.config *.mdb TestResult*.xml conn_string
  24. clean-local:
  25. rm $(CLEAN_FILES) || :