Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions debian_component_based/test-components.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"

echo "Checking gsutil version"
gsutil version

Expand Down Expand Up @@ -28,5 +30,4 @@ echo "Checking kubectl version"
kubectl version

echo "Checking the emulators"
./test-all-emulators.sh

"$SCRIPT_DIR/test-dcb-emulators.sh"
9 changes: 5 additions & 4 deletions debian_component_based/test-dcb-emulators.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@

#!/bin/bash

./emulator-testing.sh pubsub
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"

"$SCRIPT_DIR/emulator-testing.sh" pubsub
if [ $? -ne 0 ]; then

echo "Pub/sub emulator failed to execute."
exit 1

fi

./emulator-testing.sh datastore
"$SCRIPT_DIR/emulator-testing.sh" datastore
if [ $? -ne 0 ]; then

echo "Datastore emulator failed to execute."
exit 1

fi

./emulator-testing.sh bigtable
"$SCRIPT_DIR/emulator-testing.sh" bigtable
if [ $? -ne 0 ]; then

echo "Bigtable emulator failed to execute."
exit 1

fi

13 changes: 7 additions & 6 deletions emulators/test-all-emulators.sh
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@

#!/bin/bash

./emulator-testing.sh pubsub
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"

"$SCRIPT_DIR/emulator-testing.sh" pubsub
if [ $? -ne 0 ]; then

echo "Pub/sub emulator failed to execute."
exit 1

fi

./emulator-testing.sh datastore
"$SCRIPT_DIR/emulator-testing.sh" datastore
if [ $? -ne 0 ]; then

echo "Datastore emulator failed to execute."
exit 1

fi

./emulator-testing.sh firestore
"$SCRIPT_DIR/emulator-testing.sh" firestore
if [ $? -ne 0 ]; then

echo "Firestore emulator failed to execute."
exit 1

fi

./emulator-testing.sh spanner
"$SCRIPT_DIR/emulator-testing.sh" spanner
if [ $? -ne 0 ]; then

echo "Spanner emulator failed to execute."
exit 1

fi

./emulator-testing.sh bigtable
"$SCRIPT_DIR/emulator-testing.sh" bigtable
if [ $? -ne 0 ]; then

echo "Bigtable emulator failed to execute."
exit 1

fi

13 changes: 7 additions & 6 deletions test-all-emulators-latest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

./emulator-testing.sh pubsub
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"

"$SCRIPT_DIR/emulators/emulator-testing.sh" pubsub
if [ $? -ne 0 ]; then

echo "Pub/sub emulator failed to execute."
Expand All @@ -10,35 +12,34 @@ fi

# TODO: datastore & firestore emulators are not supported on debian 12 because of Java 21 dependency

# ./emulator-testing.sh datastore
# "$SCRIPT_DIR/emulators/emulator-testing.sh" datastore
# if [ $? -ne 0 ]; then

# echo "Datastore emulator failed to execute."
# exit 1

# fi

# ./emulator-testing.sh firestore
# "$SCRIPT_DIR/emulators/emulator-testing.sh" firestore
# if [ $? -ne 0 ]; then

# echo "Firestore emulator failed to execute."
# exit 1

# fi

./emulator-testing.sh spanner
"$SCRIPT_DIR/emulators/emulator-testing.sh" spanner
if [ $? -ne 0 ]; then

echo "Spanner emulator failed to execute."
exit 1

fi

./emulator-testing.sh bigtable
"$SCRIPT_DIR/emulators/emulator-testing.sh" bigtable
if [ $? -ne 0 ]; then

echo "Bigtable emulator failed to execute."
exit 1

fi

5 changes: 3 additions & 2 deletions test-latest.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"

echo "Checking gsutil version"
gsutil version

Expand Down Expand Up @@ -28,5 +30,4 @@ echo "Checking kubectl version"
kubectl version

echo "Checking the emulators"
./test-all-emulators.sh

"$SCRIPT_DIR/test-all-emulators-latest.sh"