Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
22d0698d
Kaydet (Commit)
22d0698d
authored
Eyl 07, 2016
tarafından
Steve Dower
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adds test.support.PGO and skips tests that are not useful for PGO.
üst
a5711204
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
39 additions
and
5 deletions
+39
-5
main.py
Lib/test/libregrtest/main.py
+2
-0
__init__.py
Lib/test/support/__init__.py
+5
-1
test_asyncore.py
Lib/test/test_asyncore.py
+3
-0
test_gdb.py
Lib/test/test_gdb.py
+1
-0
test_multiprocessing_fork.py
Lib/test/test_multiprocessing_fork.py
+6
-0
test_multiprocessing_forkserver.py
Lib/test/test_multiprocessing_forkserver.py
+5
-0
test_multiprocessing_main_handling.py
Lib/test/test_multiprocessing_main_handling.py
+3
-0
test_multiprocessing_spawn.py
Lib/test/test_multiprocessing_spawn.py
+5
-0
test_subprocess.py
Lib/test/test_subprocess.py
+3
-0
Makefile.pre.in
Makefile.pre.in
+1
-1
buildrelease.bat
Tools/msi/buildrelease.bat
+5
-3
No files found.
Lib/test/libregrtest/main.py
Dosyayı görüntüle @
22d0698d
...
@@ -473,6 +473,8 @@ class Regrtest:
...
@@ -473,6 +473,8 @@ class Regrtest:
if
self
.
ns
.
wait
:
if
self
.
ns
.
wait
:
input
(
"Press any key to continue..."
)
input
(
"Press any key to continue..."
)
support
.
PGO
=
self
.
ns
.
pgo
setup_tests
(
self
.
ns
)
setup_tests
(
self
.
ns
)
self
.
find_tests
(
tests
)
self
.
find_tests
(
tests
)
...
...
Lib/test/support/__init__.py
Dosyayı görüntüle @
22d0698d
...
@@ -105,7 +105,7 @@ __all__ = [
...
@@ -105,7 +105,7 @@ __all__ = [
"check_warnings"
,
"check_no_resource_warning"
,
"EnvironmentVarGuard"
,
"check_warnings"
,
"check_no_resource_warning"
,
"EnvironmentVarGuard"
,
"run_with_locale"
,
"swap_item"
,
"run_with_locale"
,
"swap_item"
,
"swap_attr"
,
"Matcher"
,
"set_memlimit"
,
"SuppressCrashReport"
,
"sortdict"
,
"swap_attr"
,
"Matcher"
,
"set_memlimit"
,
"SuppressCrashReport"
,
"sortdict"
,
"run_with_tz"
,
"run_with_tz"
,
"PGO"
,
]
]
class
Error
(
Exception
):
class
Error
(
Exception
):
...
@@ -878,6 +878,10 @@ else:
...
@@ -878,6 +878,10 @@ else:
# Save the initial cwd
# Save the initial cwd
SAVEDCWD
=
os
.
getcwd
()
SAVEDCWD
=
os
.
getcwd
()
# Set by libregrtest/main.py so we can skip tests that are not
# useful for PGO
PGO
=
False
@contextlib.contextmanager
@contextlib.contextmanager
def
temp_dir
(
path
=
None
,
quiet
=
False
):
def
temp_dir
(
path
=
None
,
quiet
=
False
):
"""Return a context manager that creates a temporary directory.
"""Return a context manager that creates a temporary directory.
...
...
Lib/test/test_asyncore.py
Dosyayı görüntüle @
22d0698d
...
@@ -11,6 +11,9 @@ import struct
...
@@ -11,6 +11,9 @@ import struct
from
test
import
support
from
test
import
support
from
io
import
BytesIO
from
io
import
BytesIO
if
support
.
PGO
:
raise
unittest
.
SkipTest
(
"test is not helpful for PGO"
)
try
:
try
:
import
threading
import
threading
except
ImportError
:
except
ImportError
:
...
...
Lib/test/test_gdb.py
Dosyayı görüntüle @
22d0698d
...
@@ -110,6 +110,7 @@ HAS_PYUP_PYDOWN = gdb_has_frame_select()
...
@@ -110,6 +110,7 @@ HAS_PYUP_PYDOWN = gdb_has_frame_select()
BREAKPOINT_FN
=
'builtin_id'
BREAKPOINT_FN
=
'builtin_id'
@support.skipIf
(
support
.
PGO
,
"not useful for PGO"
)
class
DebuggerTests
(
unittest
.
TestCase
):
class
DebuggerTests
(
unittest
.
TestCase
):
"""Test that the debugger can debug Python."""
"""Test that the debugger can debug Python."""
...
...
Lib/test/test_multiprocessing_fork.py
Dosyayı görüntüle @
22d0698d
import
unittest
import
unittest
import
test._test_multiprocessing
import
test._test_multiprocessing
from
test
import
support
if
support
.
PGO
:
raise
unittest
.
SkipTest
(
"test is not helpful for PGO"
)
test
.
_test_multiprocessing
.
install_tests_in_module_dict
(
globals
(),
'fork'
)
test
.
_test_multiprocessing
.
install_tests_in_module_dict
(
globals
(),
'fork'
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
Lib/test/test_multiprocessing_forkserver.py
Dosyayı görüntüle @
22d0698d
import
unittest
import
unittest
import
test._test_multiprocessing
import
test._test_multiprocessing
from
test
import
support
if
support
.
PGO
:
raise
unittest
.
SkipTest
(
"test is not helpful for PGO"
)
test
.
_test_multiprocessing
.
install_tests_in_module_dict
(
globals
(),
'forkserver'
)
test
.
_test_multiprocessing
.
install_tests_in_module_dict
(
globals
(),
'forkserver'
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
Lib/test/test_multiprocessing_main_handling.py
Dosyayı görüntüle @
22d0698d
...
@@ -16,6 +16,9 @@ from test.support.script_helper import (
...
@@ -16,6 +16,9 @@ from test.support.script_helper import (
make_pkg
,
make_script
,
make_zip_pkg
,
make_zip_script
,
make_pkg
,
make_script
,
make_zip_pkg
,
make_zip_script
,
assert_python_ok
)
assert_python_ok
)
if
support
.
PGO
:
raise
unittest
.
SkipTest
(
"test is not helpful for PGO"
)
# Look up which start methods are available to test
# Look up which start methods are available to test
import
multiprocessing
import
multiprocessing
AVAILABLE_START_METHODS
=
set
(
multiprocessing
.
get_all_start_methods
())
AVAILABLE_START_METHODS
=
set
(
multiprocessing
.
get_all_start_methods
())
...
...
Lib/test/test_multiprocessing_spawn.py
Dosyayı görüntüle @
22d0698d
import
unittest
import
unittest
import
test._test_multiprocessing
import
test._test_multiprocessing
from
test
import
support
if
support
.
PGO
:
raise
unittest
.
SkipTest
(
"test is not helpful for PGO"
)
test
.
_test_multiprocessing
.
install_tests_in_module_dict
(
globals
(),
'spawn'
)
test
.
_test_multiprocessing
.
install_tests_in_module_dict
(
globals
(),
'spawn'
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
Lib/test/test_subprocess.py
Dosyayı görüntüle @
22d0698d
...
@@ -21,6 +21,9 @@ try:
...
@@ -21,6 +21,9 @@ try:
except
ImportError
:
except
ImportError
:
threading
=
None
threading
=
None
if
support
.
PGO
:
raise
unittest
.
SkipTest
(
"test is not helpful for PGO"
)
mswindows
=
(
sys
.
platform
==
"win32"
)
mswindows
=
(
sys
.
platform
==
"win32"
)
#
#
...
...
Makefile.pre.in
Dosyayı görüntüle @
22d0698d
...
@@ -235,7 +235,7 @@ TCLTK_LIBS= @TCLTK_LIBS@
...
@@ -235,7 +235,7 @@ TCLTK_LIBS= @TCLTK_LIBS@
# The task to run while instrumented when building the profile-opt target.
# The task to run while instrumented when building the profile-opt target.
# We exclude unittests with -x that take a rediculious amount of time to
# We exclude unittests with -x that take a rediculious amount of time to
# run in the instrumented training build or do not provide much value.
# run in the instrumented training build or do not provide much value.
PROFILE_TASK
=
-m
test.regrtest
--pgo
-x
test_asyncore test_gdb test_multiprocessing_fork test_multiprocessing_forkserver test_multiprocessing_main_handling test_multiprocessing_spawn test_subprocess
PROFILE_TASK
=
-m
test.regrtest
--pgo
# report files for gcov / lcov coverage report
# report files for gcov / lcov coverage report
COVERAGE_INFO
=
$(abs_builddir)
/coverage.info
COVERAGE_INFO
=
$(abs_builddir)
/coverage.info
...
...
Tools/msi/buildrelease.bat
Dosyayı görüntüle @
22d0698d
...
@@ -35,7 +35,7 @@ set BUILDX86=
...
@@ -35,7 +35,7 @@ set BUILDX86=
set BUILDX64=
set BUILDX64=
set TARGET=Rebuild
set TARGET=Rebuild
set TESTTARGETDIR=
set TESTTARGETDIR=
set PGO=
set PGO=
default
:CheckOpts
:CheckOpts
...
@@ -55,6 +55,7 @@ if "%1" EQU "--build" (set TARGET=Build) && shift && goto CheckOpts
...
@@ -55,6 +55,7 @@ if "%1" EQU "--build" (set TARGET=Build) && shift && goto CheckOpts
if "%1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
if "%1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
if "%1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
if "%1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
if "%1" EQU "--pgo" (set PGO=%~2) && shift && shift && goto CheckOpts
if "%1" EQU "--pgo" (set PGO=%~2) && shift && shift && goto CheckOpts
if "%1" EQU "--skip-pgo" (set PGO=) && shift && goto CheckOpts
if "%1" NEQ "" echo Invalid option: "%1" && exit /B 1
if "%1" NEQ "" echo Invalid option: "%1" && exit /B 1
...
@@ -195,7 +196,7 @@ exit /B 0
...
@@ -195,7 +196,7 @@ exit /B 0
:Help
:Help
echo buildrelease.bat [--out DIR] [-x86] [-x64] [--certificate CERTNAME] [--build] [--skip-build]
echo buildrelease.bat [--out DIR] [-x86] [-x64] [--certificate CERTNAME] [--build] [--skip-build]
echo [--pgo COMMAND] [--skip-doc] [--download DOWNLOAD URL] [--test TARGETDIR]
echo [--pgo COMMAND] [--skip-
pgo] [--skip-
doc] [--download DOWNLOAD URL] [--test TARGETDIR]
echo [-h]
echo [-h]
echo.
echo.
echo --out (-o) Specify an additional output directory for installers
echo --out (-o) Specify an additional output directory for installers
...
@@ -204,7 +205,8 @@ echo -x64 Build x64 installers
...
@@ -204,7 +205,8 @@ echo -x64 Build x64 installers
echo --build (-b) Incrementally build Python rather than rebuilding
echo --build (-b) Incrementally build Python rather than rebuilding
echo --skip-build (-B) Do not build Python (just do the installers)
echo --skip-build (-B) Do not build Python (just do the installers)
echo --skip-doc (-D) Do not build documentation
echo --skip-doc (-D) Do not build documentation
echo --pgo Build x64 installers using PGO
echo --pgo Specify PGO command for x64 installers
echo --skip-pgo Build x64 installers using PGO
echo --download Specify the full download URL for MSIs
echo --download Specify the full download URL for MSIs
echo --test Specify the test directory to run the installer tests
echo --test Specify the test directory to run the installer tests
echo -h Display this help information
echo -h Display this help information
...
...
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