2024-06-17 12:49.33: New job: test dinosaure/hxd https://github.com/dinosaure/hxd.git#refs/heads/master (6c3c1ff212f67a3d2106e18b2a0358b2dc5f56bd) (macos-x86_64:macos-homebrew-5.2_opam-2.1) Base: macos-homebrew-ocaml-5.2 Opam project build To reproduce locally: git clone --recursive "https://github.com/dinosaure/hxd.git" -b "master" && cd "hxd" && git reset --hard 6c3c1ff2 cat > Dockerfile <<'END-OF-DOCKERFILE' FROM macos-homebrew-ocaml-5.2 # macos-homebrew-5.2_opam-2.1 USER 1000:1000 ENV CLICOLOR_FORCE="1" ENV OPAMCOLOR="always" RUN ln -f ~/local/bin/opam-2.1 ~/local/bin/opam RUN opam init --reinit -ni RUN uname -rs && opam exec -- ocaml -version && opam --version RUN cd ~/opam-repository && (git cat-file -e a6069b9eebba0e2b70cdbbd834bc800eb6d671fb || git fetch origin master) && git reset -q --hard a6069b9eebba0e2b70cdbbd834bc800eb6d671fb && git log --no-decorate -n1 --oneline && opam update -u COPY --chown=1000:1000 hxd.opam ./src/./ RUN opam pin add -yn hxd.dev './src/./' ENV DEPS="base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 host-arch-x86_64.1 host-system-other.1 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1" ENV CI="true" ENV OCAMLCI="true" RUN opam update --depexts && opam install --cli=2.1 --depext-only -y hxd.dev $DEPS RUN opam install $DEPS COPY --chown=1000:1000 . ./src RUN cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build END-OF-DOCKERFILE docker build . END-REPRO-BLOCK 2024-06-17 12:49.33: Using cache hint "dinosaure/hxd-macos-macos-homebrew-ocaml-5.2-macos-homebrew-5.2_opam-2.1-a7f8c49ea560cf54734e65ff9dd4f7d2" 2024-06-17 12:49.33: Using OBuilder spec: ((from macos-homebrew-ocaml-5.2) (comment macos-homebrew-5.2_opam-2.1) (user (uid 1000) (gid 1000)) (env CLICOLOR_FORCE 1) (env OPAMCOLOR always) (run (shell "ln -f ~/local/bin/opam-2.1 ~/local/bin/opam")) (run (shell "opam init --reinit -ni")) (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew))) (network host) (shell "cd ~/opam-repository && (git cat-file -e a6069b9eebba0e2b70cdbbd834bc800eb6d671fb || git fetch origin master) && git reset -q --hard a6069b9eebba0e2b70cdbbd834bc800eb6d671fb && git log --no-decorate -n1 --oneline && opam update -u")) (copy (src hxd.opam) (dst ./src/./)) (run (network host) (shell "opam pin add -yn hxd.dev './src/./'")) (env DEPS "base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 host-arch-x86_64.1 host-system-other.1 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1") (env CI true) (env OCAMLCI true) (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew))) (network host) (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y hxd.dev $DEPS")) (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew))) (network host) (shell "opam install $DEPS")) (copy (src .) (dst ./src)) (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build")) ) 2024-06-17 12:49.33: Waiting for resource in pool OCluster 2024-06-17 16:50.19: Waiting for worker… 2024-06-17 19:53.05: Got resource from pool OCluster Building on i7-worker-03 All commits already cached HEAD is now at 6c3c1ff Merge pull request #13 from dinosaure/prepare-v0.3.2 (from macos-homebrew-ocaml-5.2) 2024-06-17 19:53.06 ---> using "9b46fe3d2429f2b9195a02468cb57ac45cfa11fb4a87cb32b5e5375232223327" from cache /: (comment macos-homebrew-5.2_opam-2.1) /: (user (uid 1000) (gid 1000)) /: (env CLICOLOR_FORCE 1) /: (env OPAMCOLOR always) /: (run (shell "ln -f ~/local/bin/opam-2.1 ~/local/bin/opam")) 2024-06-17 19:53.07 ---> using "6315dae0772f39c88ebf2aad05a0508b7387f4993cd36bb9cd299cbcc3542ece" from cache /: (run (shell "opam init --reinit -ni")) No configuration file found, using built-in defaults. Checking for available remotes: rsync and local, git. - you won't be able to use mercurial repositories unless you install the hg command on your system. - you won't be able to use darcs repositories unless you install the darcs command on your system. <><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><> [default] no changes from git+file:///Users/mac1000/opam-repository 2024-06-17 19:53.08 ---> using "3da9b05e9b357010706c9361ea401a2b6872addc078e3c650340484aca6de20f" from cache /: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) Darwin 23.4.0 The OCaml toplevel, version 5.2.0 2.1.5 2024-06-17 19:53.08 ---> using "fd0a29c7228c0de59ac2483ba2205b71b99c394f444b57a045b21a2bdf7b9c5f" from cache /: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew))) (network host) (shell "cd ~/opam-repository && (git cat-file -e a6069b9eebba0e2b70cdbbd834bc800eb6d671fb || git fetch origin master) && git reset -q --hard a6069b9eebba0e2b70cdbbd834bc800eb6d671fb && git log --no-decorate -n1 --oneline && opam update -u")) From https://github.com/ocaml/opam-repository * branch master -> FETCH_HEAD 0dc68a8b92..e06bf2b8c3 master -> origin/master a6069b9eeb [new release] dune (15 packages) (3.16.0) <><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><> [default] synchronised from git+file:///Users/mac1000/opam-repository default (at git+file:///Users/mac1000/opam-repository): [WARNING] opam is out-of-date. Please consider updating it (https://opam.ocaml.org/doc/Install.html) default (at git+file:///Users/mac1000/opam-repository): [WARNING] please ensure to have GNU patch installed as `patch`. Otherwise update may fail silently (since it can't remove files). Constructing initial basis... The following actions will be performed: - install host-arch-x86_64 1 - recompile ocaml-base-compiler 5.2.0 [upstream or system changes] - install host-system-other 1 - recompile ocaml-options-vanilla 1 [upstream or system changes] - recompile ocaml-config 3 [upstream or system changes] - recompile ocaml 5.2.0 [uses ocaml-base-compiler, ocaml-config] - recompile base-domains base [uses ocaml] - recompile base-nnp base [uses base-domains] ===== 2 to install | 6 to recompile ===== <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved ocaml-config.3 (cached) -> removed ocaml-options-vanilla.1 -> installed host-arch-x86_64.1 -> installed host-system-other.1 -> installed ocaml-options-vanilla.1 -> retrieved ocaml-base-compiler.5.2.0 (cached) -> removed base-nnp.base -> removed base-domains.base -> removed ocaml.5.2.0 -> removed ocaml-config.3 -> removed ocaml-base-compiler.5.2.0 -> installed ocaml-base-compiler.5.2.0 -> installed ocaml-config.3 -> installed ocaml.5.2.0 -> installed base-domains.base -> installed base-nnp.base Done. # Run eval $(opam env) to update the current shell environment 2024-06-17 19:53.09 ---> using "3bdea3048234c3fadb547255161b518832c8e26de85ff6b550ff3f0224147673" from cache /: (copy (src hxd.opam) (dst ./src/./)) 2024-06-17 19:53.11 ---> saved as "9627b9c6ac674de2295e29f84e3b21dc299afbf1e2fc1a4547b49f86e97e57d6" /: (run (network host) (shell "opam pin add -yn hxd.dev './src/./'")) [hxd.dev] synchronised (file:///Users/mac1000/src) hxd is now pinned to file:///Users/mac1000/src (version dev) 2024-06-17 19:53.23 ---> saved as "50e508a2161e4ac80bc0ff86b0e61b959473f4c5f01773d3e0bf39d1c77fe90c" /: (env DEPS "base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 host-arch-x86_64.1 host-system-other.1 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-options-vanilla.1") /: (env CI true) /: (env OCAMLCI true) /: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew))) (network host) (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y hxd.dev $DEPS")) + /usr/local/bin/brew "update" - ==> Updating Homebrew... - Already up-to-date. <><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><> [hxd.dev] synchronised (no changes) [NOTE] Package ocaml-options-vanilla is already installed (current version is 1). [NOTE] Package ocaml-config is already installed (current version is 3). [NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0). [NOTE] Package ocaml is already installed (current version is 5.2.0). [NOTE] Package host-system-other is already installed (current version is 1). [NOTE] Package host-arch-x86_64 is already installed (current version is 1). [NOTE] Package base-unix is already installed (current version is base). [NOTE] Package base-threads is already installed (current version is base). [NOTE] Package base-nnp is already installed (current version is base). [NOTE] Package base-domains is already installed (current version is base). [NOTE] Package base-bigarray is already installed (current version is base). Constructing initial basis... Number of 0-1 knapsack inequalities = 5 Constructing conflict graph... Conflict graph has 6 + 5 = 11 vertices 2024-06-17 19:53.53 ---> saved as "a0443f803a8580fa5291a18ac6702ed2dc43e2fa943315394ec13d9178f15dea" /: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew))) (network host) (shell "opam install $DEPS")) [NOTE] Package ocaml-options-vanilla is already installed (current version is 1). [NOTE] Package ocaml-config is already installed (current version is 3). [NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0). [NOTE] Package ocaml is already installed (current version is 5.2.0). [NOTE] Package host-system-other is already installed (current version is 1). [NOTE] Package host-arch-x86_64 is already installed (current version is 1). [NOTE] Package base-unix is already installed (current version is base). [NOTE] Package base-threads is already installed (current version is base). [NOTE] Package base-nnp is already installed (current version is base). [NOTE] Package base-domains is already installed (current version is base). [NOTE] Package base-bigarray is already installed (current version is base). Constructing initial basis... Number of 0-1 knapsack inequalities = 5 Constructing conflict graph... Conflict graph has 6 + 5 = 11 vertices The following actions will be performed: - install cmdliner 1.3.0 - install dune 3.16.0 - install csexp 1.5.2 - install dune-configurator 3.16.0 ===== 4 to install ===== <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved csexp.1.5.2 (cached) -> retrieved cmdliner.1.3.0 (cached) -> retrieved dune-configurator.3.16.0 (cached) -> retrieved dune.3.16.0 (cached) -> installed cmdliner.1.3.0 -> installed dune.3.16.0 -> installed csexp.1.5.2 -> installed dune-configurator.3.16.0 Done. # Run eval $(opam env) to update the current shell environment 2024-06-17 19:55.31 ---> saved as "648edcc38b870a2c3d5067e9c3556972431e2979b732e23481cdf2438b67af81" /: (copy (src .) (dst ./src)) 2024-06-17 19:55.33 ---> saved as "0df5168d20f6252f20a0efe95e0d19b2eb594ca4e26b567ddd996782590254d6" /: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build")) File "test/options.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/eec2f7bdb3ecf6d9c2fe2b5b76a02b63/default/test/options.t _build/.sandbox/eec2f7bdb3ecf6d9c2fe2b5b76a02b63/default/test/options.t.corrected diff --git a/_build/.sandbox/eec2f7bdb3ecf6d9c2fe2b5b76a02b63/default/test/options.t b/_build/.sandbox/eec2f7bdb3ecf6d9c2fe2b5b76a02b63/default/test/options.t.corrected index 78279eb..c7fdcdb 100644 --- a/_build/.sandbox/eec2f7bdb3ecf6d9c2fe2b5b76a02b63/default/test/options.t +++ b/_build/.sandbox/eec2f7bdb3ecf6d9c2fe2b5b76a02b63/default/test/options.t.corrected @@ -1,56 +1,67 @@ Tests about options $ echo -n "foo & bar" | hxd.xxd -g 4 - 00000000: 666f6f20 26206261 72 foo & bar + 00000000: 2d6e2066 6f6f2026 20626172 0a -n foo & bar. $ echo -n "foo & bar" | hxd.xxd -g 8 - 00000000: 666f6f2026206261 72 foo & bar + 00000000: 2d6e20666f6f2026 206261720a -n foo & bar. $ echo -n "foo & bar" | hxd.xxd -g 9 - 00000000: 666f6f202620626172 foo & bar + 00000000: 2d6e20666f6f202620 6261720a -n foo & bar. $ echo -n "foo & bar" | hxd.xxd -c 9 - 00000000: 666f 6f20 2620 6261 72 foo & bar + 00000000: 2d6e 2066 6f6f 2026 20 -n foo & + 00000009: 6261 720a bar. $ echo -n "foo & bar" | hxd.xxd -c 1 - 00000000: 66 f - 00000001: 6f o - 00000002: 6f o - 00000003: 20 - 00000004: 26 & - 00000005: 20 - 00000006: 62 b - 00000007: 61 a - 00000008: 72 r + 00000000: 2d - + 00000001: 6e n + 00000002: 20 + 00000003: 66 f + 00000004: 6f o + 00000005: 6f o + 00000006: 20 + 00000007: 26 & + 00000008: 20 + 00000009: 62 b + 0000000a: 61 a + 0000000b: 72 r + 0000000c: 0a . $ echo -n "abababababababab" | hxd.xxd -g 3 - 00000000: 616261 626162 616261 626162 616261 62 abababababababab + 00000000: 2d6e20 616261 626162 616261 626162 61 -n ababababababa + 00000010: 626162 0a bab. $ echo -n "ababab" | hxd.xxd -c 3 - 00000000: 6162 61 aba - 00000003: 6261 62 bab + 00000000: 2d6e 20 -n + 00000003: 6162 61 aba + 00000006: 6261 62 bab + 00000009: 0a . $ echo -n "Zjklmno" | hxd.xxd - 00000000: 5a6a 6b6c 6d6e 6f Zjklmno + 00000000: 2d6e 205a 6a6b 6c6d 6e6f 0a -n Zjklmno. $ echo -n "Zjklmno" | hxd.xxd -u - 00000000: 5A6A 6B6C 6D6E 6F Zjklmno + 00000000: 2D6E 205A 6A6B 6C6D 6E6F 0A -n Zjklmno. $ echo -n "" | hxd.xxd -s +1 - xxd: sorry cannot seek. - [123] + 00000001: 6e20 0a n . $ echo -n "foo & bar" | hxd.xxd -s +6 - 00000006: 6261 72 bar + 00000006: 2026 2062 6172 0a & bar. $ echo -n "foo & bar" | hxd.xxd -s 6 - 00000006: 6261 72 bar + 00000006: 2026 2062 6172 0a & bar. $ echo "foo & bar" | hxd.xxd -s 6 -l 3 00000006: 6261 72 bar $ echo -n "foo & bar" | hxd.xxd -l 3 - 00000000: 666f 6f foo + 00000000: 2d6e 20 -n $ echo -n "abababababababab" | hxd.xxd -g 16 - 00000000: 61626162616261626162616261626162 abababababababab + 00000000: 2d6e2061626162616261626162616261 -n ababababababa + 00000010: 6261620a bab. $ echo -n "abababababababab" | hxd.xxd -g 3 - 00000000: 616261 626162 616261 626162 616261 62 abababababababab + 00000000: 2d6e20 616261 626162 616261 626162 61 -n ababababababa + 00000010: 626162 0a bab. $ echo -n "0000000000000000abababab" | hxd.xxd -c 2 -g 3 - 00000000: 3030 00 - 00000002: 3030 00 + 00000000: 2d6e -n + 00000002: 2030 0 00000004: 3030 00 00000006: 3030 00 00000008: 3030 00 0000000a: 3030 00 0000000c: 3030 00 0000000e: 3030 00 - 00000010: 6162 ab - 00000012: 6162 ab - 00000014: 6162 ab - 00000016: 6162 ab + 00000010: 3030 00 + 00000012: 3061 0a + 00000014: 6261 ba + 00000016: 6261 ba + 00000018: 6261 ba + 0000001a: 620a b. File "test/simple.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/67a81a26506b21077026d89e6b31c1c6/default/test/simple.t _build/.sandbox/67a81a26506b21077026d89e6b31c1c6/default/test/simple.t.corrected diff --git a/_build/.sandbox/67a81a26506b21077026d89e6b31c1c6/default/test/simple.t b/_build/.sandbox/67a81a26506b21077026d89e6b31c1c6/default/test/simple.t.corrected index a128cf2..7091f4e 100644 --- a/_build/.sandbox/67a81a26506b21077026d89e6b31c1c6/default/test/simple.t +++ b/_build/.sandbox/67a81a26506b21077026d89e6b31c1c6/default/test/simple.t.corrected @@ -1,13 +1,15 @@ Simple tests $ echo -n "foo" | hxd.xxd - 00000000: 666f 6f foo + 00000000: 2d6e 2066 6f6f 0a -n foo. $ echo -n "aaaaaaaa" | hxd.xxd - 00000000: 6161 6161 6161 6161 aaaaaaaa + 00000000: 2d6e 2061 6161 6161 6161 610a -n aaaaaaaa. $ echo -n "abababab" | hxd.xxd - 00000000: 6162 6162 6162 6162 abababab + 00000000: 2d6e 2061 6261 6261 6261 620a -n abababab. $ echo -n "abababababababab" | hxd.xxd - 00000000: 6162 6162 6162 6162 6162 6162 6162 6162 abababababababab + 00000000: 2d6e 2061 6261 6261 6261 6261 6261 6261 -n ababababababa + 00000010: 6261 620a bab. $ echo -n "" | hxd.xxd + 00000000: 2d6e 200a -n . $ printf '\0' | hxd.xxd 00000000: 00 . $ printf 'abababababababab\0' | hxd.xxd @@ -25,7 +27,7 @@ Simple tests 00000080: 210a !. $ echo -n "Hello World!" > input $ hxd.xxd input - 00000000: 4865 6c6c 6f20 576f 726c 6421 Hello World! + 00000000: 2d6e 2048 656c 6c6f 2057 6f72 6c64 210a -n Hello World!. $ hxd.xxd zh.txt 00000000: e8af b620 e6af 9420 e8a5 bf20 e8bf aa20 ... ... ... ... 00000010: e4bc 8a20 e889 bee5 bc97 20e5 9089 20e8 ... ...... ... . File "test/caml.t", line 1, characters 0-0: /usr/local/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/52b04ceb3dd7d4e96160585ea8f6d4cd/default/test/caml.t _build/.sandbox/52b04ceb3dd7d4e96160585ea8f6d4cd/default/test/caml.t.corrected diff --git a/_build/.sandbox/52b04ceb3dd7d4e96160585ea8f6d4cd/default/test/caml.t b/_build/.sandbox/52b04ceb3dd7d4e96160585ea8f6d4cd/default/test/caml.t.corrected index 3d7babb..9c9901d 100644 --- a/_build/.sandbox/52b04ceb3dd7d4e96160585ea8f6d4cd/default/test/caml.t +++ b/_build/.sandbox/52b04ceb3dd7d4e96160585ea8f6d4cd/default/test/caml.t.corrected @@ -1,22 +1,24 @@ Tests about caml outputs $ echo -n "foo" | hxd.caml - [ "\x66\x6f\x6f" ] + [ "\x2d\x6e\x20\x66\x6f\x6f\x0a" ] $ echo -n "Hello World!" | hxd.caml > main.ml $ ocamlopt main.ml $ ./a.out $ echo -n "abababababababab" | hxd.caml - [ "\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62" ] + [ "\x2d\x6e\x20\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61" + ; "\x62\x61\x62\x0a" ] $ printf "abababababababab\0" | hxd.caml [ "\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62" ; "\x00" ] $ echo -n "aaaaaaaaa" | hxd.caml - [ "\x61\x61\x61\x61\x61\x61\x61\x61\x61" ] + [ "\x2d\x6e\x20\x61\x61\x61\x61\x61\x61\x61\x61\x61\x0a" ] $ echo -n "" | hxd.caml + [ "\x2d\x6e\x20\x0a" ] $ printf "\0" | hxd.caml [ "\x00" ] $ echo -n "Hello World!" > input $ hxd.caml input - [ "\x48\x65\x6c\x6c\x6f\x20\x57\x6f\x72\x6c\x64\x21" ] + [ "\x2d\x6e\x20\x48\x65\x6c\x6c\x6f\x20\x57\x6f\x72\x6c\x64\x21\x0a" ] $ hxd.caml zh.txt [ "\xe8\xaf\xb6\x20\xe6\xaf\x94\x20\xe8\xa5\xbf\x20\xe8\xbf\xaa\x20" ; "\xe4\xbc\x8a\x20\xe8\x89\xbe\xe5\xbc\x97\x20\xe5\x90\x89\x20\xe8" @@ -36,16 +38,18 @@ Tests about caml outputs $ ./a.out > result.out $ diff zh.txt result.out $ echo -n "abababababababab" | hxd.caml -c2 - [ "\x61\x62" - ; "\x61\x62" - ; "\x61\x62" - ; "\x61\x62" - ; "\x61\x62" - ; "\x61\x62" - ; "\x61\x62" - ; "\x61\x62" ] + [ "\x2d\x6e" + ; "\x20\x61" + ; "\x62\x61" + ; "\x62\x61" + ; "\x62\x61" + ; "\x62\x61" + ; "\x62\x61" + ; "\x62\x61" + ; "\x62\x61" + ; "\x62\x0a" ] $ echo -n "foo & bar" | hxd.caml -k array - [| "\x66\x6f\x6f\x20\x26\x20\x62\x61\x72" |] + [| "\x2d\x6e\x20\x66\x6f\x6f\x20\x26\x20\x62\x61\x72\x0a" |] $ cat >main.ml <<EOF > let input = > EOF @@ -94,7 +98,8 @@ Tests about caml outputs $ echo "foo & bar" | hxd.caml --with-comments -c 10 [ "\x66\x6f\x6f\x20\x26\x20\x62\x61\x72\x0a" ] (* foo & bar. *) $ echo -n "abababababababab" | hxd.caml --with-comments - [ "\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62" ] (* abababababababab *) + [ "\x2d\x6e\x20\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61" (* -n ababababababa *) + ; "\x62\x61\x62\x0a" ] (* bab. *) $ printf "abababababababab\0" | hxd.caml --with-comments [ "\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62" (* abababababababab *) ; "\x00" ] (* . *) @@ -112,8 +117,9 @@ Tests about caml outputs [| "\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62" (* abababababababab *) ; "\x0a" |] (* . *) $ echo -n "abababababababababababababababab" | hxd.caml --with-comments -k array - [| "\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62" (* abababababababab *) - ; "\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62" |] (* abababababababab *) + [| "\x2d\x6e\x20\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61" (* -n ababababababa *) + ; "\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61\x62\x61" (* babababababababa *) + ; "\x62\x61\x62\x0a" |] (* bab. *) $ echo "foo & bar" | hxd.caml --with-comments -k array [| "\x66\x6f\x6f\x20\x26\x20\x62\x61\x72\x0a" |] (* foo & bar. *) $ echo "foo & bar" | hxd.caml --with-comments -k array -c10 "/usr/bin/env" "bash" "-c" "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1 2024-06-17 19:55.42: Job failed: Failed: Build failed