Go to the documentation of this file.
61 : testApplicationPath_(testApplicationPath), maxRuntime_(0) {
67 FILE* file = fopen(maxRuntimeFile.c_str(),
"r");
96 std::vector<std::string>
100 string descriptionFile =
105 FILE* file = fopen(descriptionFile.c_str(),
"r");
142 string correctOutputFile =
150 std::ifstream in(correctOutputFile.c_str());
152 if (std::getline(in,line)) {
155 while(std::getline(in,line)) {
188 std::ifstream* ifStream =
new std::ifstream;
195 string simulateFile =
198 return new std::ifstream(simulateFile.c_str());
232 string applicationBCFile =
235 string applicationLLFile =
261 string simulateFile =
274 string correctOutputFile =
315 string applicationBCFile =
318 string applicationLLFile =
325 return applicationLLFile;
328 return applicationBCFile;
std::istream * simulateTTASim() const
void setupSimulation() const
const std::string applicationPath() const
Runtime maxRuntime_
Maximum runtime of the test appication in nano seconds.
const std::string correctOutput() const
bool hasCleanupSimulation() const
static const std::string CLEANUP_FILE_NAME_
Name of the clean up file.
static const std::string DESCRIPTION_FILE_NAME_
File name of the description text for the application.
bool hasSimulateTTASim() const
Runtime maxRuntime() const
static double toDouble(const T &source)
bool hasApplication() const
TestApplication(const std::string &testApplicationPath)
bool hasVerifySimulation() const
bool verifySimulation() const
static const std::string CORRECT_OUTPUT_FILE_NAME_
Name of the correct simulation output file.
static const int MAX_LINE_LENGTH_
Maximum line length in a file.
static const std::string SETUP_FILE_NAME_
Name of the file that contains setup script.
bool hasSetupSimulation() const
std::string errorMessage() const
static const std::string DIRECTORY_SEPARATOR
void cleanupSimulation() const
std::vector< std::string > description() const
static const std::string SIMULATE_TTASIM_FILE_NAME_
Name of the file that runs the simulation.
static const std::string MAX_RUNTIME_
Name of the file that contains maximum runtime.
static const std::string APPLICATION_BASE_FILE_NAME_
Name of the sequential program file. Base name of the file that contains the fully linked program....
const std::string testApplicationPath_
Path of the test application directory.
static bool fileExists(const std::string fileName)
static const std::string VERIFY_FILE_NAME_
Name of the verify script file.
static bool runShellCommand(const std::string command)
virtual ~TestApplication()
bool hasCorrectOutput() const