Characterization tests for name handling in src/rr.c (duplicate detection)
and src/textparse.c (extract_name: lowercasing and byte scanning).

Every expected value was read off the output of commit 029c161 and must not
change when that code is reworked. The tests live in src/t/test.pl, in the
block that starts with name_wire_rdata. They sit outside the threads loop, so
each assertion runs once.

Duplicate detection (generated per type; NS, CNAME, MB, MG, MR, PTR, DNAME)
  Each zone yields "skipped dups: 4" and no errors:
  - owner t: a case-only duplicate, and a duplicate where the older record is
    in normal form and the newer in \# form;
  - owner g: a duplicate where the older record is in \# form and the newer in
    normal form (its struct is rr_any data, so an equality method called on it
    would read garbage);
  - owner l: "x.<255 a>." and "x\255<255 a>." are duplicates. name2wire_name
    writes the first as 01 'x' FF a*255 00; the second is one 257-byte label
    whose length byte is 257 mod 256 = 01, giving the same bytes.
    "x\254<255 a>." has a different wire form and is not a duplicate.

lowercase.zone
  Pins which bytes lowercasing touches (-v rendering, unique names count).
  Only A-Z fold. The owners \195 \227 \091 \123 \064 \096 must stay six
  distinct names (Latin-1 case pairs and the ASCII neighbours of the letters).
  Also covers relative and absolute owners and rdata, $ORIGIN with capitals
  (validns lowercases those when it sets the origin, so the origin copy keeps
  nothing to fold), escapes, quoted owners, the root-origin branch, the
  folded class and type of "types", and IPSECKEY gateways, which keep their
  capitalization whether absolute, relative (ipsecrel) or written with an
  escape (ipsecesc).

origin-option.zone
  Run with -v -z Up.Example. The only way to get an uppercase origin: -z
  stores it verbatim, while $ORIGIN and $INCLUDE lowercase theirs. Covers the
  origin part of a relative owner, "@" as owner, a relative rdata name, and a
  relative IPSECKEY gateway (keeps its capitalization, origin part included:
  Gw.Up.Example.), and "@" as an IPSECKEY gateway (keeps the origin's
  capitalization: Up.Example.). Everything else renders lowercase.

Large RRset (generated in test.pl)
  6000 PTR records with distinct ~190-byte names at one owner. Their wire
  forms sum to more than the 1 MiB temporary pool; 029c161 aborted with
  "getmem_temp request too large", the equality-method duplicate check loads
  the set and counts 6003 records.

generate.zone
  $GENERATE names: $ inside the name is accepted, and the generated names are
  lowercased.

Name-byte sweep
  For every byte 0x21-0x7E plus 0x80, 0xC3, 0xFF, in three positions (inner
  byte of an owner, first byte of a CNAME target, inner byte of a CNAME
  target), validns -v must produce the same rc and stderr. The names carry an
  empty label (".."): extract_name's fast path accepts it, the slow path
  rejects it, so the sweep shows which bytes take which path. This pins
  main's fast-path acceptance of empty labels (a BACKLOG item); fixing that
  changes the expected outcomes of the sweep. Also pinned: a leading '-' with
  -p permit-starting-hyphen, and the owners *.sw.example. and *x.sw.example.
