bip379: fail when no test vector files are found #2371

pull pqhyl07 wants to merge 1 commits into bitcoin:master from pqhyl07:master changing 1 files +6 −2
  1. pqhyl07 commented at 5:34 AM on November 26, 2026: none

    Summary

    The BIP379 test harness prints All 0 vectors passed (0 skipped). and exits successfully when the input directory contains none of the known vector files. A missing directory or an incorrect working directory can therefore appear to pass in automation.

    Return an error that identifies the input directory when no known vector files are found. The harness still accepts a subset of the vector files.

    Testing

    Built and ran the original and patched harnesses with Go 1.26.9.

    Input Before After
    Missing directory Exit 0 Exit 1
    Empty directory Exit 0 Exit 1
    Directory with only an unrelated file Exit 0 Exit 1
    Only edge_cases.txt 42 passed 42 passed
    Full vector corpus 81,859 passed 81,859 passed
    Known vector file containing an invalid Miniscript expression Exit 1 Exit 1

    go vet ./... passed.

  2. bip379: fail when no test vector files are found
    Signed-off-by: pqhyl07 <pqhyl07@outlook.com>
    5f6d84facb
  3. tiendola91 commented at 8:19 PM on November 26, 2026: none

    Ok

  4. jonatack added the label Fixups on Nov 26, 2026
  5. Fliese1982 commented at 5:48 AM on November 30, 2026: none

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-03 01:42 UTC