mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
Add unittest.testing() to make test building conditional
This commit is contained in:
@@ -920,6 +920,10 @@ function calculate_signature(mac_key, data)
|
||||
end
|
||||
end
|
||||
|
||||
if not unittest.testing() then
|
||||
return _ENV
|
||||
end
|
||||
|
||||
test_suite = unittest.TestSuite:new()
|
||||
test_suite:add_test(unittest.equal(
|
||||
stdnse.tohex(select(-1, lm_create_hash("passphrase"))),
|
||||
|
||||
Reference in New Issue
Block a user