Within LULESH, we were able to create a FLiT test that wraps around LULESH's main() function without copying and pasting the code from main(). The test redirected stdout to a file, then parsed it to get the return values for the test. This pattern can be used by developers wanting to use FLiT for their project. As such, it would be beneficial to describe this approach within the documentation of FLiT.
Within LULESH, we were able to create a FLiT test that wraps around LULESH's
main()
function without copying and pasting the code frommain()
. The test redirectedstdout
to a file, then parsed it to get the return values for the test. This pattern can be used by developers wanting to use FLiT for their project. As such, it would be beneficial to describe this approach within the documentation of FLiT.