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

Issue 316 - Do not copy 'Empty.cpp' when 'flit init --litmus-tests' is used #324

Closed JohnJacobsonIII closed 4 years ago

JohnJacobsonIII commented 4 years ago

Added tests for flit init, changed behavior of flit_init.py to exclude Empty.cpp when --litmus-tests parameter is called.

Fixes #316

Description: This addresses Issue #316 by removing 'Empty.cpp' from the list of copied tests when 'flit init --litmus-tests' is called. The user would be more likely to utilize or modify these existing litmus-tests in this case, as opposed to using the blank template.

Documentation: flit-command-line.md was updated to note that 'Empty.cpp' will be replaced when --litmus-tests is called.

Tests: New tests for flit_init were added, to ensure:

  1. 'Empty.cpp' is not present if the --litmus-tests flag is called with flit init
  2. All, and only, the tests within the tests/ directory are copied into the initialized location.