diff options
author | Manish Sinha <manish.sinha@xamarin.com> | 2015-04-16 22:07:11 +0300 |
---|---|---|
committer | Manish Sinha <manish.sinha@xamarin.com> | 2015-04-16 22:12:17 +0300 |
commit | 777499cb1c2744813a7333f9dbaae8c9abd881ab (patch) | |
tree | 1a53c7311c367e9af583842f7163867f7d883372 | |
parent | e07f485ac938cfc9feeef8134401a5f45f7ab282 (diff) |
Create a new test target named uitest to run UITests
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | main/Makefile.am | 3 | ||||
-rw-r--r-- | main/tests/Makefile.am | 12 |
3 files changed, 18 insertions, 0 deletions
@@ -111,6 +111,9 @@ run-gdb: test: cd main && $(MAKE) test assembly=$(assembly) +uitest: + cd main && $(MAKE) uitest assembly=$(assembly) + coverage: cd main && $(MAKE) coverage diff --git a/main/Makefile.am b/main/Makefile.am index 8b2ad9e2ae..a40a7c0d63 100644 --- a/main/Makefile.am +++ b/main/Makefile.am @@ -152,6 +152,9 @@ check-addins: test: cd tests && $(MAKE) test assembly=$(assembly) +uitest: + cd tests && $(MAKE) uitest assembly=$(assembly) + coverage: cd tests && $(MAKE) coverage diff --git a/main/tests/Makefile.am b/main/tests/Makefile.am index 03aa0ead55..4ccfc942cd 100644 --- a/main/tests/Makefile.am +++ b/main/tests/Makefile.am @@ -46,6 +46,9 @@ if ENABLE_WINDOWSPLATFORM TEST_ASSEMBLIES += $(TEST_ASSEMBLIES_WINDOWS) endif +UITEST_ASSEMBLIES = \ + $(TEST_DIR)/UserInterfaceTests.dll + test: @if test -n "$(assembly)"; then \ for asm in $(TEST_ASSEMBLIES); do \ @@ -69,6 +72,15 @@ test: fi; \ fi +uitest: + @if test -n "$(assembly)"; then \ + for asm in $(UITEST_ASSEMBLIES); do \ + if test `basename $$asm` = $(assembly); then \ + ($(RUN_TEST) -xml=TestResult_`basename $$asm`.xml -labels $$asm) || exit $?; \ + fi; \ + done; \ + fi + coverage: if ! test -n "$(assembly)"; then \ for asm in $(TEST_ASSEMBLIES); do \ |