tricu

An interpreted language for exploring Tree Calculus
Log | Files | Refs | README | LICENSE

source_map_end_to_end.sh (594B)


      1 #!/usr/bin/env bash
      2 # Focused Haskell-only nested native-map gate. The old cold-source/Zig matrix
      3 # is not a current validation prerequisite; compiler closure has its own audits.
      4 set -euo pipefail
      5 if (( $# < 2 || $# > 3 )); then
      6   echo "usage: $0 TRICU COMPLETE_GENERATION [DIRECTORY]" >&2
      7   exit 2
      8 fi
      9 tricu="$1"
     10 generation="$2"
     11 if (( $# == 3 )); then
     12   directory="$3"
     13 else
     14   mkdir -p .bootstrap-run
     15   directory="$(mktemp -d .bootstrap-run/source-map-native-XXXXXX)"
     16   trap 'rm -rf "$directory"' EXIT
     17 fi
     18 python3 test/native_source_map_fixture.py "$tricu" "$generation" --directory "$directory"