diff options
author | Paul Ouellette <oue.paul18@gmail.com> | 2019-11-15 14:08:29 -0500 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-11-15 16:08:29 -0300 |
commit | 9446ac85d8bf085d2a6f0a02a6a432e14dddac61 (patch) | |
tree | c5e04878fabfa42beee0a891c0ac59c0a97137bb /spec | |
parent | 3a3f2cbaa50d353f4c26b39f59c015a20f28c4ae (diff) | |
download | luarocks-9446ac85d8bf085d2a6f0a02a6a432e14dddac61.tar.gz luarocks-9446ac85d8bf085d2a6f0a02a6a432e14dddac61.tar.bz2 luarocks-9446ac85d8bf085d2a6f0a02a6a432e14dddac61.zip |
Support make --no-doc (#1092)
* Support make --no-doc
* Add test for make --no-doc
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() |