#!/bin/bash# Copyright (c) Microsoft Corporation.# Licensed under the MIT License.set -eo pipefailif[-f Cargo.toml ];then# Run precommit checksdir=$(dirname"${BASH_SOURCE[0]}")"$dir/pre-commit"# Ensure that the public API workscargo test -r --doc# Ensure that all tests passcargo test -rcargo test -r --test aci# Ensure that OPA conformance tests don't regress.cargo test -r --features opa-testutil --test opa --$(tr'\n'''< tests/opa.passing)fi