Build Linux initramfs cpio archives from OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: apply linter auto-fixes across hostname, initramfs, json-logs, jsonwt, linkedin, matter, mbr

+12 -11
+1 -1
test/dune
··· 1 1 (test 2 - (name test_initramfs) 2 + (name test) 3 3 (package initramfs) 4 4 (libraries initramfs cpio alcotest))
+1
test/test.ml
··· 1 + let () = Alcotest.run "initramfs" [ Test_initramfs.suite ]
+7 -10
test/test_initramfs.ml
··· 91 91 Alcotest.(check bool) "has init" true (List.mem "init" names); 92 92 Alcotest.(check bool) "has proc" true (List.mem "proc" names)) 93 93 94 - let () = 95 - Alcotest.run "initramfs" 94 + let suite = 95 + ( "initramfs", 96 96 [ 97 - ( "build", 98 - [ 99 - Alcotest.test_case "dir entries" `Quick test_dir; 100 - Alcotest.test_case "file entry" `Quick test_file; 101 - Alcotest.test_case "tree entry" `Quick test_tree; 102 - Alcotest.test_case "mixed entries" `Quick test_mixed; 103 - ] ); 104 - ] 97 + Alcotest.test_case "dir entries" `Quick test_dir; 98 + Alcotest.test_case "file entry" `Quick test_file; 99 + Alcotest.test_case "tree entry" `Quick test_tree; 100 + Alcotest.test_case "mixed entries" `Quick test_mixed; 101 + ] )
+3
test/test_initramfs.mli
··· 1 + (** Initramfs test suite. *) 2 + 3 + val suite : string * unit Alcotest.test_case list