aboutsummaryrefslogtreecommitdiff
path: root/spec/fixtures/a_repo
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-02 13:12:17 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-11 14:38:06 -0300
commitfa3f92059c51cbcdf26df9a010f5eadd11a9567d (patch)
treeb5d63cef8464be6cd98d33575f6fa6220413f87a /spec/fixtures/a_repo
parent4941a48407f08544c5517542ffc11b0c26fd4236 (diff)
downloadluarocks-fa3f92059c51cbcdf26df9a010f5eadd11a9567d.tar.gz
luarocks-fa3f92059c51cbcdf26df9a010f5eadd11a9567d.tar.bz2
luarocks-fa3f92059c51cbcdf26df9a010f5eadd11a9567d.zip
Tests: add test for namespaced install
Diffstat (limited to 'spec/fixtures/a_repo')
-rw-r--r--spec/fixtures/a_repo/a_rock-1.0-1.rockspec17
-rw-r--r--spec/fixtures/a_repo/a_rock-1.0-1.src.rockbin0 -> 446 bytes
-rw-r--r--spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.rockspec19
-rw-r--r--spec/fixtures/a_repo/has_another_namespaced_dep-1.0-1.src.rockbin0 -> 603 bytes
-rw-r--r--spec/fixtures/a_repo/has_namespaced_dep-1.0-1.rockspec19
-rw-r--r--spec/fixtures/a_repo/has_namespaced_dep-1.0-1.src.rockbin0 -> 580 bytes
-rw-r--r--spec/fixtures/a_repo/manifest14
-rw-r--r--spec/fixtures/a_repo/manifest-5.114
-rw-r--r--spec/fixtures/a_repo/manifest-5.214
-rw-r--r--spec/fixtures/a_repo/manifest-5.314
-rw-r--r--spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.rockspec17
-rw-r--r--spec/fixtures/a_repo/manifests/a_user/a_rock-2.0-1.src.rockbin0 -> 446 bytes
-rw-r--r--spec/fixtures/a_repo/manifests/a_user/manifest14
-rw-r--r--spec/fixtures/a_repo/manifests/a_user/manifest-5.114
-rw-r--r--spec/fixtures/a_repo/manifests/a_user/manifest-5.214
-rw-r--r--spec/fixtures/a_repo/manifests/a_user/manifest-5.314
-rw-r--r--spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.rockspec17
-rw-r--r--spec/fixtures/a_repo/manifests/another_user/a_rock-3.0-1.src.rockbin0 -> 449 bytes
-rw-r--r--spec/fixtures/a_repo/manifests/another_user/manifest14
-rw-r--r--spec/fixtures/a_repo/manifests/another_user/manifest-5.114
-rw-r--r--spec/fixtures/a_repo/manifests/another_user/manifest-5.214
-rw-r--r--spec/fixtures/a_repo/manifests/another_user/manifest-5.314
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 @@
1package = "a_rock"
2version = "1.0-1"
3source = {
4 url = "http://localhost:8080/file/a_rock.lua"
5}
6description = {
7 summary = "An example rockspec",
8}
9dependencies = {
10 "lua >= 5.1"
11}
12build = {
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 @@
1rockspec_format = "3.0"
2package = "has_another_namespaced_dep"
3version = "1.0-1"
4source = {
5 url = "http://localhost:8080/file/a_rock.lua"
6}
7description = {
8 summary = "An example rockspec",
9}
10dependencies = {
11 "another_user/a_rock",
12 "lua >= 5.1",
13}
14build = {
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 @@
1rockspec_format = "3.0"
2package = "has_namespaced_dep"
3version = "1.0-1"
4source = {
5 url = "http://localhost:8080/file/a_rock.lua"
6}
7description = {
8 summary = "An example rockspec",
9}
10dependencies = {
11 "a_user/a_rock",
12 "lua >= 5.1",
13}
14build = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1package = "a_rock"
2version = "2.0-1"
3source = {
4 url = "http://localhost:8080/file/a_rock.lua"
5}
6description = {
7 summary = "An example rockspec",
8}
9dependencies = {
10 "lua >= 5.1"
11}
12build = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1package = "a_rock"
2version = "3.0-1"
3source = {
4 url = "http://localhost:8080/file/a_rock.lua"
5}
6description = {
7 summary = "An example rockspec",
8}
9dependencies = {
10 "lua >= 5.1"
11}
12build = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
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 @@
1commands = {}
2modules = {}
3repository = {
4 a_rock = {
5 ["3.0-1"] = {
6 {
7 arch = "src"
8 },
9 {
10 arch = "rockspec"
11 }
12 }
13 }
14}