1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-21 05:39:14 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
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