Repositories / agent-snapshot.git
agent-snapshot.git
Clone (read-only): git clone http://git.guha-anderson.com/git/agent-snapshot.git
@@ -867,6 +867,10 @@ let cmd_main : unit Cmd.t = `P "$(tool) $(b,--snapshot-dir) /tmp/snap make all"; `P "$(tool) $(b,--output) /tmp/snap make all"; `P "$(tool) make all"; + `S "COPYRIGHT"; + `P "Copyright (c) 2026 Arjun Guha"; + `S "LICENSE"; + `P "BSD-3 licensed."; ] in let main_info = Cmd.info "agent-snapshot" ~doc ~man in
@@ -361,6 +361,19 @@ def test_run_prints_stderr_summary(tmp_path): ) +def test_help_includes_copyright_and_license(): + completed = subprocess.run( + [str(BIN), "--help=plain"], + cwd=ROOT, + text=True, + check=True, + capture_output=True, + ) + + assert "Copyright (c) 2026 Arjun Guha" in completed.stdout + assert "BSD-3 licensed." in completed.stdout + + def test_rename_records_source_tombstone_and_destination_content(tmp_path): # Rename is not just a write: a replay-equivalent snapshot needs to know that # the source path stopped existing and that the destination path acquired the