Commit graph

17 commits

Author SHA1 Message Date
681e4f2367 Add expected EOF on cram tests (otherwise, tests fails on Archlinux) 2024-10-29 11:10:00 +01:00
931c0481d7 add task a task b task c test, and a fix 2024-10-29 10:44:49 +01:00
Robur Team
e91bd44cb8 Added tests for change_and_push and parallel modifications
Fixed last_modified (when running inside change_and_push),
and change_and_push.

Co-Authored-By: Reynir Björnsson <reynir@reynir.dk>
Co-Authored-By: Hannes Mehnert <hannes@mehnert.org>
2016-08-21 17:18:43 +02:00
b1e995532b add alcotest 2024-10-28 09:45:49 +01:00
f1c7403a7f minor nits to get tests running on FreeBSD 2024-10-26 17:34:04 +02:00
4f93219f1d Read staged files 2024-10-25 13:03:30 +02:00
65f850cf44 Refactor test/dune and add a failing test
The failing test shows how writes during a change_and_push are not
readable.
2024-10-25 11:47:35 +02:00
23de401184 Remove broken (enabled_if ..) stanza 2024-10-25 11:40:21 +02:00
248a6cdde9 Partially fix tests
Since mgit is not a public executable it will not be present in $PATH -
so we must use %{exe:...} over %{bin:...}.

The fix is partial because the (enabled_if ...) stanza doesn't work
correctly for me at least.
2024-10-25 11:02:10 +02:00
cc70aeb3f1 Check if git-daemon exists and execute tests then 2022-11-02 15:46:53 +01:00
888605dd22 Fix the test with hxd's output 2022-11-01 17:03:32 +01:00
115f3a2f6b Use hxd.xxd instead of hexdump 2022-11-01 15:14:36 +01:00
2cfcb0a714 Rename batch to change_and_push (and implement batch as noop) 2022-10-31 18:13:15 +01:00
b5fa25d9a5 Implement the batch function according to the documentation
This implementation is much more close to the documentation & fold all
changes into one commit. Then, it pushes this commit remotely. This
commit deleted local changes which complexify the codebase for a
questionable interest. As the documentation said, any changes are
delayed and not directly "committed" until the end of the given
function. For instance:
> batch
> set /bar "Bar"
> exists /bar
/bar does not exists

is an expected behavior. Only after a quit (which delimit the end of the
batch process), /bar will be committed and will exist!
2022-10-29 21:18:10 +02:00
9fd76eeacf Fix tests, we use %S to print segments 2022-10-12 11:59:08 +02:00
ac32357910 use hexdump instead of base64 2022-09-27 16:45:34 +02:00
ccc29951c2 Finally, make the first PoC about git-state 2022-09-27 14:07:51 +02:00