#!/usr/bin/env sh # G-04 search validation. `nix search nixpkgs` evaluates all of nixpkgs and is # memory-hungry — run this with a larger MEM_MB (see run-in-vm.sh) than the # brief's 2 GB, which OOMs. set -u N=/root/nina echo "KILN_SEARCH_BEGIN" free -m | head -2 echo "### T-040 nina search firefox (expect firefox + version + description)" $N search firefox; echo "SEARCH_FF_RC=$?" echo "### T-041 nina search ripgrep" $N search ripgrep; echo "SEARCH_RG_RC=$?" echo "### T-055 nina search nonexistent (expect clean no-results, no crash)" $N search xyzzy-nope-abc123; echo "SEARCH_NONE_RC=$?" echo "KILN_SEARCH_END"