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
2cfa9806
Commit
2cfa9806
authored
Jan 19, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run tests twice by default, first time deleting .pyc/.pyo files.
New option "-q" to leave .pyc/.pyo alone.
parent
6f77667a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
PCbuild/rt.bat
PCbuild/rt.bat
+20
-2
No files found.
PCbuild/rt.bat
View file @
2cfa9806
@rem
Run
Tests
.
Run
the
regression
test
suite
.
@rem
Run
Tests
.
Run
the
regression
test
suite
.
@rem
Plain
"rt"
runs
Release
build
,
arguments
passed
on
to
regrtest
.
@rem
Plain
"rt"
runs
Release
build
,
arguments
passed
on
to
regrtest
.
@rem
"rt -d"
runs
Debug
build
similarly
,
after
shifting
off
-d
.
@rem
"rt -d"
runs
Debug
build
similarly
,
after
shifting
off
-d
.
@rem
Normally
the
tests
are
run
twice
,
the
first
time
after
deleting
@rem
all
the
.py
[
co
]
files
from
Lib
/
and
Lib
/test
.
But
@rem
"rt -q"
(
for
Quick
)
runs
the
tests
just
once
,
and
without
@rem
bothering
to
delete
.py
[
co
]
files
.
@set _exe
=
python
@set _exe
=
python
@if
"
%
1"
==
"-d"
set
_exe
=
python_d
@set _qmode
=
no
@if
"
%
1"
==
"-d"
shift
@if
"
%
1"
==
"-q"
set
_qmode
=
yes
@if
"
%
1"
==
"-q"
shift
@if
"
%
1"
==
"-d"
set
_exe
=
python_d
@if
"
%
1"
==
"-d"
shift
@if
"
%_qmode%
"
==
"yes"
goto
LeavePyc
@if
"
%
1"
==
"-q"
set
_qmode
=
yes
@if
"
%
1"
==
"-q"
shift
@if
"
%_qmode%
"
==
"yes"
goto
LeavePyc
@echo
Deleting
.pyc/.pyo
files
...
@del ..\Lib\
*
.pyc
@del ..\Lib\
*
.pyc
@del ..\Lib\
*
.pyo
@del ..\Lib\
*
.pyo
@del ..\Lib\test\
*
.pyc
@del ..\Lib\test\
*
.pyc
@del ..\Lib\test\
*
.pyo
@del ..\Lib\test\
*
.pyo
:LeavePyc
%_exe%
../lib/test/regrtest.py
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
%
9
%_exe%
../lib/test/regrtest.py
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
%
9
@if
"
%_qmode%
"
==
"yes"
goto
Done
@echo
Running
again
without
deleting
.pyc/.pyo
first
:
%_exe%
../lib/test/regrtest.py
%
1
%
2
%
3
%
4
%
5
%
6
%
7
%
8
%
9
:Done
@set _exe
=
@set _exe
=
@set _qmode
=
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