diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2014-02-08 18:33:26 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-02-08 18:33:26 -0200 |
| commit | 916f3b9afecbe6033ac2f39700e60c1ed4e0edc4 (patch) | |
| tree | a535ee802b38e0039a011fdbdeb06cf450c5b9c7 /test/testfiles | |
| parent | e6ebf473e09afed69895e6501580fbc47bf13534 (diff) | |
| download | luarocks-916f3b9afecbe6033ac2f39700e60c1ed4e0edc4.tar.gz luarocks-916f3b9afecbe6033ac2f39700e60c1ed4e0edc4.tar.bz2 luarocks-916f3b9afecbe6033ac2f39700e60c1ed4e0edc4.zip | |
Add test for missing external deps. Improves coverage.
A bug was uncovered writing this!
Diffstat (limited to 'test/testfiles')
| -rw-r--r-- | test/testfiles/missing_external-0.1-1.rockspec | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/testfiles/missing_external-0.1-1.rockspec b/test/testfiles/missing_external-0.1-1.rockspec new file mode 100644 index 00000000..5f8e6219 --- /dev/null +++ b/test/testfiles/missing_external-0.1-1.rockspec | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | package = "missing_external" | ||
| 2 | version = "0.1-1" | ||
| 3 | source = { | ||
| 4 | -- any valid URL | ||
| 5 | url = "https://raw.github.com/keplerproject/luarocks/master/src/luarocks/build.lua" | ||
| 6 | } | ||
| 7 | description = { | ||
| 8 | summary = "Missing external dependency", | ||
| 9 | } | ||
| 10 | external_dependencies = { | ||
| 11 | INEXISTENT = { | ||
| 12 | library = "inexistentlib*", | ||
| 13 | header = "inexistentheader*.h", | ||
| 14 | } | ||
| 15 | } | ||
| 16 | dependencies = { | ||
| 17 | "lua >= 5.1" | ||
| 18 | } | ||
| 19 | build = { | ||
| 20 | type = "builtin", | ||
| 21 | modules = { | ||
| 22 | build = "build.lua" | ||
| 23 | } | ||
| 24 | } | ||
