edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB06be466Tahinli2 months ago3574 commits
| 1 | #!/usr/bin/env bash |
| 2 | # link-fixtures.sh — give this worktree the primary checkout's root `fixtures/`. |
| 3 | # |
| 4 | # The root `fixtures/` directory is listed in `.gitignore` (line 2) and is NOT |
| 5 | # committed, so `git worktree add` gives every lane worktree a tree WITHOUT it. |
| 6 | # Every test that reads a fixture through `<crate>/../../fixtures` then reports |
| 7 | # green having checked nothing: this is the "gate skips on its own failure" |
| 8 | # class, and it has already cost false verdicts (lane-av1skipfix 2026-09-29). |
| 9 | # |
| 10 | # This script makes a SYMLINK, never a copy: the fixtures are large and the |
| 11 | # lane worktrees exist to run tests, not to duplicate data. |
| 12 | # |
| 13 | # Usage: scripts/link-fixtures.sh [--check] |
| 14 | # (no args) create the symlink, or no-op if fixtures/ is already there |
| 15 | # --check report what would happen and exit non-zero if the fixtures are |
| 16 | # absent; for a batch preflight |
| 17 | # |
| 18 | # Idempotent and safe to run from any worktree of this repo. |
| 19 | |
| 20 | |
| 21 | |
| 22 | ROOT= |
| 23 | || |
| 24 | |
| 25 | # `--git-common-dir` resolves to the PRIMARY checkout's .git from any linked |
| 26 | # worktree (a linked worktree's own .git is a FILE, not the common dir), so |
| 27 | # this works identically in the primary tree and in ~/.cache/wt/<lane>. |
| 28 | COMMON= || { |
| 29 | |
| 30 | |
| 31 | } |
| 32 | COMMON= || |
| 33 | PRIMARY= |
| 34 | SOURCE="/fixtures" |
| 35 | |
| 36 | CHECK=0 |
| 37 | [ && CHECK=1 |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | if [ || [; then |
| 46 | if [ && [; then |
| 47 | |
| 48 | |
| 49 | fi |
| 50 | if [; then |
| 51 | |
| 52 | |
| 53 | fi |
| 54 | |
| 55 | |
| 56 | fi |
| 57 | |
| 58 | if [; then |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | fi |
| 65 | |
| 66 | if [; then |
| 67 | |
| 68 | |
| 69 | fi |
| 70 | |
| 71 | || |
| 72 | |
| 73 | |
| 74 |