diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-09 14:35:14 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-09 14:35:14 -0300 |
| commit | 0f9d259ab3a59ae0f3ab3a2992dd371a368da5aa (patch) | |
| tree | a251978814d083d3ef55ede0787020c3735ce042 /test/testfiles | |
| parent | 9a9caf8fd6edfb82284b7ec6edb2f460400b614c (diff) | |
| download | luarocks-0f9d259ab3a59ae0f3ab3a2992dd371a368da5aa.tar.gz luarocks-0f9d259ab3a59ae0f3ab3a2992dd371a368da5aa.tar.bz2 luarocks-0f9d259ab3a59ae0f3ab3a2992dd371a368da5aa.zip | |
Test success of patching in `unpack`. Closes #316.
Includes test cases for the test suite! Yay!
Diffstat (limited to 'test/testfiles')
| -rw-r--r-- | test/testfiles/invalid_patch-0.1-1.rockspec | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/testfiles/invalid_patch-0.1-1.rockspec b/test/testfiles/invalid_patch-0.1-1.rockspec new file mode 100644 index 00000000..c2ecd160 --- /dev/null +++ b/test/testfiles/invalid_patch-0.1-1.rockspec | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | package = "invalid_patch" | ||
| 2 | version = "0.1-1" | ||
| 3 | source = { | ||
| 4 | -- any valid URL | ||
| 5 | url = "https://raw.github.com/keplerproject/luarocks/master/src/luarocks/build.lua" | ||
| 6 | } | ||
| 7 | description = { | ||
| 8 | summary = "A rockspec with an invalid patch", | ||
| 9 | } | ||
| 10 | dependencies = { | ||
| 11 | "lua >= 5.1" | ||
| 12 | } | ||
| 13 | build = { | ||
| 14 | type = "builtin", | ||
| 15 | modules = { | ||
| 16 | build = "build.lua" | ||
| 17 | }, | ||
| 18 | patches = { | ||
| 19 | ["I_am_an_invalid_patch.patch"] = | ||
| 20 | [[ | ||
| 21 | diff -Naur luadoc-3.0.1/src/luadoc/doclet/html.lua luadoc-3.0.1-new/src/luadoc/doclet/html.lua | ||
| 22 | --- luadoc-3.0.1/src/luadoc/doclet/html.lua2007-12-21 15:50:48.000000000 -0200 | ||
| 23 | +++ luadoc-3.0.1-new/src/luadoc/doclet/html.lua2008-02-28 01:59:53.000000000 -0300 | ||
| 24 | @@ -18,6 +18,7 @@ | ||
| 25 | - gabba gabba gabba | ||
| 26 | + gobo gobo gobo | ||
| 27 | ]] | ||
| 28 | } | ||
| 29 | } | ||
