mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 21:34:00 +00:00
d2148478c6
Without any parameters, it mostly works the same as our current solution, but all in a standalone application. Adding the /w parameter will submit all results to the web service committed in my previous commit. The application would also make it possible to run Wine Tests regularly on a Windows machine and submitting the results. This would make sure that all Wine tests also pass under Windows. svn path=/trunk/; revision=38580
81 lines
1.5 KiB
C
81 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;
|
|
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();
|