aboutsummaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2018-06-18 18:57:47 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-06-21 23:33:00 -0300
commitbdfe731a601f3d12ffafbf504c9b06d70d5aa819 (patch)
treeb6b94d398ba01fb9345d05b55c0bf2a93801cb2a /spec/fixtures
parent48ae1d2e7705af6a7527ca61710fe18ccdb7d0b9 (diff)
downloadluarocks-bdfe731a601f3d12ffafbf504c9b06d70d5aa819.tar.gz
luarocks-bdfe731a601f3d12ffafbf504c9b06d70d5aa819.tar.bz2
luarocks-bdfe731a601f3d12ffafbf504c9b06d70d5aa819.zip
Tests: replace small fixture files with inline content
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/autodetect/bla.lua1
-rw-r--r--spec/fixtures/c_module-1.0-1.rockspec11
-rw-r--r--spec/fixtures/c_module.c9
-rw-r--r--spec/fixtures/inconsistent_versions-1.0-1.rockspec8
-rw-r--r--spec/fixtures/invalid_checksum-1.0-1.rockspec9
-rw-r--r--spec/fixtures/invalid_rockspec_name.rockspec8
-rw-r--r--spec/fixtures/invalid_rockspec_version-1.0-1.rockspec9
-rw-r--r--spec/fixtures/invalid_url-1.0-1.rockspec8
-rw-r--r--spec/fixtures/missing_external-0.1-1.rockspec24
-rw-r--r--spec/fixtures/missing_mandatory_field-1.0-1.rockspec5
-rw-r--r--spec/fixtures/no_build_table-0.1-1.rockspec12
-rw-r--r--spec/fixtures/not_a_zipfile-1.0-1.src.rock1
-rw-r--r--spec/fixtures/type_mismatch_string-1.0-1.rockspec4
-rw-r--r--spec/fixtures/type_mismatch_table-1.0-1.rockspec5
-rw-r--r--spec/fixtures/type_mismatch_version-1.0-1.rockspec4
-rw-r--r--spec/fixtures/unknown_field-1.0-1.rockspec6
16 files changed, 0 insertions, 124 deletions
diff --git a/spec/fixtures/autodetect/bla.lua b/spec/fixtures/autodetect/bla.lua
deleted file mode 100644
index a5647075..00000000
--- a/spec/fixtures/autodetect/bla.lua
+++ /dev/null
@@ -1 +0,0 @@
1return {}
diff --git a/spec/fixtures/c_module-1.0-1.rockspec b/spec/fixtures/c_module-1.0-1.rockspec
deleted file mode 100644
index 2913ecf6..00000000
--- a/spec/fixtures/c_module-1.0-1.rockspec
+++ /dev/null
@@ -1,11 +0,0 @@
1package = "c_module"
2version = "1.0-1"
3source = {
4 url = "http://example.com/c_module"
5}
6build = {
7 type = "builtin",
8 modules = {
9 c_module = { "c_module.c" }
10 }
11}
diff --git a/spec/fixtures/c_module.c b/spec/fixtures/c_module.c
deleted file mode 100644
index 4c27dda8..00000000
--- a/spec/fixtures/c_module.c
+++ /dev/null
@@ -1,9 +0,0 @@
1#include <lua.h>
2#include <lauxlib.h>
3
4int luaopen_c_module(lua_State* L) {
5 lua_newtable(L);
6 lua_pushinteger(L, 1);
7 lua_setfield(L, -2, "c_module");
8 return 1;
9}
diff --git a/spec/fixtures/inconsistent_versions-1.0-1.rockspec b/spec/fixtures/inconsistent_versions-1.0-1.rockspec
deleted file mode 100644
index c8c1eee2..00000000
--- a/spec/fixtures/inconsistent_versions-1.0-1.rockspec
+++ /dev/null
@@ -1,8 +0,0 @@
1package="inconsistent_versions"
2version="1.0-2"
3source = {
4 url = "http://example.com/foo.tar.gz"
5}
6build = {
7
8}
diff --git a/spec/fixtures/invalid_checksum-1.0-1.rockspec b/spec/fixtures/invalid_checksum-1.0-1.rockspec
deleted file mode 100644
index 256cb1fe..00000000
--- a/spec/fixtures/invalid_checksum-1.0-1.rockspec
+++ /dev/null
@@ -1,9 +0,0 @@
1package="invalid_checksum"
2version="1.0-1"
3source = {
4 url = "http://localhost:8080/file/a_rock.lua",
5 md5 = "invalid"
6}
7build = {
8
9}
diff --git a/spec/fixtures/invalid_rockspec_name.rockspec b/spec/fixtures/invalid_rockspec_name.rockspec
deleted file mode 100644
index ab70c75d..00000000
--- a/spec/fixtures/invalid_rockspec_name.rockspec
+++ /dev/null
@@ -1,8 +0,0 @@
1package="invalid_rockspec_name"
2version="1.0-1"
3source = {
4 url = "http://example.com/foo.tar.gz"
5}
6build = {
7
8}
diff --git a/spec/fixtures/invalid_rockspec_version-1.0-1.rockspec b/spec/fixtures/invalid_rockspec_version-1.0-1.rockspec
deleted file mode 100644
index f644b3d9..00000000
--- a/spec/fixtures/invalid_rockspec_version-1.0-1.rockspec
+++ /dev/null
@@ -1,9 +0,0 @@
1rockspec_format="3.1"
2package="invalid_rockspec_version"
3version="1.0-1"
4source = {
5 url = "http://example.com/foo.tar.gz"
6}
7build = {
8
9}
diff --git a/spec/fixtures/invalid_url-1.0-1.rockspec b/spec/fixtures/invalid_url-1.0-1.rockspec
deleted file mode 100644
index a74b0281..00000000
--- a/spec/fixtures/invalid_url-1.0-1.rockspec
+++ /dev/null
@@ -1,8 +0,0 @@
1package="invalid_url"
2version="1.0-1"
3source = {
4 url = "http://localhost:8080/file/nonexistent"
5}
6build = {
7
8}
diff --git a/spec/fixtures/missing_external-0.1-1.rockspec b/spec/fixtures/missing_external-0.1-1.rockspec
deleted file mode 100644
index 5f8e6219..00000000
--- a/spec/fixtures/missing_external-0.1-1.rockspec
+++ /dev/null
@@ -1,24 +0,0 @@
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}
diff --git a/spec/fixtures/missing_mandatory_field-1.0-1.rockspec b/spec/fixtures/missing_mandatory_field-1.0-1.rockspec
deleted file mode 100644
index 56dac987..00000000
--- a/spec/fixtures/missing_mandatory_field-1.0-1.rockspec
+++ /dev/null
@@ -1,5 +0,0 @@
1package="missing_mandatory_field"
2version="1.0-1"
3source = {
4 url = "http://example.com/foo.tar.gz"
5}
diff --git a/spec/fixtures/no_build_table-0.1-1.rockspec b/spec/fixtures/no_build_table-0.1-1.rockspec
deleted file mode 100644
index 5d79e9a0..00000000
--- a/spec/fixtures/no_build_table-0.1-1.rockspec
+++ /dev/null
@@ -1,12 +0,0 @@
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/spec/fixtures/not_a_zipfile-1.0-1.src.rock b/spec/fixtures/not_a_zipfile-1.0-1.src.rock
deleted file mode 100644
index e36f8bbe..00000000
--- a/spec/fixtures/not_a_zipfile-1.0-1.src.rock
+++ /dev/null
@@ -1 +0,0 @@
1I am not a .zip file!
diff --git a/spec/fixtures/type_mismatch_string-1.0-1.rockspec b/spec/fixtures/type_mismatch_string-1.0-1.rockspec
deleted file mode 100644
index 7a607cfd..00000000
--- a/spec/fixtures/type_mismatch_string-1.0-1.rockspec
+++ /dev/null
@@ -1,4 +0,0 @@
1
2package="type_mismatch_version"
3version=1.0
4
diff --git a/spec/fixtures/type_mismatch_table-1.0-1.rockspec b/spec/fixtures/type_mismatch_table-1.0-1.rockspec
deleted file mode 100644
index f348b798..00000000
--- a/spec/fixtures/type_mismatch_table-1.0-1.rockspec
+++ /dev/null
@@ -1,5 +0,0 @@
1
2package="type_mismatch_table"
3version="1.0-1"
4
5source = "not a table"
diff --git a/spec/fixtures/type_mismatch_version-1.0-1.rockspec b/spec/fixtures/type_mismatch_version-1.0-1.rockspec
deleted file mode 100644
index 5e30dae6..00000000
--- a/spec/fixtures/type_mismatch_version-1.0-1.rockspec
+++ /dev/null
@@ -1,4 +0,0 @@
1
2package="type_mismatch_version"
3version="1.0"
4
diff --git a/spec/fixtures/unknown_field-1.0-1.rockspec b/spec/fixtures/unknown_field-1.0-1.rockspec
deleted file mode 100644
index bcad2d53..00000000
--- a/spec/fixtures/unknown_field-1.0-1.rockspec
+++ /dev/null
@@ -1,6 +0,0 @@
1package="unknown_field"
2version="1.0-1"
3source = {
4 url = "http://example.com/foo.tar.gz"
5}
6unknown="foo"