1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00
Commit Graph

36 Commits

Author SHA1 Message Date
dmiller
d131a096a8 Remove nse_pcrelib from build. 2023-06-24 01:53:09 +00:00
dmiller
5ee110f3a5 Be clear in unittest failures involving nil 2023-06-06 15:10:47 +00:00
dmiller
b8fd19c8d9 Make lib load errors into unittest failures. 2023-05-01 17:44:40 +00:00
dmiller
fa029ca531 Add BSON handlers for most data types. Fixes #2393 2021-12-07 19:33:40 +00:00
dmiller
17416feb5e New outlib library for output-related functions 2020-01-16 19:12:58 +00:00
dmiller
a7638f57c8 Add missing libs to make check 2018-10-18 01:10:57 +00:00
dmiller
173a99ede4 Officially deprecate bin.lua. 2018-09-24 17:31:21 +00:00
dmiller
69dd30727d Add some missing libs to unittest.lua 2018-09-03 19:38:01 +00:00
dmiller
b222a0d7ee Remove bit.lua 2018-08-28 15:56:47 +00:00
dmiller
61056e91a6 Add idna and punycode to unittest.lua 2017-09-27 21:29:33 +00:00
dmiller
b57d23f005 Add zlib binding for NSE. Fixes #532 2017-09-13 01:54:19 +00:00
dmiller
83d46cd9fb Add missing libraries to unittest's list 2017-07-27 18:21:13 +00:00
dmiller
d55b11ca31 Localize unittest.identical helper function, avoiding crash and speeding it up 2017-04-01 02:00:39 +00:00
dmiller
0790885360 CoAP scripts, payloads, and service probe for CoAP by Mak Kolybabi 2016-09-08 21:19:55 +00:00
dmiller
83ea599122 Make unexpected test successes into failures. #369 2016-09-07 21:03:48 +00:00
dmiller
47ca082c8d New identity unittests from Mak Kolybabi (#369) 2016-09-07 21:03:47 +00:00
dmiller
ee97c8f2a9 New MQTT script and library. Closes #352 2016-09-07 20:01:47 +00:00
dmiller
7e002ec389 Add some missing libraries to unittest.lua 2016-09-07 20:01:45 +00:00
dmiller
e31c4fe64e New unittest function to test key-value tables 2016-08-12 23:44:42 +00:00
dmiller
8d418d4962 Document some script args in NSEdoc 2015-11-22 13:58:21 +00:00
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
f846e7c818 Allow make nse_check to pass when configured --without-openssl 2015-06-25 14:00:53 +00:00
batrick
4b9f1c6766 nselib stdnse.print_debug -> stdnse.debug
Manual fixes.
2014-08-03 01:17:09 +00:00
batrick
ee6622aea4 nselib stdnse.print_debug -> stdnse.debug
$ f() { find -name \*.lua -exec /bin/echo sed -i "$1" {} \; ; }
$ f 's/stdnse.print_debug( *\([0-9]*\) *, */stdnse.debug\1(/'
$ f 's/stdnse.print_debug( *"\(.*\))/stdnse.debug1("\1)/'
2014-08-03 00:56:45 +00:00
dmiller
7eb678a893 Move NSEdoc for unittest.run to unittest.nse
This prevents unittest.run from being included in the Script Arguments
section of every script that includes a unittest-compatible library.
2014-07-31 18:06:14 +00:00
dmiller
3b3131d635 Add class names to unittest.lua NSEdoc 2014-03-06 23:09:59 +00:00
dmiller
88146749f6 Add unittest.testing() to make test building conditional 2014-03-06 17:15:05 +00:00
dmiller
f8242124b8 Fix NSEdoc formatting in unittest.lua 2014-03-06 17:15:01 +00:00
dmiller
743c90c24a Use nsedebug.tostr in unittest to more clearly show how tests fail. 2014-02-19 18:32:25 +00:00
dmiller
1273cb4200 New unicode.lua library. Supports utf-8 and UTF-16 2014-02-19 17:08:30 +00:00
dmiller
210d50a1d9 Add table_equal test to unittest.lua
Checks that 2 tables have the same length and list values.
2014-02-19 17:08:27 +00:00
dmiller
620f9fdb34 Remove trailing whitespace in lua files
Whitespace is not significant, so this should not be a problem.
https://secwiki.org/w/Nmap/Code_Standards
2014-01-23 21:51:58 +00:00
dmiller
3570ca78d8 Adjust unittest definitions to generate proper nsedoc 2014-01-04 03:48:13 +00:00
dmiller
c70a7be88f Remove stupid hacks that are unneeded because of select() magic 2014-01-03 23:02:02 +00:00
dmiller
739fee324b Fix some requires in unittest.lua 2014-01-03 21:16:38 +00:00
dmiller
dc617c42f3 New unittest library and driver script for NSE testing
Please read the documentation. This is a way to add unit testing to NSE
libraries (not scripts, yet). Please add tests to your libraries!
Examples to come in further commits.
2014-01-03 21:10:01 +00:00