aboutsummaryrefslogtreecommitdiff
path: root/test/testfiles
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-02-08 18:33:26 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-02-08 18:33:26 -0200
commit916f3b9afecbe6033ac2f39700e60c1ed4e0edc4 (patch)
treea535ee802b38e0039a011fdbdeb06cf450c5b9c7 /test/testfiles
parente6ebf473e09afed69895e6501580fbc47bf13534 (diff)
downloadluarocks-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.rockspec24
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 @@
1package = "missing_external"
2version = "0.1-1"
3source = {
4 -- any valid URL
5 url = "https://raw.github.com/keplerproject/luarocks/master/src/luarocks/build.lua"
6}
7description = {
8 summary = "Missing external dependency",
9}
10external_dependencies = {
11 INEXISTENT = {
12 library = "inexistentlib*",
13 header = "inexistentheader*.h",
14 }
15}
16dependencies = {
17 "lua >= 5.1"
18}
19build = {
20 type = "builtin",
21 modules = {
22 build = "build.lua"
23 }
24}