Create ATF tests The NetBSD Project
Status: Closed Time to complete: 168 hrs Mentors: Julian Coleman, Julian Fagir Tags: C, sh, man, research

ATF is the automatic test framework for NetBSD. We strive to have automatic tests for all the important parts of our system: libraries, syscalls, binaries, etc.
Your task is to write such tests. You should read the ?tutorial about how to write an atf test, and then you can start testing things.
As testing is an endless task, here are just a few ideas about which items could be tested:


cdbr(3) and cdbw(3)

inet(3) and inet_net(3)

ethers(3) , iso_addr(3) and link_addr(3)

strtol(3) , strtoul(3) and strtoull(3)


Though this task is originally rather considered quality assurance, the actual test writing is only coding work (whether the test succeeds or not, is up to the original author of the library or tool).
The tests should be written in either C or sh, depending on the test subject.

Every single written test is considered as one task. If you think there is another test that should be added, but is not listed here, feel free to contact us. This task can be fulfilled multiple times and will be recreated once it is claimed.

Link to the wiki article describing atf:

Uploaded Work
File name/URL File size Date submitted
uuid.tar.gz 1.4 KB December 04 2012 07:20 UTC
irissiri on November 27 2012 16:36 UTC Task Claimed

I would like to work on this task.

irissiri on November 27 2012 16:40 UTC Claim Removed

The claim on this task has been removed, someone else can claim it now.

Philip Hayes on December 1 2012 22:47 UTC Task Claimed

I would like to work on this task.

Julian Fagir on December 1 2012 22:49 UTC Task Assigned

This task has been assigned to Philip Hayes. You have 168 hours to complete this task, good luck!

Philip Hayes on December 1 2012 23:00 UTC Task

I'll write an atf test for uuid.h

Philip Hayes on December 4 2012 07:20 UTC Ready for review

The work on this task is ready to be reviewed.

Philip Hayes on December 4 2012 07:24 UTC Task

extract this in src/tests/lib/libc :)

Julian Fagir on December 4 2012 16:20 UTC Thank you very much!

Thank you very much, the test is fine! We have other tasks for creating ATF tests. So maybe once you got into it, you want to do more? I'm talking about this one: 

We can recreate this task as often as you want to add further tests (and, btw, we would be happy if you wrote tests even after GCi finished). 

Julian Fagir on December 4 2012 16:20 UTC Task Closed

Congratulations, this task has been completed successfully.