Compare commits

..

3 commits

Author SHA1 Message Date
492f57f850 Merge pull request 'Partially fix tests' (!1) from fix-test into main
Reviewed-on: #1
2024-10-25 09:42:28 +00: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
3 changed files with 6 additions and 8 deletions

View file

@ -2,15 +2,13 @@
(package git-kv) (package git-kv)
(applies_to simple) (applies_to simple)
(locks p9418) (locks p9418)
(enabled_if (= "true" {%read:git-daemon})) (deps %{exe:../app/mgit.exe}))
(deps %{bin:mgit}))
(cram (cram
(package git-kv) (package git-kv)
(applies_to fold) (applies_to fold)
(locks p9418) (locks p9418)
(enabled_if (= "true" {%read:git-daemon})) (deps %{exe:../app/mgit.exe}))
(deps %{bin:mgit}))
(executable (executable
(name git_daemon_exists) (name git_daemon_exists)

View file

@ -11,14 +11,14 @@ Batch operation
> exists /bar > exists /bar
> quit > quit
> quit > quit
/"bar" does not exists /bar does not exists
$ mgit git://localhost/simple#main <<EOF $ mgit git://localhost/simple#main <<EOF
> list / > list /
> get /bar > get /bar
> get /foo > get /foo
> quit > quit
- bar - /bar
- foo - /foo
00000000: 4769 7420 726f 636b 7321 Git rocks! 00000000: 4769 7420 726f 636b 7321 Git rocks!
00000000: 4865 6c6c 6f20 576f 726c 6421 Hello World! 00000000: 4865 6c6c 6f20 576f 726c 6421 Hello World!
$ cd simple $ cd simple

View file

@ -35,7 +35,7 @@ Simple test of our Git Key-Value store
> get /bar > get /bar
> get /foo > get /foo
> quit > quit
+ /"bar" + /bar
* / * /
00000000: 4769 7420 726f 636b 7321 0a Git rocks!. 00000000: 4769 7420 726f 636b 7321 0a Git rocks!.
00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!. 00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!.