From b9015528bb3f1e3970a9d823eead7cb74e5333a9 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 28 Jan 2023 16:14:19 +0100 Subject: [PATCH] move test helpers --- check-doc.sh => scripts/check-doc.sh | 2 ++ check-syntax.sh => scripts/check-syntax.sh | 0 check-tests-ng.sh => scripts/check-tests-ng.sh | 0 check-unittests.sh => scripts/check-unittests.sh | 0 tests.sh | 8 ++++---- 5 files changed, 6 insertions(+), 4 deletions(-) rename check-doc.sh => scripts/check-doc.sh (98%) rename check-syntax.sh => scripts/check-syntax.sh (100%) rename check-tests-ng.sh => scripts/check-tests-ng.sh (100%) rename check-unittests.sh => scripts/check-unittests.sh (100%) diff --git a/check-doc.sh b/scripts/check-doc.sh similarity index 98% rename from check-doc.sh rename to scripts/check-doc.sh index 7997153..23dfd22 100755 --- a/check-doc.sh +++ b/scripts/check-doc.sh @@ -2,6 +2,8 @@ # author: deadc0de6 (https://github.com/deadc0de6) # Copyright (c) 2022, deadc0de6 +set -e + ## test doc external links find . -type f -iname '*.md' | while read -r line; do ./scripts/check_links.py "${line}" diff --git a/check-syntax.sh b/scripts/check-syntax.sh similarity index 100% rename from check-syntax.sh rename to scripts/check-syntax.sh diff --git a/check-tests-ng.sh b/scripts/check-tests-ng.sh similarity index 100% rename from check-tests-ng.sh rename to scripts/check-tests-ng.sh diff --git a/check-unittests.sh b/scripts/check-unittests.sh similarity index 100% rename from check-unittests.sh rename to scripts/check-unittests.sh diff --git a/tests.sh b/tests.sh index 45766a9..cdfeaf8 100755 --- a/tests.sh +++ b/tests.sh @@ -27,19 +27,19 @@ echo "current version ${dotdrop_version}" # test syntax echo "checking syntax..." -"${cur}"/check-syntax.sh +"${cur}"/scripts/check-syntax.sh # test doc echo "checking documentation..." -"${cur}"/check-doc.sh +"${cur}"/scripts/check-doc.sh # unittest echo "unittest..." -"${cur}"/check-unittests.sh +"${cur}"/scripts/check-unittests.sh # tests-ng echo "tests-ng..." -"${cur}"/check-tests-ng.sh +"${cur}"/scripts/check-tests-ng.sh ## done echo "All tests finished successfully"