Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorverhoek <30193551+verhoek@users.noreply.github.com>2019-12-08 00:59:06 +0300
committerverhoek <30193551+verhoek@users.noreply.github.com>2019-12-08 00:59:06 +0300
commitbb9bba172298e2e233123ce95bff7e4252d46045 (patch)
tree755082da47597b19483688a9ee16e818dec0aacb /pipeline
parent8e050bfe1139aa2f9c4fbc6209c3434833dd3f35 (diff)
Remove test data download functionality.
This is built in unit tests and doesn't need outside steering anymore.
Diffstat (limited to 'pipeline')
-rwxr-xr-xpipeline/stage_unittests/job.sh17
-rwxr-xr-xpipeline/start.sh6
2 files changed, 3 insertions, 20 deletions
diff --git a/pipeline/stage_unittests/job.sh b/pipeline/stage_unittests/job.sh
index 1e972c6a4..fece2e7b0 100755
--- a/pipeline/stage_unittests/job.sh
+++ b/pipeline/stage_unittests/job.sh
@@ -2,15 +2,6 @@
. /pipeline/docker-run/markers.sh
. /pipeline/shared/duplicati.sh
-function get_and_extract_test_zip () {
- travis_mark_begin "DOWNLOADING TEST DATA $CAT"
- # test if zip file exists and contains no errors, otherwise redownload
- unzip -t ~/download/"${CAT}"/"${testdata}" &> /dev/null || \
- wget --progress=dot:giga "https://s3.amazonaws.com/duplicati-test-file-hosting/${testdata}" -O ~/download/"${CAT}"/"${testdata}"
- unzip -q ~/download/"${CAT}"/"${testdata}" -d ${UNITTEST_BASEFOLDER}
- travis_mark_end "DOWNLOADING TEST DATA $CAT"
-}
-
function start_test () {
travis_mark_begin "SETUP NUGET"
nuget install NUnit.Runners -Version 3.10.0 -OutputDirectory testrunner
@@ -18,14 +9,6 @@ function start_test () {
for CAT in $(echo $testcategories | sed "s/,/ /g")
do
- mkdir -p ~/download/"${CAT}"
- export UNITTEST_BASEFOLDER=~/duplicati_testdata/"${CAT}"
- rm -rf ${UNITTEST_BASEFOLDER} && mkdir -p ${UNITTEST_BASEFOLDER}
-
- if [[ ${testdata} != "" ]]; then
- get_and_extract_test_zip
- fi
-
travis_mark_begin "UNIT TESTING CATEGORY $CAT"
mono "${DUPLICATI_ROOT}"/testrunner/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe \
"${DUPLICATI_ROOT}"/Duplicati/UnitTest/bin/Release/Duplicati.UnitTest.dll --where:cat==$CAT --workers=1
diff --git a/pipeline/start.sh b/pipeline/start.sh
index 764b79067..30140115e 100755
--- a/pipeline/start.sh
+++ b/pipeline/start.sh
@@ -4,9 +4,9 @@ SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
. "${SCRIPT_DIR}/.local_config.sh"
${ROOT_DIR}/pipeline/jobs/build_job.sh
-${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories BulkNormal --testdata data.zip
-${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories BulkNoSize --testdata data.zip
-${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories SVNDataLong,SVNData --testdata DSMCBE.zip
+${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories BulkNormal
+${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories BulkNoSize
+${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories SVNDataLong,SVNData
${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories Border
${ROOT_DIR}/pipeline/jobs/unittest_job.sh --testcategories Filter,Targeted,Purge,Serialization,WebApi,Utility,UriUtility,IO,ImportExport,Disruption