Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4e665b1e
Commit
4e665b1e
authored
Mar 27, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Use the HEAD commit sha1 as default build id.
parent
dfd6c1f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
Makefile.in
programs/winetest/Makefile.in
+2
-0
main.c
programs/winetest/main.c
+3
-1
resource.h
programs/winetest/resource.h
+2
-0
winetest.rc
programs/winetest/winetest.rc
+7
-0
No files found.
programs/winetest/Makefile.in
View file @
4e665b1e
...
...
@@ -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
\
...
...
programs/winetest/main.c
View file @
4e665b1e
...
...
@@ -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: "
);
...
...
programs/winetest/resource.h
View file @
4e665b1e
...
...
@@ -42,6 +42,8 @@
#define IDC_EDIT 4000
#define IDC_ABOUT 4001
#define IDS_BUILD_ID 1
/* Resource types */
#define TESTRES 1000
...
...
programs/winetest/winetest.rc
View file @
4e665b1e
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment