Sample of a test_modfile.sh port to FileCheck to support an RFC
Summary of changes:
- Create module files in a temporary directory using -module to isolate the tests from eachother.
- Use ls and wc to replace test_modfile.sh's check that no additional modules were created.
- Separate, explicit RUN line to check each module content with FileCheck.
It looks like the temp directory could still be there from the previous run. Does it get cleaned up?
test_modfile.sh has the same problem, dating back to the port to lit.