[smuxi: 3/3] Build: added make test target for running all test-cases



commit e9800c2f060d63bd645c4d7fb014fc3cafcf0598
Author: Mirco Bauer <meebey meebey net>
Date:   Fri May 22 15:59:09 2015 +0200

    Build: added make test target for running all test-cases

 Makefile.am |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index fc3750b..2d243fa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -327,4 +327,17 @@ run-server: all
        cd $(BUILD_DIR) && \
                mono --debug ./smuxi-server.exe -d
 
+test: src/*-Tests/*.cs*
+       xbuild src/Common-Tests/Common-Tests.csproj
+       xbuild src/Engine-Tests/Engine-Tests.csproj
+       xbuild src/Frontend-Tests/Frontend-Tests.csproj
+       xbuild src/Frontend-GNOME-Tests/Frontend-GNOME-Tests.csproj
+       xbuild src/Frontend-STFL-Tests/Frontend-STFL-Tests.csproj
+       -nunit-console $(BUILD_DIR)/smuxi-common-tests.dll
+       -nunit-console $(BUILD_DIR)/smuxi-engine-tests.dll
+       -nunit-console $(BUILD_DIR)bin/debug/smuxi-frontend-tests.dll
+       -nunit-console $(BUILD_DIR)bin/debug/smuxi-frontend-gnome-tests.dll
+       -nunit-console $(BUILD_DIR)bin/debug/smuxi-frontend-stfl-tests.dll
+
 .NOTPARALLEL:
+.PHONY: test


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]