Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use centralised assert.sh script [DI-171] #206

21 changes: 0 additions & 21 deletions .github/workflows/assert.sh/LICENSE

This file was deleted.

262 changes: 0 additions & 262 deletions .github/workflows/assert.sh/assert.sh

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/build.functions_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
set -eu
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

. "$SCRIPT_DIR"/assert.sh/assert.sh
# Source the latest version of assert.sh unit testing library and include in current shell
assert_script_content=$(curl --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)
# shellcheck source=/dev/null
. <(echo "${assert_script_content}")
. "$SCRIPT_DIR"/build.functions.sh

TESTS_RESULT=0
Expand Down
5 changes: 4 additions & 1 deletion common_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

export USE_TEST_REPO=true

. "$SCRIPT_DIR"/packages/tests-common/assert.sh/assert.sh
# Source the latest version of assert.sh unit testing library and include in current shell
assert_script_content=$(curl --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)
# shellcheck source=/dev/null
. <(echo "${assert_script_content}")
. "$SCRIPT_DIR"/common.sh

TESTS_RESULT=0
Expand Down
5 changes: 4 additions & 1 deletion packages/brew/test_brew_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

. "$SCRIPT_DIR"/../tests-common/assert.sh/assert.sh
# Source the latest version of assert.sh unit testing library and include in current shell
assert_script_content=$(curl --silent https://raw.githubusercontent.com/hazelcast/assert.sh/main/assert.sh)
# shellcheck source=/dev/null
. <(echo "${assert_script_content}")
. "$SCRIPT_DIR"/functions.sh

TESTS_RESULT=0
Expand Down
21 changes: 0 additions & 21 deletions packages/tests-common/assert.sh/LICENSE

This file was deleted.

Loading
Loading