Something went wrong. Try again.
Git format in pure OCaml
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344(* Copyright (c) 2024-2026 Thomas Gazagnaire <thomas@gazagnaire.org>
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *)
let () = Crypto_rng_unix.use_default ()let () = Observe.Memtrace.trace_if_requested ()
let fixture_temp = ( "fixture_temp", [ Alcotest.test_case "fixtures use the declared action directory" `Quick (fun () -> Alcotest.(check string) "temporary root" (Sys.getcwd ()) (Filename.get_temp_dir_name ())); ] )
(* @runtest runs each case as a dune action of its own (cases/dune), in its directory, whose sockets' paths stay short. *)let () = Dune_cases.main ~name:(fun (n, _, _) -> n) ~package:"nox-git-net" ~deps:"(glob_files ../keys/*) (source_tree ../traces)" ~chdir:".." ~prefix:[ "sh"; "-c"; "export TMPDIR=$(pwd); exec \"$@\""; "fixture" ] ~exe:"%{exe:../test.exe}" ~args:[ "--color=never" ] [ fixture_temp; Test_git_ssh.suite; Test_git_ssh_auth.suite; Test_git_ssh_fetch.suite; ] (fun argv suites -> Alcotest.run ~argv "git-ssh" suites)