From 78699269ab7da66730063c9e6ce1d88b7bd8fd6a Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 9 Aug 2018 16:09:05 +0200 Subject: Only sink can test --- default.nix | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/default.nix b/default.nix index 9984f4b..16691c0 100644 --- a/default.nix +++ b/default.nix @@ -47,8 +47,6 @@ in rec { [ extra-cmake-modules qtbase ]; src = kasyncSrc; - doCheck = true; - checkPhase = "ctest -VV"; inherit cmakeBuildType; }; @@ -60,8 +58,6 @@ in rec { [ extra-cmake-modules qtbase kcoreaddons kcodecs kdeApplications.kmime cyrus_sasl ]; src = kimap2Src; - doCheck = true; - checkPhase = "ctest -VV"; inherit cmakeBuildType; }; @@ -73,8 +69,6 @@ in rec { [ extra-cmake-modules qtbase qtxmlpatterns kcoreaddons ]; src = kdav2Src; - doCheck = true; - checkPhase = "ctest -VV"; inherit cmakeBuildType; }; @@ -98,7 +92,30 @@ in rec { src = sinkSrc; doCheck = true; - checkPhase = "ctest -VV"; + # Only tests that does not involve external resources + checkPhase = '' + export LD_LIBRARY_PATH=$PWD/tests:$PWD/examples/caldavresource/:$PWD/examples/dummyresource/:$PWD/tests/hawd:$PWD/common QT_PLUGIN_PATH=$QT_PLUGIN_PATH:$PWD/../build-plugins/ PATH=$PATH:$PWD/synchronizer/ + ./tests/clientapitest && + ./tests/resourceconfigtest && + ./tests/storagetest && + ./tests/domainadaptortest && + ./tests/messagequeuetest && + ./tests/indextest && + ./tests/resourcecommunicationtest && + ./tests/pipelinetest && + ./tests/querytest && + ./tests/modelinteractivitytest && + ./tests/inspectiontest && + ./tests/accountstest && + ./tests/testaccounttest && + ./tests/dummyresourcemailtest && + ./tests/interresourcemovetest && + ./tests/notificationtest && + ./tests/entitystoretest && + ./tests/upgradetest && + ./tests/resourcecontroltest && + ./tests/dummyresourcetest + ''; inherit cmakeBuildType; }; @@ -127,8 +144,6 @@ in rec { dontStrip = if (cmakeBuildType == "Debug") then 1 else 0; src = kubeSrc; - doCheck = true; - checkPhase = "ctest -VV"; inherit cmakeBuildType; }; -- cgit v1.2.3