aboutsummaryrefslogtreecommitdiff
path: root/spec/pack_spec.lua
diff options
context:
space:
mode:
authorroboo <robo.karasek@gmail.com>2016-08-21 21:50:38 +0200
committerroboo <robo.karasek@gmail.com>2016-08-21 21:50:38 +0200
commit2f3c8648289bb4e22eee5f8ff8d27afca6592fa4 (patch)
tree5d4f17b5d949e67edde281e6dbe7142a24b57260 /spec/pack_spec.lua
parent5cdc22fb3c3a85160cd7c2d49ba10ab113e4a784 (diff)
downloadluarocks-2f3c8648289bb4e22eee5f8ff8d27afca6592fa4.tar.gz
luarocks-2f3c8648289bb4e22eee5f8ff8d27afca6592fa4.tar.bz2
luarocks-2f3c8648289bb4e22eee5f8ff8d27afca6592fa4.zip
Windows and appveyor support for tests
Diffstat (limited to 'spec/pack_spec.lua')
-rw-r--r--spec/pack_spec.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua
index 0e5b31c6..21f33b02 100644
--- a/spec/pack_spec.lua
+++ b/spec/pack_spec.lua
@@ -6,9 +6,10 @@ local testing_paths = test_env.testing_paths
6test_env.unload_luarocks() 6test_env.unload_luarocks()
7 7
8local extra_rocks = { 8local extra_rocks = {
9 "/luasec-0.6-1.rockspec", 9 "/luasec-0.6-1.rockspec",
10 "/luasocket-3.0rc1-1.src.rock", 10 "/luassert-1.7.0-1.src.rock",
11 "/luasocket-3.0rc1-1.rockspec", 11 "/luasocket-3.0rc1-2.src.rock",
12 "/luasocket-3.0rc1-2.rockspec",
12 "/say-1.2-1.src.rock", 13 "/say-1.2-1.src.rock",
13 "/say-1.0-1.src.rock" 14 "/say-1.0-1.src.rock"
14} 15}
@@ -44,14 +45,17 @@ describe("LuaRocks pack tests #blackbox #b_pack", function()
44 assert.is_true(run.luarocks_bool("install say 1.2")) 45 assert.is_true(run.luarocks_bool("install say 1.2"))
45 assert.is_true(run.luarocks_bool("install luassert")) 46 assert.is_true(run.luarocks_bool("install luassert"))
46 assert.is_true(run.luarocks_bool("install say 1.0")) 47 assert.is_true(run.luarocks_bool("install say 1.0"))
47
48 assert.is_false(run.luarocks_bool("pack say")) 48 assert.is_false(run.luarocks_bool("pack say"))
49 end) 49 end)
50 50
51 it("LuaRocks pack src", function() 51 it("LuaRocks pack src", function()
52 assert.is_true(run.luarocks_bool(test_env.quiet("install luasec"))) 52 if test_env.APPVEYOR then
53 assert.is_true(run.luarocks_bool("download --rockspec luasocket 3.0rc1-1")) 53 assert.is_true(run.luarocks_bool(test_env.quiet("install luasec " .. test_env.APPVEYOR_OPENSSL)))
54 assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-1.rockspec")) 54 else
55 assert.is_true(run.luarocks_bool(test_env.quiet("install luasec")))
56 end
57 assert.is_true(run.luarocks_bool("download --rockspec luasocket 3.0rc1-2"))
58 assert.is_true(run.luarocks_bool("pack luasocket-3.0rc1-2.rockspec"))
55 assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-")) 59 assert.is_true(test_env.remove_files(lfs.currentdir(), "luasocket-"))
56 end) 60 end)
57end) 61end)