Skip to content

Commit

Permalink
test: make test reproducible
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Marais <dev@maiste.fr>
  • Loading branch information
maiste committed Feb 5, 2025
1 parent e2ec89b commit 2182db3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/blackbox-tests/test-cases/pkg/pin-depends.t
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,10 @@ Pin to an HTTP archive work
> opam-version: "2.0"
> EOF
$ tar cf tarball.tar -C _source bar.opam
$ MD5_CHECKSUM=$(md5sum tarball.tar | cut -f1 -d' ')
$ echo tarball.tar > fake-curls
$ PORT=1
$ runtest "http://0.0.0.0:$PORT/tarball.tar"
$ runtest "http://0.0.0.0:$PORT/tarball.tar" > output
Solution for dune.lock:
- bar.1.0.0
(version 1.0.0)
(dev)
(source (fetch (url http://0.0.0.0:1/tarball.tgz) (checksum md5=ecfb12cd56789e48aaa4eef289c85c40))) (dev)
$ cat output | grep "md5=$MD5_CHECKSUM" 2>&1 > /dev/null

0 comments on commit 2182db3

Please sign in to comment.