#!/usr/bin/env sh # Run 2 for the previously-failing G-06/G-07 commands (fmt, doctor, diff) now that # the golden ships nixpkgs-fmt + enables nix-command/flakes, plus G-04 search. set -u N=/root/nina echo "KILN_CS2_BEGIN" # Second generation so diff has something to compare. sed -i 's| ./hardware-configuration.nix | ./hardware-configuration.nix ./genmarker.nix |' /etc/nixos/configuration.nix printf '{ ... }: { environment.etc."nina-gen".text = "Y"; }\n' > /etc/nixos/genmarker.nix $N apply >/dev/null 2>&1; echo "setup apply rc=$?" echo "### G-06 T-084 nina fmt (expect :: done, exit 0)" $N fmt; echo "FMT_RC=$?" echo "### G-06 T-085 nina fmt --check (expect ok, exit 0)" $N fmt --check; echo "FMTCHK_RC=$?" echo "### G-07 T-094 nina doctor (expect config syntax ok now)" $N doctor; echo "DOCTOR_RC=$?" echo "### G-07 T-091 nina diff (expect closure changes, no nix-command error)" $N diff; echo "DIFF_RC=$?" echo "### G-04 T-040 nina search firefox (expect firefox + version)" $N search firefox; echo "SEARCH_FF_RC=$?" echo "### G-04 T-041 nina search ripgrep" $N search ripgrep; echo "SEARCH_RG_RC=$?" echo "### G-04 T-055 nina search nonexistent (expect clean no-results, no crash)" $N search xyzzy-nope-abc123; echo "SEARCH_NONE_RC=$?" echo "KILN_CS2_END"