From 933386b16d944eac3f93100886b03c3ae745b802 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Tue, 1 Nov 2016 22:19:38 +0300 Subject: Add a test for conflict resolution with mixed deploy types --- test/testfiles/mixed_deploy_type/mdt.c | 6 ++++++ test/testfiles/mixed_deploy_type/mdt.lua | 1 + test/testfiles/mixed_deploy_type/mdt_file | 1 + .../mixed_deploy_type-0.1.0-1.rockspec | 21 +++++++++++++++++++++ .../mixed_deploy_type-0.2.0-1.rockspec | 21 +++++++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 test/testfiles/mixed_deploy_type/mdt.c create mode 100644 test/testfiles/mixed_deploy_type/mdt.lua create mode 100644 test/testfiles/mixed_deploy_type/mdt_file create mode 100644 test/testfiles/mixed_deploy_type/mixed_deploy_type-0.1.0-1.rockspec create mode 100644 test/testfiles/mixed_deploy_type/mixed_deploy_type-0.2.0-1.rockspec (limited to 'test/testfiles') 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 @@ +#include "lua.h" + +int luaopen_mdt(lua_State *L) { + lua_pushstring(L, "mdt.c"); + return 1; +} 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 @@ +package = "mixed_deploy_type" +version = "0.1.0-1" +source = { + url = "http://example.com" +} +description = { + homepage = "http://example.com", + license = "*** please specify a license ***" +} +dependencies = {} +build = { + type = "builtin", + modules = { + mdt = "mdt/mdt.lua" + }, + install = { + lua = { + mdt_file = "mdt/mdt_file" + } + } +} 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 @@ +package = "mixed_deploy_type" +version = "0.2.0-1" +source = { + url = "http://example.com" +} +description = { + homepage = "http://example.com", + license = "*** please specify a license ***" +} +dependencies = {} +build = { + type = "builtin", + modules = { + mdt = "mdt/mdt.c" + }, + install = { + lib = { + mdt_file = "mdt/mdt_file" + } + } +} -- cgit v1.2.3-55-g6feb