mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
Add unittest.testing() to make test building conditional
This commit is contained in:
parent
f8242124b8
commit
88146749f6
5 changed files with 33 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ Runs unit tests on all NSE libraries.
|
|||
]]
|
||||
|
||||
---
|
||||
-- @args unittest.run Run tests
|
||||
-- @args unittest.tests Run tests from only these libraries (defaults to all)
|
||||
--
|
||||
-- @usage
|
||||
|
|
@ -24,7 +23,7 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
|||
categories = {"safe"}
|
||||
|
||||
|
||||
prerule = function() return stdnse.get_script_args("unittest.run") end
|
||||
prerule = unittest.testing
|
||||
|
||||
action = function()
|
||||
local libs = stdnse.get_script_args("unittest.tests")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue