source: icGREP/icgrep-devel/icgrep/combine/icgrep-test/icgrep-test.h @ 5527

Last change on this file since 5527 was 5527, checked in by faldebey, 2 years ago

CoRE tool fix

File size: 678 bytes
Line 
1#ifndef ICGREPTEST_H
2#define ICGREPTEST_H
3#include <vector>
4#include <string>
5#include <re/re_parser.h>
6
7
8class IcgrepTest{
9public:
10
11        void prepare();
12        void buildTest(std::string re, std::vector<std::string> flags, re::RE_Syntax syntax , int testNum);
13        void execute();
14        void getResult();
15        IcgrepTest();   
16
17private:
18        void resetBash(std::string fileName);
19        void clearDir(std::string dir);
20        void writeToBash(std::string fileName, std::string value);
21        void writetoFile(std::string content, std::string dir, int fileNo);
22        bool hasFlag(std::string flag, std::vector<std::string> flags);
23        std::vector<std::string> removeFlag(std::string flag, std::vector<std::string> flags);
24};
25
26
27#endif
Note: See TracBrowser for help on using the repository browser.