Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e53309ce
Commit
e53309ce
authored
May 23, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This is how I run the tests.
parent
522a6c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
runtests.sh
runtests.sh
+55
-0
No files found.
runtests.sh
0 → 100755
View file @
e53309ce
#!/bin/sh
# A script that runs each unit test independently, with output
# directed to a file in OUT/$T.out. If command line arguments are
# given, they are tests to run; otherwise every file named
# Lib/test/test_* is run (via regrtest). A summary of failing,
# passing and skipped tests is written to stdout and to the files
# GOOD, BAD and SKIPPED.
# Reset PYTHONPATH to avoid alien influences on the tests.
unset
PYTHONPATH
# Choose the Python binary.
case
`
uname
`
in
Darwin
)
PYTHON
=
./python.exe
;;
*
)
PYTHON
=
./python
;;
esac
# Create the output directory if necessary.
mkdir
-p
OUT
# Empty the summary files.
>
GOOD
>
BAD
>
SKIPPED
# Compute the list of tests to run.
case
$#
in
0
)
TESTS
=
`
(
cd
Lib/test
;
ls
test_
*
.py |
sed
's/\.py//'
|
grep
-v
test_socket
)
`
;;
*
)
TESTS
=
"
$@
"
;;
esac
# Run the tests.
for
T
in
$TESTS
do
echo
-n
$T
if
$PYTHON
Lib/test/regrtest.py
-uall
$T
>
OUT/
$T
.out 2>&1
then
if
grep
-q
"1 test skipped:"
OUT/
$T
.out
then
echo
" SKIPPED"
echo
$T
>>
SKIPPED
else
echo
echo
$T
>>
GOOD
fi
else
echo
" BAD"
echo
$T
>>
BAD
fi
done
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