Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. thisdir=class/System.Data/Test/ProviderTests
  2. include ../../../../build/rules.make
  3. LIB_MCS_FLAGS += /r:System.Data,System.Data.OracleClient,System,System.Xml,nunit.framework,System.Configuration
  4. DATABASE=sqlserver
  5. ifndef CONNECTION
  6. ifndef PROVIDER_TESTS_CONNECTION
  7. CONNECTION=sqlserver-tds
  8. export PROVIDER_TESTS_CONNECTION=$(CONNECTION)
  9. endif
  10. else
  11. export PROVIDER_TESTS_CONNECTION=$(CONNECTION)
  12. endif
  13. LIBRARY = System.Data.Connected.Tests.dll
  14. NO_INSTALL=yes
  15. NO_SIGN_ASSEMBLY=yes
  16. ${LIBRARY}: clean-local
  17. cp app-$(PROFILE).config $(LIBRARY).config
  18. $(CSCOMPILE) $(LIB_MCS_FLAGS) /target:library /out:$@ /debug @$(LIBRARY).sources
  19. all-local: ${LIBRARY}
  20. run-test-local: run-test-db
  21. run-test-db: ${LIBRARY}
  22. ifdef OSQLCMD
  23. $(OSQLCMD) sql/$(DATABASE).sql
  24. endif
  25. ok=:; \
  26. $(TEST_RUNTIME) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) -output:TestResult-$(PROFILE).log -include=$(DATABASE) -xml:TestResult-$(PROFILE).xml $< || ok=false; \
  27. sed '1,/^Tests run: /d' TestResult-$(PROFILE).log; \
  28. $$ok
  29. test-local: run-test-db
  30. CLEAN_FILES = *.exe *.dll *.log ${LIBRARY}.config *.mdb TestResult*.xml
  31. clean-local:
  32. -rm -f $(CLEAN_FILES) || :