Add a /c option to supply a comment for the web service submission.
[reactos.git] / rostests / rosautotest / precomp.h
1 /* Includes */
2 #include <stdio.h>
3
4 #include <windows.h>
5 #include <reason.h>
6 #include <wininet.h>
7
8 #include <reactos/buildno.h>
9
10 /* Defines */
11 #define BUFFER_BLOCKSIZE 2048
12 #define BUILDNO_LENGTH 10
13 #define PLATFORM_LENGTH 25
14 #define SERVER_HOSTNAME L"localhost"
15 #define SERVER_FILE L"testman/webservice/"
16
17 /* Enums */
18 typedef enum _TESTTYPES
19 {
20 WineTest
21 }
22 TESTTYPES;
23
24 /* Structs */
25 typedef struct _APP_OPTIONS
26 {
27 BOOL Shutdown;
28 BOOL Submit;
29 PCHAR Comment;
30 PWSTR Module;
31 PCHAR Test;
32 }
33 APP_OPTIONS, *PAPP_OPTIONS;
34
35 typedef struct _WINE_GETSUITEID_DATA
36 {
37 PCHAR Module;
38 PCHAR Test;
39 }
40 WINE_GETSUITEID_DATA, *PWINE_GETSUITEID_DATA;
41
42 typedef struct _GENERAL_SUBMIT_DATA
43 {
44 PCHAR TestID;
45 PCHAR SuiteID;
46 }
47 GENERAL_SUBMIT_DATA, *PGENERAL_SUBMIT_DATA;
48
49 typedef struct _WINE_SUBMIT_DATA
50 {
51 GENERAL_SUBMIT_DATA General;
52 PCHAR Log;
53 }
54 WINE_SUBMIT_DATA, *PWINE_SUBMIT_DATA;
55
56 typedef struct _GENERAL_FINISH_DATA
57 {
58 PCHAR TestID;
59 }
60 GENERAL_FINISH_DATA, *PGENERAL_FINISH_DATA;
61
62 /* main.c */
63 extern APP_OPTIONS AppOptions;
64 extern HANDLE hProcessHeap;
65 extern PCHAR AuthenticationRequestString;
66 extern PCHAR SystemInfoRequestString;
67
68 /* shutdown.c */
69 BOOL ShutdownSystem();
70
71 /* tools.c */
72 VOID EscapeString(PCHAR Output, PCHAR Input);
73 VOID StringOut(PCHAR String);
74
75 /* webservice.c */
76 PCHAR GetTestID(TESTTYPES TestType);
77 PCHAR GetSuiteID(TESTTYPES TestType, const PVOID TestData);
78 BOOL Submit(TESTTYPES TestType, const PVOID TestData);
79 BOOL Finish(TESTTYPES TestType, const PVOID TestData);
80
81 /* winetests.c */
82 BOOL RunWineTests();