diff options
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/c_module-1.0-1.rockspec | 11 | ||||
-rw-r--r-- | spec/fixtures/c_module.c | 9 | ||||
-rw-r--r-- | spec/fixtures/git_repo/.gitignore | 2 | ||||
-rw-r--r-- | spec/fixtures/git_repo/LICENSE | 19 | ||||
-rw-r--r-- | spec/fixtures/git_repo/README.md | 3 |
5 files changed, 44 insertions, 0 deletions
diff --git a/spec/fixtures/c_module-1.0-1.rockspec b/spec/fixtures/c_module-1.0-1.rockspec new file mode 100644 index 00000000..2913ecf6 --- /dev/null +++ b/spec/fixtures/c_module-1.0-1.rockspec | |||
@@ -0,0 +1,11 @@ | |||
1 | package = "c_module" | ||
2 | version = "1.0-1" | ||
3 | source = { | ||
4 | url = "http://example.com/c_module" | ||
5 | } | ||
6 | build = { | ||
7 | type = "builtin", | ||
8 | modules = { | ||
9 | c_module = { "c_module.c" } | ||
10 | } | ||
11 | } | ||
diff --git a/spec/fixtures/c_module.c b/spec/fixtures/c_module.c new file mode 100644 index 00000000..4c27dda8 --- /dev/null +++ b/spec/fixtures/c_module.c | |||
@@ -0,0 +1,9 @@ | |||
1 | #include <lua.h> | ||
2 | #include <lauxlib.h> | ||
3 | |||
4 | int luaopen_c_module(lua_State* L) { | ||
5 | lua_newtable(L); | ||
6 | lua_pushinteger(L, 1); | ||
7 | lua_setfield(L, -2, "c_module"); | ||
8 | return 1; | ||
9 | } | ||
diff --git a/spec/fixtures/git_repo/.gitignore b/spec/fixtures/git_repo/.gitignore new file mode 100644 index 00000000..9e639210 --- /dev/null +++ b/spec/fixtures/git_repo/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | /.gitignore | ||
2 | /foo | ||
diff --git a/spec/fixtures/git_repo/LICENSE b/spec/fixtures/git_repo/LICENSE new file mode 100644 index 00000000..e8c415d1 --- /dev/null +++ b/spec/fixtures/git_repo/LICENSE | |||
@@ -0,0 +1,19 @@ | |||
1 | Copyright (c) 2018 Test | ||
2 | |||
3 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
4 | of this software and associated documentation files (the "Software"), to deal | ||
5 | in the Software without restriction, including without limitation the rights | ||
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
7 | copies of the Software, and to permit persons to whom the Software is | ||
8 | furnished to do so, subject to the following conditions: | ||
9 | |||
10 | The above copyright notice and this permission notice shall be included in all | ||
11 | copies or substantial portions of the Software. | ||
12 | |||
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
19 | SOFTWARE. | ||
diff --git a/spec/fixtures/git_repo/README.md b/spec/fixtures/git_repo/README.md new file mode 100644 index 00000000..220327e5 --- /dev/null +++ b/spec/fixtures/git_repo/README.md | |||
@@ -0,0 +1,3 @@ | |||
1 | |||
2 | |||
3 | Test repo | ||