diff options
author | George Roman <george.roman.99@gmail.com> | 2018-06-18 18:57:47 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-21 23:33:00 -0300 |
commit | bdfe731a601f3d12ffafbf504c9b06d70d5aa819 (patch) | |
tree | b6b94d398ba01fb9345d05b55c0bf2a93801cb2a /spec/fixtures | |
parent | 48ae1d2e7705af6a7527ca61710fe18ccdb7d0b9 (diff) | |
download | luarocks-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.lua | 1 | ||||
-rw-r--r-- | spec/fixtures/c_module-1.0-1.rockspec | 11 | ||||
-rw-r--r-- | spec/fixtures/c_module.c | 9 | ||||
-rw-r--r-- | spec/fixtures/inconsistent_versions-1.0-1.rockspec | 8 | ||||
-rw-r--r-- | spec/fixtures/invalid_checksum-1.0-1.rockspec | 9 | ||||
-rw-r--r-- | spec/fixtures/invalid_rockspec_name.rockspec | 8 | ||||
-rw-r--r-- | spec/fixtures/invalid_rockspec_version-1.0-1.rockspec | 9 | ||||
-rw-r--r-- | spec/fixtures/invalid_url-1.0-1.rockspec | 8 | ||||
-rw-r--r-- | spec/fixtures/missing_external-0.1-1.rockspec | 24 | ||||
-rw-r--r-- | spec/fixtures/missing_mandatory_field-1.0-1.rockspec | 5 | ||||
-rw-r--r-- | spec/fixtures/no_build_table-0.1-1.rockspec | 12 | ||||
-rw-r--r-- | spec/fixtures/not_a_zipfile-1.0-1.src.rock | 1 | ||||
-rw-r--r-- | spec/fixtures/type_mismatch_string-1.0-1.rockspec | 4 | ||||
-rw-r--r-- | spec/fixtures/type_mismatch_table-1.0-1.rockspec | 5 | ||||
-rw-r--r-- | spec/fixtures/type_mismatch_version-1.0-1.rockspec | 4 | ||||
-rw-r--r-- | spec/fixtures/unknown_field-1.0-1.rockspec | 6 |
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 @@ | |||
1 | return {} | ||
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 @@ | |||
1 | package = "c_module" | ||
2 | version = "1.0-1" | ||
3 | source = { | ||
4 | url = "http://example.com/c_module" | ||
5 | } | ||
6 | build = { | ||
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 | |||
4 | int 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 @@ | |||
1 | package="inconsistent_versions" | ||
2 | version="1.0-2" | ||
3 | source = { | ||
4 | url = "http://example.com/foo.tar.gz" | ||
5 | } | ||
6 | build = { | ||
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 @@ | |||
1 | package="invalid_checksum" | ||
2 | version="1.0-1" | ||
3 | source = { | ||
4 | url = "http://localhost:8080/file/a_rock.lua", | ||
5 | md5 = "invalid" | ||
6 | } | ||
7 | build = { | ||
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 @@ | |||
1 | package="invalid_rockspec_name" | ||
2 | version="1.0-1" | ||
3 | source = { | ||
4 | url = "http://example.com/foo.tar.gz" | ||
5 | } | ||
6 | build = { | ||
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 @@ | |||
1 | rockspec_format="3.1" | ||
2 | package="invalid_rockspec_version" | ||
3 | version="1.0-1" | ||
4 | source = { | ||
5 | url = "http://example.com/foo.tar.gz" | ||
6 | } | ||
7 | build = { | ||
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 @@ | |||
1 | package="invalid_url" | ||
2 | version="1.0-1" | ||
3 | source = { | ||
4 | url = "http://localhost:8080/file/nonexistent" | ||
5 | } | ||
6 | build = { | ||
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 @@ | |||
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 | } | ||
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 @@ | |||
1 | package="missing_mandatory_field" | ||
2 | version="1.0-1" | ||
3 | source = { | ||
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 @@ | |||
1 | package = "no_build_table" | ||
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 = "A rockspec with no build field", | ||
9 | } | ||
10 | dependencies = { | ||
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 @@ | |||
1 | I 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 | |||
2 | package="type_mismatch_version" | ||
3 | version=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 | |||
2 | package="type_mismatch_table" | ||
3 | version="1.0-1" | ||
4 | |||
5 | source = "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 | |||
2 | package="type_mismatch_version" | ||
3 | version="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 @@ | |||
1 | package="unknown_field" | ||
2 | version="1.0-1" | ||
3 | source = { | ||
4 | url = "http://example.com/foo.tar.gz" | ||
5 | } | ||
6 | unknown="foo" | ||