49 "correct_simulation_output";
53 "functions_of_interest";
63 : testApplicationPath_(testApplicationPath), maxRuntime_(0) {
69 FILE* file = fopen(maxRuntimeFile.c_str(),
"r");
87 (std::istreambuf_iterator<char>(f)),
88 std::istreambuf_iterator<char>());
108std::vector<std::string>
112 string descriptionFile =
117 FILE* file = fopen(descriptionFile.c_str(),
"r");
154 string correctOutputFile =
162 std::ifstream in(correctOutputFile.c_str());
164 if (std::getline(in,line)) {
167 while(std::getline(in,line)) {
200 std::ifstream* ifStream =
new std::ifstream;
207 string simulateFile =
210 return new std::ifstream(simulateFile.c_str());
244 string applicationBCFile =
247 string applicationLLFile =
273 string simulateFile =
286 string correctOutputFile =
338 string applicationBCFile =
341 string applicationLLFile =
348 return applicationLLFile;
351 return applicationBCFile;
static double toDouble(const T &source)
std::string errorMessage() const
static bool runShellCommand(const std::string command)
static bool fileIsReadable(const std::string fileName)
static const std::string DIRECTORY_SEPARATOR
static bool fileExists(const std::string fileName)
std::vector< TCEString > split(const std::string &delim) const
bool hasCorrectOutput() const
const std::string correctOutput() const
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....
bool hasCleanupSimulation() const
void cleanupSimulation() const
bool hasSimulateTTASim() const
bool hasApplication() const
static const std::string MAX_RUNTIME_
Name of the file that contains maximum runtime.
const std::string testApplicationPath_
Path of the test application directory.
std::vector< TCEString > functionsOfInterest_
The names of the functions of interest (in terms of cycle count).
static const std::string VERIFY_FILE_NAME_
Name of the verify script file.
const std::string applicationPath() const
Runtime maxRuntime() const
static const std::string CLEANUP_FILE_NAME_
Name of the clean up file.
TestApplication(const std::string &testApplicationPath)
static const int MAX_LINE_LENGTH_
Maximum line length in a file.
std::istream * simulateTTASim() const
static const std::string DESCRIPTION_FILE_NAME_
File name of the description text for the application.
static const std::string SETUP_FILE_NAME_
Name of the file that contains setup script.
virtual ~TestApplication()
bool hasVerifySimulation() const
bool hasFunctionsOfInterest() const
static const std::string SIMULATE_TTASIM_FILE_NAME_
Name of the file that runs the simulation.
std::vector< std::string > description() const
void setupSimulation() const
bool verifySimulation() const
static const std::string CORRECT_OUTPUT_FILE_NAME_
Name of the correct simulation output file.
bool hasSetupSimulation() const
Runtime maxRuntime_
Maximum runtime of the test appication in nano seconds.
static const std::string FUNCTIONS_OF_INTEREST_FILE_NAME_
Name of the file that has a comma separated list of functions of interest for the cycle count measure...