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.
This commit is contained in:
Reynir Björnsson 2024-10-25 11:02:10 +02:00
parent 0318c4c35a
commit 248a6cdde9
3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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