Create an utility library (LIBBU) API unit test for any fileBRL-CAD
Status: ClosedTime to complete: 100 hrs Mentors: Kesha Shah, Mandeep KaurTags: C, testing, library, quality, api, unit test, assurance

There are several dozen files 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.

References:

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

Code:

  • src/libbu/tests/bomb.c
  • src/libbu/tests/CMakeLists.txt

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.

Uploaded Work
File name/URLFile sizeDate submitted
task-add-bu-str-tests.diff9.8 KBDecember 03 2014 20:21 UTC
task-add-bu-str-tests-v2.diff9.8 KBDecember 04 2014 15:49 UTC
Comments
Andromeda Galaxyon December 3 2014 17:43 UTCTask Claimed

I would like to work on this task.

Deepak on December 3 2014 17:44 UTCTask Assigned

This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!

Andromeda Galaxyon December 3 2014 20:21 UTCReady for review

The work on this task is ready to be reviewed.

Daniel_R on December 4 2014 15:43 UTCLooks very good to me

I found only one small mistake: The year in src/libbu/tests/bu_str.c after the Copyright should be 2014 only.

Daniel_R on December 4 2014 15:43 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Andromeda Galaxyon December 4 2014 15:49 UTCReady for review

The work on this task is ready to be reviewed.

Popescu Andrei on December 4 2014 17:50 UTCWell done!

Everything works ok! Tested on latest revision, well done ! :)

Popescu Andrei on December 4 2014 17:50 UTCTask Closed

Congratulations, this task has been completed successfully.