Open tijoytom-zz opened 6 years ago
Also, assertions (i.e. bitmap->mapbits <= bitmap->maxbits
) etc
id_heap_test is a bitmap allocator test (though could be improved)
starting tasklist, feel free to edit/add:
Hello, my team members and I are students at the University of Texas at Austin. We are looking to contribute to Nanos as a part of a project for our virtualization class. Could we take on this issue? Would this be a good first issue to tackle?
sorry just now seeing this, yes please feel free to work on this, i'd just break up individual tests against the various data structures into separate pull requests, please reach out if you need more direction/help
Hello Uma. This issue is very old and was out-of-date, so I updated it. The only item left here is a unit test for bitmaps. Bitmaps are tested indirectly in the id heap test, but an explicit unit test would still be welcome if you are interested in picking that up.
We need a good futex runtime test, too, but that isn't really a data structure test. I'll open a new issue for that in case you or your colleagues are interested in picking that up (see #1306).
Hi Ian and Will, Thank you for the helpful information! My teammates and I will go ahead and start working on this issue. We're also interested in issue #1306 which Will referenced in his reply, so I commented on that issue as well. We'll let you know if we have any additional questions as we start working on this issue.
Hello @eyberg and @wjhun , I'm one of Uma's teammates and I'll be helping with this issue. Thank you for the updates! So far, I've begun to familiarize myself with the bitmap.c and id_heap_test.c files, but I'd appreciate having some more direction/help on where I should start with creating unit tests for bitmaps and what your expectations are.
Hello @samantha3pen, and thank you for offering to contribute. The id_heap_test unit test exercises the bitmap code somewhat, but this is only a brute-force (randomized) test, and it doesn't exercise the bitmap interface directly (or completely).
A good unit test here should, at least:
There are rules in the build to generate gcov files for the unit tests. These can help verify that your test exercises all paths through conditionals in the bitmap implemenation.
Hi @wjhun , my pr for the bitmap unit tests has recently been merged and I was wondering if there's any more work to be done for this issue?
Thank you, @samantha3pen, for the contribution. After a quick review I did find more parts of the runtime environment (src/runtime) don't have explicit tests. I added open items for them above.
-bitmap -pqueue -buffer -rtrie ( maybe not for now)