From 3587a68ed2c3f25f9e423dbb5908e0201415f6d6 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 8 Jul 2016 16:12:48 +0200 Subject: [PATCH] Separate the objectstore tests in a separate suite * Also allow the testsuite selection in autotest.sh --- autotest.sh | 16 ++++++++++++---- tests/phpunit-autotest.xml | 23 ++++++++++++++++------- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/autotest.sh b/autotest.sh index 5f5633fcf0f4f..e0620a1be88d9 100755 --- a/autotest.sh +++ b/autotest.sh @@ -310,15 +310,23 @@ function execute_tests { echo "No coverage" fi + SUITE='' + if [ -n "$TESTSUITE" ]; then + echo "Running testsuite: ${TESTSUITE}" + SUITE="--testsuite $TESTSUITE" + else + echo "Running all testsuites" + fi + if [ -d "$2" ]; then for f in $(find "$2" -name '*.php'); do - echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" / "$f" "$3" - "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$f" "$3" + echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER $SUITE --log-junit "autotest-results-$DB.xml" "$2" / "$f" "$3" + "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER $SUITE --log-junit "autotest-results-$DB.xml" "$f" "$3" RESULT=$? done; else - echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3" - "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3" + echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER $SUITE --log-junit "autotest-results-$DB.xml" "$2" "$3" + "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER $SUITE --log-junit "autotest-results-$DB.xml" "$2" "$3" RESULT=$? fi diff --git a/tests/phpunit-autotest.xml b/tests/phpunit-autotest.xml index 07de887c8cbf9..71bf3756c3a79 100644 --- a/tests/phpunit-autotest.xml +++ b/tests/phpunit-autotest.xml @@ -6,13 +6,22 @@ timeoutForMediumTests="900" timeoutForLargeTests="900" > - - lib/ - settings/ - core/ - ocs-provider/ - apps.php - + + + lib/ + settings/ + core/ + ocs-provider/ + apps.php + + lib/Files/ObjectStore/ + + + + lib/Files/ObjectStore/ + + +