Author |
Message |
D1st0rt Miss Directed Wannabe
Age:36 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Sun May 23, 2010 1:16 pm Post subject: <c> Small module to help testing other modules |
|
|
|
|
Located here. I often find it to be a pain to test out modules in certain conditions so I put this together to make it a bit easier. It's kind of like unit testing but doesn't adhere to the whole xUnit movement in the strictest sense.
Right now it's just set up to let you run them with commands, in the future I may set up some kind of automation. _________________
|
|
Back to top |
|
|
Cheese Wow Cheese is so helpful!
Joined: Mar 18 2007 Posts: 1017 Offline
|
Posted: Mon May 24, 2010 1:29 am Post subject: |
|
|
|
|
what does it do?
just runs functions in some sort of sandbox?
that wont stop segfaults and stuff... _________________ SSC Distension Owner
SSCU Trench Wars Developer |
|
Back to top |
|
|
JoWie Server Help Squatter
Gender: Joined: Feb 25 2004 Posts: 215 Offline
|
Posted: Mon May 24, 2010 12:33 pm Post subject: |
|
|
|
|
Cheese wrote: | that wont stop segfaults and stuff... |
That is not the purpose, it is a tool to help in automated unit testing.
In unit testing you take a "unit" (module, class, whatever), feed it a whole lot of inputs and check if the output is correct.
If you want to "stop" segfaults you could set it up so sigsegv is simply ignored. in GDB you can do "handle SIGSEGV nostop print ignore". Have fun! |
|
Back to top |
|
|
D1st0rt Miss Directed Wannabe
Age:36 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue May 25, 2010 8:14 pm Post subject: |
|
|
|
|
It lets you come up with like "scenarios" for things you either want to test repeatedly or that would be difficult to set up otherwise. It does not fix your code, it just helps you find errors. |
|
Back to top |
|
|
|