This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
Test missing entries in the .install file
|
||||
|
||||
$ . ./helpers.sh
|
||||
|
||||
$ make_lockdir
|
||||
$ lockfile() {
|
||||
> cat >dune.lock/test.pkg <<EOF
|
||||
> (version 0.0.1)
|
||||
> (build
|
||||
> (system "echo 'lib: [ \"$1\" ]' > test.install"))
|
||||
> EOF
|
||||
> }
|
||||
|
||||
This should give us a proper error that myfile wasn't generated
|
||||
|
||||
$ lockfile "myfile"
|
||||
$ build_pkg test 2>&1 | sed 's#_build.*_private#$ROOT/_private#'
|
||||
Error: entry
|
||||
$ROOT/_private/default/.pkg/test/source/myfile
|
||||
in
|
||||
$ROOT/_private/default/.pkg/test/source/test.install
|
||||
does not exist
|
||||
-> required by $ROOT/_private/default/.pkg/test/target
|
||||
|
||||
This on the other hand shouldn't error because myfile is optional
|
||||
|
||||
$ lockfile "?myfile"
|
||||
$ build_pkg test
|
||||
Loading…
Add table
Add a link
Reference in a new issue