Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

653 B
Raw Blame
#!/usr/bin/env bash
set -euo pipefail

REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "$REPO_ROOT/scripts/_dotnet-env.sh"
DOTNET_BIN="${DOTNET_BIN:-$(resolve_dotnet_bin)}"
PRIMARY_TFM="${AETHERIS_PRIMARY_TFM:-net10.0}"

run() {
  printf '+'
  for arg in "$@"; do
    printf ' %q' "$arg"
  done
  printf '\n'
  "$@"
}

cd "$REPO_ROOT"

if [ "$#" -gt 0 ]; then
  for test_project in "$@"; do
    run "$DOTNET_BIN" test "$test_project" -f "$PRIMARY_TFM" --logger "console;verbosity=minimal"
  done
  exit 0
fi

run "$DOTNET_BIN" test Aetheris.slnx -f "$PRIMARY_TFM" --logger "console;verbosity=minimal" --filter "Category!=SlowCorpus"