Nmap Development mailing list archives

Nsock test suite


From: Henri Doreau <henri.doreau () gmail com>
Date: Wed, 8 May 2013 13:48:04 +0200

Hello,

I've added a minimal regression test suite for nsock in nsock/tests in r30872.

The entry point is the run_tests.sh shell script. You have to build
the modules (using make), and call the script. It takes optional
parameters to run the tests in gdb, strace or valgrind. The timer
module is based on fyodor's nsock_test_timers.c example.

e.g.:
  $ cd nsock/tests
  $ make
  $ ./run_tests.sh [gdb|trace|leak]
  [OK] nsock pool user data
  [OK] test timer operations

For now it doesn't do much. I'll expand it soon. My plan is to spawn
echo servers with ncat at the beginning of the tests to validate nsock
I/O code.

Regards

--
Henri
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: