This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
This test checks that the files in the files/ directory inside a package in an opam
|
||||
repository are copied correctly to the dune.lock file.
|
||||
|
||||
$ . ./helpers.sh
|
||||
$ mkrepo
|
||||
|
||||
Make a package with a patch
|
||||
$ mkpkg with-patch <<EOF
|
||||
> EOF
|
||||
|
||||
$ fname1="foo.patch"
|
||||
$ fname2="dir/bar.patch"
|
||||
$ opam_repo="$mock_packages/with-patch/with-patch.0.0.1"
|
||||
$ mkdir -p $opam_repo/files/dir
|
||||
$ cat >$opam_repo/files/$fname1 <<EOF
|
||||
> foo
|
||||
> EOF
|
||||
$ cat >$opam_repo/files/$fname2 <<EOF
|
||||
> bar
|
||||
> EOF
|
||||
|
||||
$ solve with-patch
|
||||
Solution for dune.lock:
|
||||
- with-patch.0.0.1
|
||||
|
||||
We expect that the files in the files directory of the opam repository get copied to the
|
||||
lock file.
|
||||
|
||||
$ lock_dir="dune.lock/with-patch.files"
|
||||
$ [ -d $lock_dir ] && cat $lock_dir/$fname1
|
||||
foo
|
||||
$ [ -d $lock_dir ] && cat $lock_dir/$fname2
|
||||
bar
|
||||
Loading…
Add table
Add a link
Reference in a new issue