Refactor test/dune and add a failing test #2
3 changed files with 6 additions and 0 deletions
|
@ -11,12 +11,14 @@ Batch operation
|
||||||
> exists /bar
|
> exists /bar
|
||||||
> quit
|
> quit
|
||||||
> quit
|
> quit
|
||||||
|
> EOF
|
||||||
/bar exists as a value
|
/bar exists as a value
|
||||||
$ mgit git://localhost/simple#main <<EOF
|
$ mgit git://localhost/simple#main <<EOF
|
||||||
> list /
|
> list /
|
||||||
> get /bar
|
> get /bar
|
||||||
> get /foo
|
> get /foo
|
||||||
> quit
|
> quit
|
||||||
|
> EOF
|
||||||
- /bar
|
- /bar
|
||||||
- /foo
|
- /foo
|
||||||
00000000: 4769 7420 726f 636b 7321 Git rocks!
|
00000000: 4769 7420 726f 636b 7321 Git rocks!
|
||||||
|
|
|
@ -9,6 +9,7 @@ Reading during batch operation
|
||||||
> get /bar
|
> get /bar
|
||||||
> quit
|
> quit
|
||||||
> quit
|
> quit
|
||||||
|
> EOF
|
||||||
- /bar
|
- /bar
|
||||||
00000000: 4769 7420 726f 636b 7321 Git rocks!
|
00000000: 4769 7420 726f 636b 7321 Git rocks!
|
||||||
$ cd simple
|
$ cd simple
|
||||||
|
|
|
@ -17,6 +17,7 @@ Simple test of our Git Key-Value store
|
||||||
> get /foo
|
> get /foo
|
||||||
> save db.pack
|
> save db.pack
|
||||||
> quit
|
> quit
|
||||||
|
> EOF
|
||||||
00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!.
|
00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!.
|
||||||
$ tail -c20 db.pack | hxd.xxd
|
$ tail -c20 db.pack | hxd.xxd
|
||||||
00000000: e4b2 3437 2e7e 3d7e 8508 3912 3d87 11cd ..47.~=~..9.=...
|
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 <<EOF
|
$ mgit git://localhost/simple db.pack <<EOF
|
||||||
> get /foo
|
> get /foo
|
||||||
> quit
|
> quit
|
||||||
|
> EOF
|
||||||
00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!.
|
00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!.
|
||||||
$ cd simple
|
$ cd simple
|
||||||
$ echo "Git rocks!" > bar
|
$ echo "Git rocks!" > bar
|
||||||
|
@ -35,6 +37,7 @@ Simple test of our Git Key-Value store
|
||||||
> get /bar
|
> get /bar
|
||||||
> get /foo
|
> get /foo
|
||||||
> quit
|
> quit
|
||||||
|
> EOF
|
||||||
+ /bar
|
+ /bar
|
||||||
* /
|
* /
|
||||||
00000000: 4769 7420 726f 636b 7321 0a Git rocks!.
|
00000000: 4769 7420 726f 636b 7321 0a Git rocks!.
|
||||||
|
|
Loading…
Reference in a new issue