Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/evidence/speculation/release-candidate-teardown/mutants.sh # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / evidence / speculation / release-candidate-teardown / mutants.sh` 35 lines · 2336 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: AGPL-3.0-only 3 # Disclosed test orchestration for the release-candidate receipt; not product runtime. 4 # Mutation check for CUDApp RC: each mutant edits one behavior of the repaired 5 # native/nvrm/context.om (blob `5280fea0`) and must be killed by the fixture's own 6 # assertion (after arm exit 1 + NATIVE_TEARDOWN_HOST_FAIL), never by compile error. 7 # usage: mutants.sh 8 set -u 9 src=$1; omc=$2; out=$3; mkdir -p "$out" 10 [ "$(git -C "$src" rev-parse HEAD:native/nvrm/context.om | cut -c1-8)" = `5280fea0` ] || { echo REFUSED: unexpected context blob; exit 69; } 11 run() { # name awk-program 12 name=$1; prog=$2; w="$out/$name"; rm -rf "$w"; mkdir -p "$w" 13 git -C "$src" worktree add -q --detach "$w/tree" HEAD || exit 74 14 awk "$prog" "$src/native/nvrm/context.om" > "$w/context.om" || exit 74 15 cmp -s "$w/context.om" "$src/native/nvrm/context.om" && { echo "$name INVALID (no change)"; return; } 16 cp "$w/context.om" "$w/tree/native/nvrm/context.om" 17 TMPDIR="$w" sh "$w/tree/tests/speculation/run-teardown-host.sh" "$omc" > "$w/run.log" 2>&1; rc=$? 18 d=$(ls -d "$w"/cudapp-teardown-host.* | head -1) 19 ae=$(cat "$d/after.exit" 2>/dev/null || echo none) 20 if [ "$rc" -eq 1 ] && [ "$ae" = 1 ] && grep -q '^NATIVE_TEARDOWN_HOST_FAIL$' "$d/after.stderr"; then v=KILLED 21 elif [ "$rc" -eq 0 ]; then v=SURVIVED 22 else v="INVALID(rc=$rc after.exit=$ae)"; fi 23 echo "$name $v diff=$(diff "$src/native/nvrm/context.om" "$w/context.om" | grep -c '^[<>]') sha=$(sha256sum "$w/context.om" | cut -c1-16)" 24 git -C "$src" worktree remove --force "$w/tree" 25 } 26 run M1-unpub-not-retained 'NR==508{next}{print}' 27 run M2-unpub-dropped-on-refusal 'NR==258{print;print "put nvunpub 0 0";next}{print}' 28 run M3-bar-dropped-on-refusal 'NR==267{print;print "put nvbar 0 0";next}{print}' 29 run M4-retry-skipped 'NR==156{print "ret true";next}{print}' 30 run M5-retry-redoes-close-and-driver 'NR==285{print;print "put nvstate 0 1";next}{print}' 31 run M6-fault-cleared 'NR==300{print "put nvfault 0 0";print;next}{print}' 32 run M7-faulted-map-allowed 'NR>=448&&NR<=451{next}{print}' 33 run M8-descriptor-not-retired 'NR==233{next}{print}' 34 run M7b-guard-state-only 'NR==448{print "if ne get nvstate 0 1";next}{print}' 35 run M7c-guard-fault-only 'NR==448{print "if ne get nvfault 0 0";next}{print}'