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
e2e70236
Commit
e2e70236
authored
Feb 02, 2002
by
Patrik Stridvall
Committed by
Alexandre Julliard
Feb 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Made runtest "use strict".
- Added new option -M to specify which modules should be tested as builtin.
parent
62f083ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
Make.rules.in
Make.rules.in
+1
-1
runtest
programs/winetest/runtest
+22
-8
No files found.
Make.rules.in
View file @
e2e70236
...
...
@@ -61,7 +61,7 @@ ALLLINTFLAGS = $(LINTFLAGS) $(DEFS) $(OPTIONS) $(DIVINCL)
WINAPI_CHECK = $(TOPSRCDIR)/tools/winapi_check/winapi_check
WINETEST = $(TOPOBJDIR)/programs/winetest/winetest
RUNTEST = $(TOPSRCDIR)/programs/winetest/runtest
RUNTESTFLAGS = -q -P wine -T $(TOPOBJDIR)
RUNTESTFLAGS = -q -P wine -
M $(MODULE) -
T $(TOPOBJDIR)
TESTRESULTS = $(PLTESTS:.pl=.ok) $(CTESTS:.c=.ok)
WINEBUILD = $(TOPOBJDIR)/tools/winebuild/winebuild
MAKEDEP = $(TOPOBJDIR)/tools/makedep
...
...
programs/winetest/runtest
View file @
e2e70236
...
...
@@ -5,6 +5,8 @@
# Usage: runtest [options] input_file [perl_args...]
#
use
strict
;
sub
usage
{
print
STDERR
<<EOF;
...
...
@@ -12,28 +14,35 @@ sub usage
Usage: $0 [options] input_file [perl_args...]
Options:
-q quiet mode
-v verbose mode (can be specified multiple times)
-I dir prepend dir to Perl include path
-P name set the current platform name
-T dir set Wine tree top directory (autodetected if not specified)
-q quiet mode
-v verbose mode (can be specified multiple times)
-I dir prepend dir to Perl include path
-P name set the current platform name
-M names set the module names to be tested
-T dir set Wine tree top directory (autodetected if not specified)
EOF
exit
1
;
}
# default values
$platform
=
$ENV
{
WINETEST_PLATFORM
};
my
$platform
=
$ENV
{
WINETEST_PLATFORM
};
$ENV
{
WINETEST_DEBUG
}
||=
1
;
my
$topobjdir
;
my
$infile
;
my
@include_dirs
;
my
@modules
;
# parse command-line options
while
(
$#ARGV
>=
0
)
{
$arg
=
shift
@ARGV
;
my
$arg
=
shift
@ARGV
;
if
(
$arg
eq
"-h"
)
{
usage
;
}
if
(
$arg
eq
"-q"
)
{
$ENV
{
WINETEST_DEBUG
}
=
0
;
next
;
}
if
(
$arg
eq
"-v"
)
{
$ENV
{
WINETEST_DEBUG
}
++
;
next
;
}
if
(
$arg
eq
"-P"
)
{
$platform
=
shift
@ARGV
;
next
;
}
if
(
$arg
eq
"-M"
)
{
push
@modules
,
split
/,/
,
shift
@ARGV
;
next
;
}
if
(
$arg
eq
"-I"
)
{
push
@include_dirs
,
shift
@ARGV
;
next
;
}
if
(
$arg
eq
"-T"
)
{
...
...
@@ -86,11 +95,16 @@ else { $basedir = "."; }
if
(
-
d
$basedir
.
"/include"
)
{
push
@include_dirs
,
$basedir
.
"/include"
;
}
$ENV
{
PERL5LIB
}
=
join
(
":"
,
@include_dirs
,
split
(
":"
,
$ENV
{
PERL5LIB
}
)
);
if
(
@modules
)
{
if
(
defined
(
$ENV
{
WINEOPTIONS
}))
{
$ENV
{
WINEOPTIONS
}
.=
" "
;
}
$ENV
{
WINEOPTIONS
}
.=
"--dll "
.
join
(
','
,
@modules
)
.
"=b"
;
}
# and now exec winetest
if
(
defined
(
$topobjdir
))
{
exec
$topobjdir
.
"/programs/winetest/winetest"
,
"--"
,
$infile
,
@ARGV
;
exec
$topobjdir
.
"/programs/winetest/winetest"
,
$infile
,
@ARGV
;
}
exec
"winetest"
,
$infile
,
@ARGV
;
print
STDERR
"Could not exec winetest\n"
;
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