瀏覽代碼

Merge pull request #90 from nextcloud/improved-autotest

allow to execute multiple tests in a directory at once
tags/v10.0RC1
Björn Schießle 8 年之前
父節點
當前提交
6b0577c699
共有 1 個檔案被更改,包括 11 行新增2 行删除
  1. 11
    2
      autotest.sh

+ 11
- 2
autotest.sh 查看文件

@@ -303,9 +303,18 @@ function execute_tests {
else
echo "No coverage"
fi
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"

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"
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"
RESULT=$?
fi

if [ "$PRIMARY_STORAGE_CONFIG" == "swift" ] ; then
cd ..

Loading…
取消
儲存