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

Last change on this file since 5613 was 5613, checked in by faldebey, 18 months ago

different updates to CoRE

File size: 694 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 backup();
19        void resetBash(std::string fileName);
20        void clearDir(std::string dir);
21        void writeToBash(std::string fileName, std::string value);
22        void writetoFile(std::string content, std::string dir, int fileNo);
23        bool hasFlag(std::string flag, std::vector<std::string> flags);
24        std::vector<std::string> removeFlag(std::string flag, std::vector<std::string> flags);
25};
26
27
28#endif
Note: See TracBrowser for help on using the repository browser.