aboutsummaryrefslogtreecommitdiff
path: root/test/testfiles
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2016-11-03 18:16:02 -0200
committerGitHub <noreply@github.com>2016-11-03 18:16:02 -0200
commitbfab09559cdbbc7e163490129ac7d3c4060b905d (patch)
treeb2cb4e9eda30c0ccabad972393dd4435e6ed9573 /test/testfiles
parent9822682e68b252b049e2fa6ef9d052d7ac739378 (diff)
parentcee2d3abfc1c06f382787d7bf7d2110a52ca0e76 (diff)
downloadluarocks-bfab09559cdbbc7e163490129ac7d3c4060b905d.tar.gz
luarocks-bfab09559cdbbc7e163490129ac7d3c4060b905d.tar.bz2
luarocks-bfab09559cdbbc7e163490129ac7d3c4060b905d.zip
Merge pull request #644 from mpeterv/fix-conflict-resolve
Fix conflict resolution on deploy/remove w.r.t. C/Lua modules with same name
Diffstat (limited to 'test/testfiles')
-rw-r--r--test/testfiles/mixed_deploy_type/mdt.c6
-rw-r--r--test/testfiles/mixed_deploy_type/mdt.lua1
-rw-r--r--test/testfiles/mixed_deploy_type/mdt_file1
-rw-r--r--test/testfiles/mixed_deploy_type/mixed_deploy_type-0.1.0-1.rockspec21
-rw-r--r--test/testfiles/mixed_deploy_type/mixed_deploy_type-0.2.0-1.rockspec21
5 files changed, 50 insertions, 0 deletions
diff --git a/test/testfiles/mixed_deploy_type/mdt.c b/test/testfiles/mixed_deploy_type/mdt.c
new file mode 100644
index 00000000..a162ce23
--- /dev/null
+++ b/test/testfiles/mixed_deploy_type/mdt.c
@@ -0,0 +1,6 @@
1#include "lua.h"
2
3int luaopen_mdt(lua_State *L) {
4 lua_pushstring(L, "mdt.c");
5 return 1;
6}
diff --git a/test/testfiles/mixed_deploy_type/mdt.lua b/test/testfiles/mixed_deploy_type/mdt.lua
new file mode 100644
index 00000000..c9ca9c68
--- /dev/null
+++ b/test/testfiles/mixed_deploy_type/mdt.lua
@@ -0,0 +1 @@
return "mdt.lua"
diff --git a/test/testfiles/mixed_deploy_type/mdt_file b/test/testfiles/mixed_deploy_type/mdt_file
new file mode 100644
index 00000000..1a15f7d7
--- /dev/null
+++ b/test/testfiles/mixed_deploy_type/mdt_file
@@ -0,0 +1 @@
return "mdt_file"
diff --git a/test/testfiles/mixed_deploy_type/mixed_deploy_type-0.1.0-1.rockspec b/test/testfiles/mixed_deploy_type/mixed_deploy_type-0.1.0-1.rockspec
new file mode 100644
index 00000000..91b725da
--- /dev/null
+++ b/test/testfiles/mixed_deploy_type/mixed_deploy_type-0.1.0-1.rockspec
@@ -0,0 +1,21 @@
1package = "mixed_deploy_type"
2version = "0.1.0-1"
3source = {
4 url = "http://example.com"
5}
6description = {
7 homepage = "http://example.com",
8 license = "*** please specify a license ***"
9}
10dependencies = {}
11build = {
12 type = "builtin",
13 modules = {
14 mdt = "mdt/mdt.lua"
15 },
16 install = {
17 lua = {
18 mdt_file = "mdt/mdt_file"
19 }
20 }
21}
diff --git a/test/testfiles/mixed_deploy_type/mixed_deploy_type-0.2.0-1.rockspec b/test/testfiles/mixed_deploy_type/mixed_deploy_type-0.2.0-1.rockspec
new file mode 100644
index 00000000..9ca03180
--- /dev/null
+++ b/test/testfiles/mixed_deploy_type/mixed_deploy_type-0.2.0-1.rockspec
@@ -0,0 +1,21 @@
1package = "mixed_deploy_type"
2version = "0.2.0-1"
3source = {
4 url = "http://example.com"
5}
6description = {
7 homepage = "http://example.com",
8 license = "*** please specify a license ***"
9}
10dependencies = {}
11build = {
12 type = "builtin",
13 modules = {
14 mdt = "mdt/mdt.c"
15 },
16 install = {
17 lib = {
18 mdt_file = "mdt/mdt_file"
19 }
20 }
21}