Skip to content

Commit

Permalink
Scripts: print which example is tested for easier scanning
Browse files Browse the repository at this point in the history
Also improve help output if run without arguments.
  • Loading branch information
greenrobot-team committed Dec 2, 2024
1 parent 62a90a9 commit a467973
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions objectbox/tool/integration-test.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail

. "$(dirname "$0")"/common.sh

if [[ "$#" -ne "1" ]]; then
echo "usage: $0 <app-dir>"
echo "e.g. $0 example/objectbox_demo"
echo "Usage: $0 <app-dir>"
echo ""
echo "For example run:"
echo " $0 example/flutter/objectbox_demo_relations"
exit 1
fi

set -x
. "$(dirname "$0")"/common.sh

echo ""
echo "ℹ️ Testing the example in $1"
echo ""

set -x # Print commands to terminal

cd "${root}/$1"
flutter clean
Expand Down

0 comments on commit a467973

Please sign in to comment.