diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-02 13:12:17 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-11 14:38:06 -0300 |
commit | fa3f92059c51cbcdf26df9a010f5eadd11a9567d (patch) | |
tree | b5d63cef8464be6cd98d33575f6fa6220413f87a /spec/fixtures | |
parent | 4941a48407f08544c5517542ffc11b0c26fd4236 (diff) | |
download | luarocks-fa3f92059c51cbcdf26df9a010f5eadd11a9567d.tar.gz luarocks-fa3f92059c51cbcdf26df9a010f5eadd11a9567d.tar.bz2 luarocks-fa3f92059c51cbcdf26df9a010f5eadd11a9567d.zip |
Tests: add test for namespaced install
Diffstat (limited to 'spec/fixtures')
22 files changed, 257 insertions, 0 deletions
diff --git a/spec/fixtures/a_repo/a_rock-1.0-1.rockspec b/spec/fixtures/a_repo/a_rock-1.0-1.rockspec new file mode 100644 index 00000000..9f15e87a --- /dev/null +++ b/spec/fixtures/a_repo/a_rock-1.0-1.rockspec | |||
@@ -0,0 +1,17 @@ | |||
1 | package = "a_rock" | ||
2 | version = "1.0-1" | ||
3 | source = { | ||
4 | url = "http://localhost:8080/file/a_rock.lua" | ||
5 | } | ||
6 | description = { | ||
7 | summary = "An example rockspec", | ||
8 | } | ||
9 | dependencies = { | ||
10 | "lua >= 5.1" | ||
11 | } | ||
12 | build = { | ||
13 | type = "builtin", | ||
14 | modules = { | ||
15 | build = "a_rock.lua" | ||
16 | }, | ||
17 | } | ||
diff --git a/spec/fixtures/a_repo/a_rock-1.0-1.src.rock b/spec/fixtures/a_repo/a_rock-1.0-1.src.rock new file mode 100644 index 00000000..9d0bb455 --- /dev/null +++ b/spec/fixtures/a_repo/a_rock-1.0-1.src.rock | |||
Binary files differ | |||
diff --git a/spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.rockspec b/spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.rockspec new file mode 100644 index 00000000..04cb06cf --- /dev/null +++ b/spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.rockspec | |||
@@ -0,0 +1,19 @@ | |||
1 | rockspec_format = "3.0" | ||
2 | package = "has_another_namespaced_dep" | ||
3 | version = "1.0-1" | ||
4 | source = { | ||
5 | url = "http://localhost:8080/file/a_rock.lua" | ||
6 | } | ||
7 | description = { | ||
8 | summary = "An example rockspec", | ||
9 | } | ||
10 | dependencies = { | ||
11 | "another_user/a_rock", | ||
12 | "lua >= 5.1", | ||
13 | } | ||
14 | build = { | ||
15 | type = "builtin", | ||
16 | modules = { | ||
17 | bla = "a_rock.lua" | ||
18 | }, | ||
19 | } | ||
diff --git a/spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.src.rock b/spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.src.rock new file mode 100644 index 00000000..4bbbf1a6 --- /dev/null +++ b/spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.src.rock | |||
Binary files differ | |||
diff --git a/spec/fixtures/a_repo/has_namespaced_dep-1.0-1.rockspec b/spec/fixtures/a_repo/has_namespaced_dep-1.0-1.rockspec new file mode 100644 index 00000000..6152c78d --- /dev/null +++ b/spec/fixtures/a_repo/has_namespaced_dep-1.0-1.rockspec | |||
@@ -0,0 +1,19 @@ | |||
1 | rockspec_format = "3.0" | ||
2 | package = "has_namespaced_dep" | ||
3 | version = "1.0-1" | ||
4 | source = { | ||
5 | url = "http://localhost:8080/file/a_rock.lua" | ||
6 | } | ||
7 | description = { | ||
8 | summary = "An example rockspec", | ||
9 | } | ||
10 | dependencies = { | ||
11 | "a_user/a_rock", | ||
12 | "lua >= 5.1", | ||
13 | } | ||
14 | build = { | ||
15 | type = "builtin", | ||
16 | modules = { | ||
17 | bla = "a_rock.lua" | ||
18 | }, | ||
19 | } | ||
diff --git a/spec/fixtures/a_repo/has_namespaced_dep-1.0-1.src.rock b/spec/fixtures/a_repo/has_namespaced_dep-1.0-1.src.rock new file mode 100644 index 00000000..c4d5f94a --- /dev/null +++ b/spec/fixtures/a_repo/has_namespaced_dep-1.0-1.src.rock | |||
Binary files differ | |||
diff --git a/spec/fixtures/a_repo/manifest b/spec/fixtures/a_repo/manifest new file mode 100644 index 00000000..ea198207 --- /dev/null +++ b/spec/fixtures/a_repo/manifest | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["1.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifest-5.1 b/spec/fixtures/a_repo/manifest-5.1 new file mode 100644 index 00000000..ea198207 --- /dev/null +++ b/spec/fixtures/a_repo/manifest-5.1 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["1.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifest-5.2 b/spec/fixtures/a_repo/manifest-5.2 new file mode 100644 index 00000000..ea198207 --- /dev/null +++ b/spec/fixtures/a_repo/manifest-5.2 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["1.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifest-5.3 b/spec/fixtures/a_repo/manifest-5.3 new file mode 100644 index 00000000..ea198207 --- /dev/null +++ b/spec/fixtures/a_repo/manifest-5.3 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["1.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.rockspec b/spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.rockspec new file mode 100644 index 00000000..da5a9a10 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.rockspec | |||
@@ -0,0 +1,17 @@ | |||
1 | package = "a_rock" | ||
2 | version = "2.0-1" | ||
3 | source = { | ||
4 | url = "http://localhost:8080/file/a_rock.lua" | ||
5 | } | ||
6 | description = { | ||
7 | summary = "An example rockspec", | ||
8 | } | ||
9 | dependencies = { | ||
10 | "lua >= 5.1" | ||
11 | } | ||
12 | build = { | ||
13 | type = "builtin", | ||
14 | modules = { | ||
15 | build = "a_rock.lua" | ||
16 | }, | ||
17 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.src.rock b/spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.src.rock new file mode 100644 index 00000000..8d10fac1 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.src.rock | |||
Binary files differ | |||
diff --git a/spec/fixtures/a_repo/manifests/a_user/manifest b/spec/fixtures/a_repo/manifests/a_user/manifest new file mode 100644 index 00000000..74b0c618 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/a_user/manifest | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["2.0-1"] = { | ||
6 | { | ||
7 | arch = "rockspec" | ||
8 | }, | ||
9 | { | ||
10 | arch = "src" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/a_user/manifest-5.1 b/spec/fixtures/a_repo/manifests/a_user/manifest-5.1 new file mode 100644 index 00000000..74b0c618 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/a_user/manifest-5.1 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["2.0-1"] = { | ||
6 | { | ||
7 | arch = "rockspec" | ||
8 | }, | ||
9 | { | ||
10 | arch = "src" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/a_user/manifest-5.2 b/spec/fixtures/a_repo/manifests/a_user/manifest-5.2 new file mode 100644 index 00000000..74b0c618 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/a_user/manifest-5.2 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["2.0-1"] = { | ||
6 | { | ||
7 | arch = "rockspec" | ||
8 | }, | ||
9 | { | ||
10 | arch = "src" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/a_user/manifest-5.3 b/spec/fixtures/a_repo/manifests/a_user/manifest-5.3 new file mode 100644 index 00000000..74b0c618 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/a_user/manifest-5.3 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["2.0-1"] = { | ||
6 | { | ||
7 | arch = "rockspec" | ||
8 | }, | ||
9 | { | ||
10 | arch = "src" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.rockspec b/spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.rockspec new file mode 100644 index 00000000..628c5a43 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.rockspec | |||
@@ -0,0 +1,17 @@ | |||
1 | package = "a_rock" | ||
2 | version = "3.0-1" | ||
3 | source = { | ||
4 | url = "http://localhost:8080/file/a_rock.lua" | ||
5 | } | ||
6 | description = { | ||
7 | summary = "An example rockspec", | ||
8 | } | ||
9 | dependencies = { | ||
10 | "lua >= 5.1" | ||
11 | } | ||
12 | build = { | ||
13 | type = "builtin", | ||
14 | modules = { | ||
15 | a_rock = "a_rock.lua" | ||
16 | }, | ||
17 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.src.rock b/spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.src.rock new file mode 100644 index 00000000..4c20afc4 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.src.rock | |||
Binary files differ | |||
diff --git a/spec/fixtures/a_repo/manifests/another_user/manifest b/spec/fixtures/a_repo/manifests/another_user/manifest new file mode 100644 index 00000000..185aed08 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/another_user/manifest | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["3.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/another_user/manifest-5.1 b/spec/fixtures/a_repo/manifests/another_user/manifest-5.1 new file mode 100644 index 00000000..185aed08 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/another_user/manifest-5.1 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["3.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/another_user/manifest-5.2 b/spec/fixtures/a_repo/manifests/another_user/manifest-5.2 new file mode 100644 index 00000000..185aed08 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/another_user/manifest-5.2 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["3.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
diff --git a/spec/fixtures/a_repo/manifests/another_user/manifest-5.3 b/spec/fixtures/a_repo/manifests/another_user/manifest-5.3 new file mode 100644 index 00000000..185aed08 --- /dev/null +++ b/spec/fixtures/a_repo/manifests/another_user/manifest-5.3 | |||
@@ -0,0 +1,14 @@ | |||
1 | commands = {} | ||
2 | modules = {} | ||
3 | repository = { | ||
4 | a_rock = { | ||
5 | ["3.0-1"] = { | ||
6 | { | ||
7 | arch = "src" | ||
8 | }, | ||
9 | { | ||
10 | arch = "rockspec" | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||