PRUNERS / FLiT

A project to quickly detect discrepancies in floating point computation across hardware, compilers, libraries and software.
Other
36 stars 6 forks source link

Document common test pattern to wrap `main()` #204

Closed mikebentley15 closed 5 years ago

mikebentley15 commented 6 years ago

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.

mikebentley15 commented 5 years ago

This issue is now redundant with the fixing of issue #272. It is now made easier to do this and it is documented.