#!/bin/bash # Run the veilid-flutter example integration tests on this host's desktop. # # Usage: # ./run_integration_tests.sh # mock, in-window test UI # ./run_integration_tests.sh --headless # mock, console only (CI) # ./run_integration_tests.sh --live # against the real network # # Runs against veilid-core's in-process mock unless --live is given; see # ../scripts/_integration_test_common.sh. Switching between the two rebuilds the # native library, so alternating costs a cargo build each way. SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" VEILIDDIR="$( cd "$SCRIPTDIR/.." >/dev/null 2>&1 && pwd )" # shellcheck source=../scripts/_integration_test_common.sh source "$VEILIDDIR/scripts/_integration_test_common.sh" || exit 1 print_help() { cat </dev/null || exit 1 flutter test -r github \ ${INTEGRATION_TEST_DEVICE_ARGS[@]+"${INTEGRATION_TEST_DEVICE_ARGS[@]}"} \ integration_test/app_test.dart "$@" status=$? popd >/dev/null exit $status