aboutsummaryrefslogtreecommitdiff
path: root/spec/util
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/util
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/util')
-rw-r--r--spec/util/test_env.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 6850214f..9337c396 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -436,6 +436,7 @@ local function create_env(testing_paths)
436 end 436 end
437 437
438 local env_variables = {} 438 local env_variables = {}
439 env_variables.GNUPGHOME = testing_paths.gpg_dir
439 env_variables.LUA_VERSION = luaversion_short 440 env_variables.LUA_VERSION = luaversion_short
440 env_variables.LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/testing_config.lua" 441 env_variables.LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/testing_config.lua"
441 if test_env.TEST_TARGET_OS == "windows" then 442 if test_env.TEST_TARGET_OS == "windows" then
@@ -593,6 +594,7 @@ local function create_paths(luaversion_full)
593 end 594 end
594 595
595 testing_paths.fixtures_dir = base_dir .. "/spec/fixtures" 596 testing_paths.fixtures_dir = base_dir .. "/spec/fixtures"
597 testing_paths.gpg_dir = testing_paths.fixtures_dir .. "/gpg"
596 testing_paths.fixtures_repo_dir = base_dir .. "/spec/fixtures/a_repo" 598 testing_paths.fixtures_repo_dir = base_dir .. "/spec/fixtures/a_repo"
597 testing_paths.util_dir = base_dir .. "/spec/util" 599 testing_paths.util_dir = base_dir .. "/spec/util"
598 testing_paths.testrun_dir = base_dir .. "/testrun" 600 testing_paths.testrun_dir = base_dir .. "/testrun"