aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-06-24 15:15:33 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-06-24 15:15:33 -0300
commitca619eb7e29849c77783fdf3c7b0e2cfbe554629 (patch)
tree5cb16e58a7bbc00727f523b7e6f7ab69e8b81030 /test
parent8064e99d748e74194345617611c929dde2b69628 (diff)
parent8f7897c5851117d817d59a23353a61e047aee900 (diff)
downloadluarocks-ca619eb7e29849c77783fdf3c7b0e2cfbe554629.tar.gz
luarocks-ca619eb7e29849c77783fdf3c7b0e2cfbe554629.tar.bz2
luarocks-ca619eb7e29849c77783fdf3c7b0e2cfbe554629.zip
Merge pull request #394 from ignacio/build_mandatory
Make 'build' field in rockspecs mandatory.
Diffstat (limited to 'test')
-rw-r--r--test/testfiles/no_build_table-0.1-1.rockspec12
-rw-r--r--test/testing.lua1
-rwxr-xr-xtest/testing.sh1
3 files changed, 14 insertions, 0 deletions
diff --git a/test/testfiles/no_build_table-0.1-1.rockspec b/test/testfiles/no_build_table-0.1-1.rockspec
new file mode 100644
index 00000000..5d79e9a0
--- /dev/null
+++ b/test/testfiles/no_build_table-0.1-1.rockspec
@@ -0,0 +1,12 @@
1package = "no_build_table"
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 = "A rockspec with no build field",
9}
10dependencies = {
11 "lua >= 5.1"
12}
diff --git a/test/testing.lua b/test/testing.lua
index 86f3ab34..44c6f098 100644
--- a/test/testing.lua
+++ b/test/testing.lua
@@ -203,6 +203,7 @@ local tests = {
203 fail_lint_type_mismatch_string = function() return run '$luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"' end, 203 fail_lint_type_mismatch_string = function() return run '$luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"' end,
204 fail_lint_type_mismatch_version = function() return run '$luarocks lint "$testing_dir/testfiles/type_mismatch_version-1.0-1.rockspec"' end, 204 fail_lint_type_mismatch_version = function() return run '$luarocks lint "$testing_dir/testfiles/type_mismatch_version-1.0-1.rockspec"' end,
205 fail_lint_type_mismatch_table = function() return run '$luarocks lint "$testing_dir/testfiles/type_mismatch_table-1.0-1.rockspec"' end, 205 fail_lint_type_mismatch_table = function() return run '$luarocks lint "$testing_dir/testfiles/type_mismatch_table-1.0-1.rockspec"' end,
206 fail_lint_no_build_table = function() return run '$luarocks lint "$testing_dir/testfiles/no_build_table-0.1-1.rockspec"' end,
206 test_list = function() return run "$luarocks list" end, 207 test_list = function() return run "$luarocks list" end,
207 test_list_porcelain = function() return run "$luarocks list --porcelain" end, 208 test_list_porcelain = function() return run "$luarocks list --porcelain" end,
208 test_make_with_rockspec = function() 209 test_make_with_rockspec = function()
diff --git a/test/testing.sh b/test/testing.sh
index 8d972d4c..4338e48f 100755
--- a/test/testing.sh
+++ b/test/testing.sh
@@ -419,6 +419,7 @@ test_lint_ok() { $luarocks download --rockspec validate-args ${verrev_validate_a
419fail_lint_type_mismatch_string() { $luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"; } 419fail_lint_type_mismatch_string() { $luarocks lint "$testing_dir/testfiles/type_mismatch_string-1.0-1.rockspec"; }
420fail_lint_type_mismatch_version() { $luarocks lint "$testing_dir/testfiles/type_mismatch_version-1.0-1.rockspec"; } 420fail_lint_type_mismatch_version() { $luarocks lint "$testing_dir/testfiles/type_mismatch_version-1.0-1.rockspec"; }
421fail_lint_type_mismatch_table() { $luarocks lint "$testing_dir/testfiles/type_mismatch_table-1.0-1.rockspec"; } 421fail_lint_type_mismatch_table() { $luarocks lint "$testing_dir/testfiles/type_mismatch_table-1.0-1.rockspec"; }
422fail_lint_no_build_table() { $luarocks lint "$testing_dir/testfiles/no_build_table-0.1-1.rockspec"; }
422 423
423test_list() { $luarocks list; } 424test_list() { $luarocks list; }
424test_list_porcelain() { $luarocks list --porcelain; } 425test_list_porcelain() { $luarocks list --porcelain; }