Every tracked file that can carry a comment (880 of them) now opens with "Author: Guoliang Chen, a Senior Digital Design Engineer" and closes with "Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com", in the file's own comment syntax. No behaviour change: the diff outside the version bump and changelogs is comment lines only. - tools/stamp_author.py: writes the lines; idempotent, `--check` lists what is missing. Headers go under a shebang and under Markdown front matter. - Left alone: test fixtures, cases and snapshots (byte-exact inputs), JSON and JSONL, logs, images, lockfiles, docs/site/dist (regenerated) and the LICENSE files (already carry the copyright line). - tools/linux_check.sh: --help reads its header from line 3, now that the author line sits under the shebang. - tools/gates.sh green on this tree: 5 545 tests, corpus 814/6 as before. Co-Authored-By: Claude Mythos 5.2 <[email protected]>
51 lines
1.6 KiB
Bash
Executable File
51 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Author: Guoliang Chen, a Senior Digital Design Engineer
|
|
# The per-file outcome runs, for the release-to-release outcome diff.
|
|
#
|
|
# tools/perf/outcomes.sh <lucisv-binary> <label> <opentitan-dir> <out-dir>
|
|
#
|
|
# `format --check --no-cache` and `check` over the five trees, with every
|
|
# per-file line kept. `--no-cache` so the verdict is computed, never recalled,
|
|
# and so the two binaries are compared on the same work. Paths are rewritten
|
|
# relative to the corpus root, so two runs differ only where an *outcome* did.
|
|
#
|
|
# Writes `<out-dir>/<label>.format.txt`, `<label>.check.txt`,
|
|
# `<label>.check-select.txt`. Diff two labels with:
|
|
#
|
|
# diff <out-dir>/0.43.0.format.txt <out-dir>/0.49.0.format.txt
|
|
#
|
|
# Untimed — correctness, not timing — so it is safe to run beside other work.
|
|
# Still guarded, like every `lucisv` invocation in this round.
|
|
set -u
|
|
|
|
BIN=${1:?usage: outcomes.sh <binary> <label> <opentitan> <outdir>}
|
|
LABEL=${2:?}
|
|
OT=${3:?}
|
|
OUT=${4:?}
|
|
|
|
HERE=$(cd "$(dirname "$0")" && pwd)
|
|
GUARD="$HERE/../guard.sh"
|
|
TREES="hw/ip hw/top_earlgrey/ip hw/top_darjeeling/ip hw/dv hw/vendor"
|
|
|
|
mkdir -p "$OUT"
|
|
|
|
emit() {
|
|
local suffix=$1
|
|
shift
|
|
local out="$OUT/${LABEL}.${suffix}.txt"
|
|
: >"$out"
|
|
for tree in $TREES; do
|
|
echo "=== $tree ===" >>"$out"
|
|
"$GUARD" -m 8 -t 1800 -- "$BIN" "$@" "$OT/$tree" 2>&1 |
|
|
sed "s#$OT/##g" |
|
|
LC_ALL=C sort >>"$out"
|
|
done
|
|
echo "wrote $out"
|
|
}
|
|
|
|
emit format format --no-cache --check
|
|
emit check check
|
|
emit check-select check --select error,warning,style
|
|
|
|
# Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com
|