From 2b2d1cdb82d964282f46b96d6fee2f99086589f8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 8 Mar 2022 10:46:07 +0500 Subject: test/integration: more obvious success indication --- test/integration/docker/test.sh | 8 ++++++++ test/integration/example/test.sh | 10 ++++++++++ test/integration/local/test.sh | 10 ++++++++++ 3 files changed, 28 insertions(+) (limited to 'test') diff --git a/test/integration/docker/test.sh b/test/integration/docker/test.sh index 58ccaca..32680f7 100755 --- a/test/integration/docker/test.sh +++ b/test/integration/docker/test.sh @@ -22,6 +22,13 @@ dump() { done } +success() { + echo + echo ---------------------------------------------------------------------- + echo SUCCESS + echo ---------------------------------------------------------------------- +} + cleanup() { echo echo ---------------------------------------------------------------------- @@ -157,6 +164,7 @@ main() { setup run verify + success popd > /dev/null } diff --git a/test/integration/example/test.sh b/test/integration/example/test.sh index f7b16e6..846cda4 100755 --- a/test/integration/example/test.sh +++ b/test/integration/example/test.sh @@ -9,6 +9,13 @@ readonly script_dir readonly cgitize_toml_path="$script_dir/../../../examples/cgitize.toml" readonly output_dir='/tmp/cgitize' +success() { + echo + echo ---------------------------------------------------------------------- + echo "SUCCESS: ${FUNCNAME[1]}" + echo ---------------------------------------------------------------------- +} + clone_via_ssh_true() { sed -i -E -e 's/^clone_via_ssh = (true|false)$/clone_via_ssh = true/' -- "$cgitize_toml_path" } @@ -135,6 +142,7 @@ test_ssh() { verify_origin bitbucket-dir/cgitize-test-repository 'git@bitbucket.org:egor-tensin/cgitize-test-repository.git' verify_origin gitlab-dir/cgitize-test-repository 'git@gitlab.com:egor-tensin/cgitize-test-repository.git' cleanup + success } test_https() { @@ -160,6 +168,7 @@ test_https() { verify_origin bitbucket-dir/cgitize-test-repository 'https://bitbucket.org/egor-tensin/cgitize-test-repository.git' verify_origin gitlab-dir/cgitize-test-repository 'https://gitlab.com/egor-tensin/cgitize-test-repository.git' cleanup + success } test_one_repo() { @@ -173,6 +182,7 @@ test_one_repo() { verify_repos chromiumembedded/cef verify_no_repos lens wireguard/wintun cleanup + success } main() { diff --git a/test/integration/local/test.sh b/test/integration/local/test.sh index 088539b..3c73543 100755 --- a/test/integration/local/test.sh +++ b/test/integration/local/test.sh @@ -11,6 +11,13 @@ readonly etc_dir="$script_dir/etc" readonly cgitize_toml_path="$etc_dir/cgitize.toml" readonly output_dir="$script_dir/output" +success() { + echo + echo ---------------------------------------------------------------------- + echo "SUCCESS: ${FUNCNAME[1]}" + echo ---------------------------------------------------------------------- +} + cleanup() { echo echo ---------------------------------------------------------------------- @@ -173,6 +180,7 @@ test_bare() { cgitize verify_added_commits cleanup + success } test_workdir() { @@ -188,6 +196,7 @@ test_workdir() { cgitize verify_added_commits cleanup + success } test_failure() { @@ -217,6 +226,7 @@ test_failure() { return 1 fi cleanup + success } main() { -- cgit v1.2.3