From 681e4f23677ef44817d280e7a694ec69c3954213 Mon Sep 17 00:00:00 2001 From: Calascibetta Romain Date: Tue, 29 Oct 2024 11:03:44 +0100 Subject: [PATCH] Add expected EOF on cram tests (otherwise, tests fails on Archlinux) --- test/fold.t | 2 ++ test/fold2.t | 1 + test/simple.t | 3 +++ 3 files changed, 6 insertions(+) diff --git a/test/fold.t b/test/fold.t index cf67cb3..d6da500 100644 --- a/test/fold.t +++ b/test/fold.t @@ -11,12 +11,14 @@ Batch operation > exists /bar > quit > quit + > EOF /bar exists as a value $ mgit git://localhost/simple#main < list / > get /bar > get /foo > quit + > EOF - /bar - /foo 00000000: 4769 7420 726f 636b 7321 Git rocks! diff --git a/test/fold2.t b/test/fold2.t index 932de0a..b96663a 100644 --- a/test/fold2.t +++ b/test/fold2.t @@ -9,6 +9,7 @@ Reading during batch operation > get /bar > quit > quit + > EOF - /bar 00000000: 4769 7420 726f 636b 7321 Git rocks! $ cd simple diff --git a/test/simple.t b/test/simple.t index ff2c22e..8cf6147 100644 --- a/test/simple.t +++ b/test/simple.t @@ -17,6 +17,7 @@ Simple test of our Git Key-Value store > get /foo > save db.pack > quit + > EOF 00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!. $ tail -c20 db.pack | hxd.xxd 00000000: e4b2 3437 2e7e 3d7e 8508 3912 3d87 11cd ..47.~=~..9.=... @@ -24,6 +25,7 @@ Simple test of our Git Key-Value store $ mgit git://localhost/simple db.pack < get /foo > quit + > EOF 00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!. $ cd simple $ echo "Git rocks!" > bar @@ -35,6 +37,7 @@ Simple test of our Git Key-Value store > get /bar > get /foo > quit + > EOF + /bar * / 00000000: 4769 7420 726f 636b 7321 0a Git rocks!.