diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/make_spec.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/make_spec.lua b/spec/make_spec.lua index 0fc5cd93..5ec99fa7 100644 --- a/spec/make_spec.lua +++ b/spec/make_spec.lua | |||
@@ -49,6 +49,22 @@ describe("LuaRocks make tests #integration", function() | |||
49 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasocket/3.0rc1-2/luasocket-3.0rc1-2.rockspec")) | 49 | assert.is.truthy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasocket/3.0rc1-2/luasocket-3.0rc1-2.rockspec")) |
50 | end) | 50 | end) |
51 | 51 | ||
52 | it("LuaRocks make --no-doc", function() | ||
53 | finally(function() | ||
54 | lfs.chdir(testing_paths.testrun_dir) | ||
55 | test_env.remove_dir("luasocket-3.0rc1-2") | ||
56 | os.remove("luasocket-3.0rc1-2.src.rock") | ||
57 | end) | ||
58 | |||
59 | assert.is_true(run.luarocks_bool("download --source luasocket 3.0rc1-2")) | ||
60 | assert.is_true(run.luarocks_bool("unpack luasocket-3.0rc1-2.src.rock")) | ||
61 | lfs.chdir("luasocket-3.0rc1-2/luasocket-3.0-rc1/") | ||
62 | assert.is_true(run.luarocks_bool("make --no-doc luasocket-3.0rc1-2.rockspec")) | ||
63 | |||
64 | assert.is_true(run.luarocks_bool("show luasocket")) | ||
65 | assert.is.falsy(lfs.attributes(testing_paths.testing_sys_rocks .. "/luasocket/3.0rc1-2/doc")) | ||
66 | end) | ||
67 | |||
52 | describe("LuaRocks making rockspecs (using lxsh)", function() | 68 | describe("LuaRocks making rockspecs (using lxsh)", function() |
53 | --download lxsh and unpack it | 69 | --download lxsh and unpack it |
54 | before_each(function() | 70 | before_each(function() |