Subversion Repositories tpanel

Rev

Rev 334 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 334 Rev 335
Line 48... Line 48...
48
            std::string command;    // The command to execute
48
            std::string command;    // The command to execute
49
            std::string result;     // The expected result
49
            std::string result;     // The expected result
50
            bool compare{false};    // TRUE: Compare expected result with real result
50
            bool compare{false};    // TRUE: Compare expected result with real result
51
            bool nowait{false};     // TRUE: Don't wait until the command finished (no compare!)
51
            bool nowait{false};     // TRUE: Don't wait until the command finished (no compare!)
52
            bool reverse{false};    // TRUE: This changes the meaning of success and failure.
52
            bool reverse{false};    // TRUE: This changes the meaning of success and failure.
-
 
53
            bool waitscreen{false}; // TRUE: Wait for screen finished even if no comparison is made.
53
        }_TESTCMD;
54
        }_TESTCMD;
54
 
55
 
55
        void inject(int port, const std::string& c);
56
        void inject(int port, const std::string& c);
56
        void testSuccess(_TESTCMD& tc);
57
        void testSuccess(_TESTCMD& tc);
57
        void start();
58
        void start();
Line 69... Line 70...
69
};
70
};
70
 
71
 
71
extern _TestMode *_gTestMode;
72
extern _TestMode *_gTestMode;
72
 
73
 
73
#define setDone()       __done = true;
74
#define setDone()       __done = true;
74
#define setScreenDone() _test_screen = true;
75
#define setScreenDone() { MSG_DEBUG("setScreenDone(); at module " << __FILE__ << ": " << __LINE__); _test_screen = true; }
75
#define setAllDone()    _test_screen = true; __done = true;
76
#define setAllDone()    { MSG_DEBUG("setAllDone(); at module " << __FILE__ << ": " << __LINE__); _test_screen = true; __done = true; }
76
 
77
 
77
#ifndef TESTMODE
78
#ifndef TESTMODE
78
extern bool _testmode;
79
extern bool _testmode;
79
#elif TESTMODE != 1
80
#elif TESTMODE != 1
80
extern bool _testmode;
81
extern bool _testmode;