diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-09-03 17:48:03 +0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-09-04 18:11:12 +0200 |
commit | b8abb27f98e3c674bd3bca4944a53d10a1a2025d (patch) | |
tree | d66cc0f63a0b82591e799a50fed2c99ecfd00863 /spec/fixtures | |
parent | c2fde487834c6d7505d7e803256e8764237d4476 (diff) | |
download | luarocks-b8abb27f98e3c674bd3bca4944a53d10a1a2025d.tar.gz luarocks-b8abb27f98e3c674bd3bca4944a53d10a1a2025d.tar.bz2 luarocks-b8abb27f98e3c674bd3bca4944a53d10a1a2025d.zip |
Tests: add test cases for rocks with conflicting module names
This tests the behavior of upgrades and downgrades on rocks that deploy both
foo.lua and foo.so
Diffstat (limited to 'spec/fixtures')
6 files changed, 53 insertions, 0 deletions
diff --git a/spec/fixtures/double_deploy_type/ddt.c b/spec/fixtures/double_deploy_type/ddt.c new file mode 100644 index 00000000..f9050a4a --- /dev/null +++ b/spec/fixtures/double_deploy_type/ddt.c | |||
@@ -0,0 +1,6 @@ | |||
1 | #include "lua.h" | ||
2 | |||
3 | int luaopen_ddt(lua_State *L) { | ||
4 | lua_pushstring(L, "ddt.c"); | ||
5 | return 1; | ||
6 | } | ||
diff --git a/spec/fixtures/double_deploy_type/ddt1.lua b/spec/fixtures/double_deploy_type/ddt1.lua new file mode 100644 index 00000000..ea1dafed --- /dev/null +++ b/spec/fixtures/double_deploy_type/ddt1.lua | |||
@@ -0,0 +1 @@ | |||
return "ddt1" | |||
diff --git a/spec/fixtures/double_deploy_type/ddt2.lua b/spec/fixtures/double_deploy_type/ddt2.lua new file mode 100644 index 00000000..b1fa5d78 --- /dev/null +++ b/spec/fixtures/double_deploy_type/ddt2.lua | |||
@@ -0,0 +1 @@ | |||
return "ddt2" | |||
diff --git a/spec/fixtures/double_deploy_type/ddt_file b/spec/fixtures/double_deploy_type/ddt_file new file mode 100644 index 00000000..988bbfb6 --- /dev/null +++ b/spec/fixtures/double_deploy_type/ddt_file | |||
@@ -0,0 +1 @@ | |||
return "ddt_file" | |||
diff --git a/spec/fixtures/double_deploy_type/double_deploy_type-0.1.0-1.rockspec b/spec/fixtures/double_deploy_type/double_deploy_type-0.1.0-1.rockspec new file mode 100644 index 00000000..ff13df03 --- /dev/null +++ b/spec/fixtures/double_deploy_type/double_deploy_type-0.1.0-1.rockspec | |||
@@ -0,0 +1,22 @@ | |||
1 | package = "double_deploy_type" | ||
2 | version = "0.1.0-1" | ||
3 | source = { | ||
4 | url = "http://example.com" | ||
5 | } | ||
6 | description = { | ||
7 | homepage = "http://example.com", | ||
8 | license = "*** please specify a license ***" | ||
9 | } | ||
10 | dependencies = {} | ||
11 | build = { | ||
12 | type = "builtin", | ||
13 | modules = { | ||
14 | ddt = "ddt/ddt.c" | ||
15 | }, | ||
16 | install = { | ||
17 | lua = { | ||
18 | ddt = "ddt/ddt1.lua", | ||
19 | ddt_file = "ddt/ddt_file", | ||
20 | } | ||
21 | } | ||
22 | } | ||
diff --git a/spec/fixtures/double_deploy_type/double_deploy_type-0.2.0-1.rockspec b/spec/fixtures/double_deploy_type/double_deploy_type-0.2.0-1.rockspec new file mode 100644 index 00000000..15f0c15c --- /dev/null +++ b/spec/fixtures/double_deploy_type/double_deploy_type-0.2.0-1.rockspec | |||
@@ -0,0 +1,22 @@ | |||
1 | package = "double_deploy_type" | ||
2 | version = "0.2.0-1" | ||
3 | source = { | ||
4 | url = "http://example.com" | ||
5 | } | ||
6 | description = { | ||
7 | homepage = "http://example.com", | ||
8 | license = "*** please specify a license ***" | ||
9 | } | ||
10 | dependencies = {} | ||
11 | build = { | ||
12 | type = "builtin", | ||
13 | modules = { | ||
14 | ddt = "ddt/ddt.c" | ||
15 | }, | ||
16 | install = { | ||
17 | lua = { | ||
18 | ddt = "ddt/ddt2.lua", | ||
19 | ddt_file = "ddt/ddt_file", | ||
20 | } | ||
21 | } | ||
22 | } | ||