main
sh 17 lines 589 Bytes
Raw
1 #!/bin/bash
2 # Copyright (c) Meta Platforms, Inc. and affiliates.
3 #
4 # This source code is licensed under the MIT license found in the
5 # LICENSE file in the root directory of this source tree.
6
7 # Thin wrapper that delegates to the TS test script.
8 # The TS script handles building the native module itself.
9 #
10 # Usage: bash compiler/scripts/test-rust-port.sh [<pass>] [<fixtures-path>] [flags]
11 # Flags: --no-color, --json, --failures, --limit N, --mode MODE
12
13 set -eo pipefail
14
15 REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
16
17 exec npx tsx "$REPO_ROOT/compiler/scripts/test-rust-port.ts" "$@"