mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
a98eb8d135
This can be useful for giving more information about the used build for the test. The necessary changes in testman will follow later :-P svn path=/trunk/; revision=39698
83 lines
1.5 KiB
C
83 lines
1.5 KiB
C
/* Includes */
|
|
#include <stdio.h>
|
|
|
|
#include <windows.h>
|
|
#include <reason.h>
|
|
#include <wininet.h>
|
|
|
|
#include <reactos/buildno.h>
|
|
|
|
/* Defines */
|
|
#define BUFFER_BLOCKSIZE 2048
|
|
#define BUILDNO_LENGTH 10
|
|
#define PLATFORM_LENGTH 25
|
|
#define SERVER_HOSTNAME L"localhost"
|
|
#define SERVER_FILE L"testman/webservice/"
|
|
|
|
/* Enums */
|
|
typedef enum _TESTTYPES
|
|
{
|
|
WineTest
|
|
}
|
|
TESTTYPES;
|
|
|
|
/* Structs */
|
|
typedef struct _APP_OPTIONS
|
|
{
|
|
BOOL Shutdown;
|
|
BOOL Submit;
|
|
PCHAR Comment;
|
|
PWSTR Module;
|
|
PCHAR Test;
|
|
}
|
|
APP_OPTIONS, *PAPP_OPTIONS;
|
|
|
|
typedef struct _WINE_GETSUITEID_DATA
|
|
{
|
|
PCHAR Module;
|
|
PCHAR Test;
|
|
}
|
|
WINE_GETSUITEID_DATA, *PWINE_GETSUITEID_DATA;
|
|
|
|
typedef struct _GENERAL_SUBMIT_DATA
|
|
{
|
|
PCHAR TestID;
|
|
PCHAR SuiteID;
|
|
}
|
|
GENERAL_SUBMIT_DATA, *PGENERAL_SUBMIT_DATA;
|
|
|
|
typedef struct _WINE_SUBMIT_DATA
|
|
{
|
|
GENERAL_SUBMIT_DATA General;
|
|
PCHAR Log;
|
|
}
|
|
WINE_SUBMIT_DATA, *PWINE_SUBMIT_DATA;
|
|
|
|
typedef struct _GENERAL_FINISH_DATA
|
|
{
|
|
PCHAR TestID;
|
|
}
|
|
GENERAL_FINISH_DATA, *PGENERAL_FINISH_DATA;
|
|
|
|
/* main.c */
|
|
extern APP_OPTIONS AppOptions;
|
|
extern HANDLE hProcessHeap;
|
|
extern PCHAR AuthenticationRequestString;
|
|
extern PCHAR SystemInfoRequestString;
|
|
|
|
/* shutdown.c */
|
|
BOOL ShutdownSystem();
|
|
|
|
/* tools.c */
|
|
VOID EscapeString(PCHAR Output, PCHAR Input);
|
|
VOID StringOut(PCHAR String);
|
|
|
|
/* webservice.c */
|
|
PCHAR GetTestID(TESTTYPES TestType);
|
|
PCHAR GetSuiteID(TESTTYPES TestType, const PVOID TestData);
|
|
BOOL Submit(TESTTYPES TestType, const PVOID TestData);
|
|
BOOL Finish(TESTTYPES TestType, const PVOID TestData);
|
|
|
|
/* winetests.c */
|
|
BOOL RunWineTests();
|