winetest: Use the HEAD commit sha1 as default build id.

This commit is contained in:
Alexandre Julliard 2008-03-27 17:26:20 +01:00
parent dfd6c1f21a
commit 4e665b1e21
4 changed files with 14 additions and 1 deletions

View File

@ -6,6 +6,8 @@ MODULE = winetest.exe
APPMODE = -mconsole
IMPORTS = comctl32 version user32 gdi32 advapi32 wsock32 kernel32
EXTRARCFLAGS = -DBUILD_SHA1=\"$$(GIT_DIR=$(TOPSRCDIR)/.git git rev-parse HEAD 2>/dev/null)\"
C_SRCS = \
gui.c \
main.c \

View File

@ -501,6 +501,7 @@ run_tests (char *logname)
int logfile;
char *strres, *eol, *nextline;
DWORD strsize;
char build[64];
SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
@ -539,7 +540,8 @@ run_tests (char *logname)
xprintf ("Version 4\n");
strres = extract_rcdata (MAKEINTRESOURCE(WINE_BUILD), STRINGRES, &strsize);
xprintf ("Tests from build ");
if (strres) xprintf ("%.*s", strsize, strres);
if (LoadStringA( 0, IDS_BUILD_ID, build, sizeof(build) )) xprintf( "%s\n", build );
else if (strres) xprintf ("%.*s", strsize, strres);
else xprintf ("-\n");
strres = extract_rcdata (MAKEINTRESOURCE(TESTS_URL), STRINGRES, &strsize);
xprintf ("Archive: ");

View File

@ -42,6 +42,8 @@
#define IDC_EDIT 4000
#define IDC_ABOUT 4001
#define IDS_BUILD_ID 1
/* Resource types */
#define TESTRES 1000

View File

@ -24,6 +24,13 @@
#include "resource.h"
#ifdef BUILD_SHA1
STRINGTABLE
BEGIN
IDS_BUILD_ID BUILD_SHA1
END
#endif
IDD_TAG DIALOG 0, 0, 150, 65
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "No tag supplied"