Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
634052e4
Commit
634052e4
authored
Oct 07, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtest: Modified the default program so that it might find the test program.
parent
8d88fe6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
runtest
tools/runtest
+16
-4
No files found.
tools/runtest
View file @
634052e4
...
...
@@ -89,16 +89,28 @@ done
# we must have found an input file
if
[
!
-f
"
$infile
"
]
;
then
usage
;
fi
# set program to the .c file base name if not specified otherwise
if
[
-z
"
$program
"
]
;
then
program
=
`
basename
"
$infile
"
.c
`
# 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
fi
if
[
!
-f
"
$program
"
]
;
then
echo
"Can't find the test program, use the -p argument to specify one"
1>&2
usage
fi
# check/detect topobjdir
if
[
-n
"
$topobjdir
"
]
;
then
if
[
!
-f
"
$topobjdir
/server/wineserver"
]
then
echo
"Wrong -T argument,
$topobjdir
/server/wineserver does not exist"
2>&1
echo
"Wrong -T argument,
$topobjdir
/server/wineserver does not exist"
1>&2
usage
fi
else
...
...
@@ -107,7 +119,7 @@ else
elif
[
-f
"../../server/wineserver"
]
;
then
topobjdir
=
"../.."
elif
[
-f
"../../../server/wineserver"
]
;
then
topobjdir
=
"../../.."
else
echo
"Can't find the top of the Wine tree (use the -T argument)"
2>&1
echo
"Can't find the top of the Wine tree (use the -T argument)"
1>&2
usage
fi
fi
...
...
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