search.sh

657 B · raw

1#!/usr/bin/env sh2# G-04 search validation. `nix search nixpkgs` evaluates all of nixpkgs and is3# memory-hungry — run this with a larger MEM_MB (see run-in-vm.sh) than the4# brief's 2 GB, which OOMs.5set -u6N=/root/nina78echo "KILN_SEARCH_BEGIN"9free -m | head -21011echo "### T-040 nina search firefox (expect firefox + version + description)"12$N search firefox </dev/null; echo "SEARCH_FF_RC=$?"1314echo "### T-041 nina search ripgrep"15$N search ripgrep </dev/null; echo "SEARCH_RG_RC=$?"1617echo "### T-055 nina search nonexistent (expect clean no-results, no crash)"18$N search xyzzy-nope-abc123 </dev/null; echo "SEARCH_NONE_RC=$?"1920echo "KILN_SEARCH_END"