aboutsummaryrefslogtreecommitdiff
path: root/spec/pack_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-03-19 10:33:25 -0400
committerHisham Muhammad <hisham@gobolinux.org>2019-04-01 17:32:53 -0400
commit655eacf345a108247ba6ea506721395571108912 (patch)
tree01c5658eb2d221a49ecd9d47c2d7e7b6094a69af /spec/pack_spec.lua
parent4e97804fc1b8b47667ec1d8b8f3c473d31c8bb29 (diff)
downloadluarocks-655eacf345a108247ba6ea506721395571108912.tar.gz
luarocks-655eacf345a108247ba6ea506721395571108912.tar.bz2
luarocks-655eacf345a108247ba6ea506721395571108912.zip
Add --sign option to `luarocks pack`
* Introduce a new module, `luarocks.signing` * Add `--sign` option to `luarocks pack`, which produces a detached GPG signature * Includes a basic test, along with some fixtures with a password-less GPG key
Diffstat (limited to 'spec/pack_spec.lua')
-rw-r--r--spec/pack_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua
index 08647cfb..8b3612db 100644
--- a/spec/pack_spec.lua
+++ b/spec/pack_spec.lua
@@ -50,6 +50,16 @@ describe("LuaRocks pack #integration", function()
50 assert(test_env.remove_files(lfs.currentdir(), "say%-")) 50 assert(test_env.remove_files(lfs.currentdir(), "say%-"))
51 end) 51 end)
52 52
53 pending("#gpg --sign", function()
54 assert(run.luarocks_bool("install say 1.2"))
55 assert(run.luarocks_bool("install luassert"))
56 assert(run.luarocks_bool("install say 1.0"))
57 assert(run.luarocks_bool("pack say --sign"))
58 assert.is_truthy(lfs.attributes("say-1.2-1.all.rock"))
59 assert.is_truthy(lfs.attributes("say-1.2-1.all.rock.asc"))
60 assert(test_env.remove_files(lfs.currentdir(), "say%-"))
61 end)
62
53 describe("#mock", function() 63 describe("#mock", function()
54 64
55 setup(function() 65 setup(function()