Skip to content

Commit

Permalink
Tests: cleanup signature before signing
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Apr 26, 2019
1 parent d534a32 commit c451dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/pack_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ describe("LuaRocks pack #integration", function()
assert(run.luarocks_bool("install say 1.2"))
assert(run.luarocks_bool("install luassert"))
assert(run.luarocks_bool("install say 1.0"))
os.delete("say-1.2-1.all.rock")
os.delete("say-1.2-1.all.rock.asc")
assert(run.luarocks_bool("pack say --sign"))
assert.is_truthy(lfs.attributes("say-1.2-1.all.rock"))
assert.is_truthy(lfs.attributes("say-1.2-1.all.rock.asc"))
Expand Down
2 changes: 2 additions & 0 deletions spec/upload_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ describe("LuaRocks upload tests #integration", function()
end)

it("#gpg rockspec with --sign", function()
os.remove(testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec.asc")
os.remove(testing_paths.testrun_dir .. "/a_rock-1.0-1.src.rock.asc")
print(run.luarocks("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123 --sign", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"}))
end)

Expand Down

0 comments on commit c451dd0

Please sign in to comment.