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
96346ed6
Commit
96346ed6
authored
Feb 15, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtest: Fix handling of test binaries in the programs directory.
parent
bd5f4637
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
runtest
tools/runtest
+16
-8
No files found.
tools/runtest
View file @
96346ed6
...
...
@@ -91,14 +91,22 @@ done
if
[
-z
"
$program
"
]
;
then
# try to autodetect the test program name based on the working directory
working_path
=
`
pwd
`
working_basename
=
`
basename
"
$working_path
"
`
if
[
"
$working_basename
"
=
"tests"
]
;
then
parent_path
=
`
dirname
"
$working_path
"
`
parent_basename
=
`
basename
"
$parent_path
"
`
program
=
"
${
parent_basename
}
_test.exe.so"
elif
[
-d
"tests"
]
;
then
program
=
"tests/
${
working_basename
}
_test.exe.so"
fi
case
$working_path
in
*
/dlls/
*
/tests
)
parent_path
=
`
dirname
"
$working_path
"
`
program
=
`
basename
"
$parent_path
"
`
_test.exe.so
;;
*
/dlls/
*
)
program
=
tests/
`
basename
"
$working_path
"
`
_test.exe.so
;;
*
/programs/
*
/tests
)
parent_path
=
`
dirname
"
$working_path
"
`
program
=
`
basename
"
$parent_path
"
`
.exe_test.exe.so
;;
*
/programs/
*
)
program
=
tests/
`
basename
"
$working_path
"
`
.exe_test.exe.so
;;
esac
fi
if
[
!
-f
"
$program
"
]
;
then
echo
"Can't find the test program, use the -p argument to specify one"
1>&2
...
...
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