Create a utility library (LIBBU) API unit test ... for argv.cBRL-CAD
Status: ClosedTime to complete: 48 hrs Mentors: SeanTags: unit test, API, C, C++, Tcl, Python, Ruby

There are more than 300 library functions in our core LIBBU library. As a core library used by nearly every one of BRL-CAD's tools, testing those functions for correct behavior is important.

This task involves implementing a new unit test for any of LIBBU's source files that do not already have a unit test defined. The test should run all of the public functions and be hooked into our build system. We have lots of existing unit tests to follow as an example. You can implement this task in any language you like, but you'll have to bind all of the functions you test.

References:

  • include/bu.h
  • src/libbu/argv.c
  • src/libbu/tests/*.c

Code:

  • src/libbu/tests/bu_argv.c
  • src/libbu/tests/CMakeLists.txt
Uploaded Work
File name/URLFile sizeDate submitted
my.patch8.2 KBDecember 06 2012 06:39 UTC
Comments
Lachlan Pon December 6 2012 01:03 UTCTask Claimed

I would like to work on this task.

Lachlan Pon December 6 2012 05:44 UTCDone!

Hi,


I'm essentially finished this task (except for the mentor check) even though it's not been accepted... that's alright isn't it?


Thanks,
Lachlan 

Sean on December 6 2012 06:07 UTCTask Assigned

This task has been assigned to Lachlan P. You have 48 hours to complete this task, good luck!

Lachlan Pon December 6 2012 06:40 UTCProblem with Patch

Hi,


This patch contains stuff from my last task, as I explained on the IRC:


[16:19] lachlanp i'm trying to make a patch from my work, but a previous task of mine hasn't yet been commited it seems to the repo
[16:19] lachlanp for me, that means the changes to CMakeLists.txt for the old task are in the new one
[16:19] lachlanp what should I do?


Lachlan

Lachlan Pon December 6 2012 06:41 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 6 2012 07:02 UTCcommit delay

This looks great Lachlan.


We have a backlog of patches to commit to the repository, but they are queued up and will all get processed eventually.  We just don't want to hold up responding to the GCI tasks, which are getting priority attention right now.


Thank your for your efforts, this is a nice testing example.


 

Sean on December 6 2012 07:02 UTCTask Closed

Congratulations, this task has been completed successfully.