QR tests MUST use native language libraries, not qrencode CLI. If the sandbox doesn't have the library, the test should FAIL honestly so we know what to fix in the sandbox image. Also adds CLAUDE.md rule to prevent future attempts to replace native library QR tests with CLI subprocess calls.
5 lines
185 B
Perl
5 lines
185 B
Perl
use Imager::QRCode;
|
|
my $qr = Imager::QRCode->new(size => 1, margin => 0);
|
|
my $img = $qr->plot("unsandbox-qr-ok");
|
|
my $rows = $img->getheight();
|
|
print "QR:unsandbox-qr-ok:ROWS:$rows\n";
|