Skip to content

Commit

Permalink
Tidy runtests.sh more.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Jan 26, 2020
1 parent 13ca111 commit dff3611
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 79 deletions.
15 changes: 15 additions & 0 deletions test/stdlib/2.6-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,18 @@ SKIP_TESTS=(
# .pyenv/versions/2.6.9/lib/python2.6/pyclbr.pyc
)
# About 305 unit-test files in about 12 minutes

if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_aifc.py]=1
SKIP_TESTS[test_array.py]=1

# SyntaxError: Non-ASCII character '\xdd' in file test_base64.py on line 153, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
SKIP_TESTS[test_base64.py]=1
SKIP_TESTS[test_decimal.py]=1 # Might be a POWER math thing

# output indicates expected == output, but this fails anyway.
# Maybe the underlying encoding is subtlely different so it
# looks the same?
fi
14 changes: 14 additions & 0 deletions test/stdlib/2.7-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@ SKIP_TESTS=(
[test_zipimport.py]=1 #
)
# 334 unit-test files in about 15 minutes

if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_array.py]=1
SKIP_TESTS[test_ast.py]=1
SKIP_TESTS[test_audioop.py]=1
SKIP_TESTS[test_doctest2.py]=1 # a POWER thing?
SKIP_TESTS[test_httplib.py]=1 # Ok, but POWER has problems with this
SKIP_TESTS[test_pdb.py]=1 # Ok, but POWER has problems with this

# SyntaxError: Non-ASCII character '\xdd' in file test_base64.py on line 153, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
SKIP_TESTS[test_base64.py]=1
fi
7 changes: 7 additions & 0 deletions test/stdlib/3.2-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@ SKIP_TESTS=(
[test_zipfile64.py]=1 # Too long to run

)

if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_exception_variations.py]=1
SKIP_TESTS[test_quopri.py]=1
fi
10 changes: 10 additions & 0 deletions test/stdlib/3.3-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ SKIP_TESTS=(
[test_zipfile64.py]=1 # Too long to run
)
# About 300 unit-test files in about 20 minutes

if (( batch )) ; then
SKIP_TESTS[test_ftplib.py]=1 # Runs too long on POWER; over 15 seconds
SKIP_TESTS[test_idle.py]=1 # No tk
SKIP_TESTS[test_pep352.py]=1 # UnicodeDecodeError may be funny on weird environments
SKIP_TESTS[test_pep380.py]=1 # test_delegating_generators_claim_to_be_running ?
# Fails in crontab environment?
# Figure out what's up here
# SKIP_TESTS[test_exception_variations.py]=1
fi
8 changes: 8 additions & 0 deletions test/stdlib/3.4-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ SKIP_TESTS=(
[test_zlib.py]=1
)
# 304 unit-test file in about 20 minutes

if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_exception_variations.py]=1
SKIP_TESTS[test_mailbox.py]=1 # Takes to long on POWER; over 15 secs
SKIP_TESTS[test_quopri.py]=1
fi
16 changes: 16 additions & 0 deletions test/stdlib/3.5-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,19 @@ SKIP_TESTS=(
[test_zlib.py]=1
)
# About 260 unit-test in about 16 minutes

if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_bisect.py]=1
SKIP_TESTS[test_buffer.py]=1 # too long
SKIP_TESTS[test_compileall.py]=1 # Something weird on POWER
SKIP_TESTS[test_codeccallbacks.py]=1 # Something differenet in locale?
SKIP_TESTS[test_distutils.py]=1

SKIP_TESTS[test_exception_variations.py]=1
SKIP_TESTS[test_quopri.py]=1
SKIP_TESTS[test_ioctl.py]=1 # it fails on its own
SKIP_TESTS[test_tarfile.py]=1 # too long to run on POWER 15 secs
SKIP_TESTS[test_venv.py]=1 # takes too long 11 seconds
fi
6 changes: 6 additions & 0 deletions test/stdlib/3.6-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,9 @@ SKIP_TESTS=(
[test_zlib.py]=1
)
# 236 unit-test files in about 13 minutes

if (( batch )) ; then
SKIP_TESTS[test_codeccallbacks.py]=1
# locale on test machine is probably customized
SKIP_TESTS[test__locale.py]=1
fi
7 changes: 7 additions & 0 deletions test/stdlib/3.7-exclude.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@ SKIP_TESTS=(
[test_zipfile64.py]=1 # Too long to run
)
# 278 unit-test files in about 15 minutes

if (( batch )) ; then
SKIP_TESTS[test_distutils.py]=1
SKIP_TESTS[test_fileio.py]=1
SKIP_TESTS[test_gc.py]=1
SKIP_TESTS[test_zipimport_support.py]=1
fi
79 changes: 0 additions & 79 deletions test/stdlib/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,37 +71,9 @@ case $PYVERSION in
;;
2.6)
. ./2.6-exclude.sh
if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_aifc.py]=1
SKIP_TESTS[test_array.py]=1

# SyntaxError: Non-ASCII character '\xdd' in file test_base64.py on line 153, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
SKIP_TESTS[test_base64.py]=1
SKIP_TESTS[test_decimal.py]=1 # Might be a POWER math thing

# output indicates expected == output, but this fails anyway.
# Maybe the underlying encoding is subtlely different so it
# looks the same?
fi
;;
2.7)
. ./2.7-exclude.sh
# About 335 unit-test remaining files run in about 20 minutes and 11 seconds
if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_array.py]=1
SKIP_TESTS[test_ast.py]=1
SKIP_TESTS[test_audioop.py]=1
SKIP_TESTS[test_doctest2.py]=1 # a POWER thing?
SKIP_TESTS[test_httplib.py]=1 # Ok, but POWER has problems with this
SKIP_TESTS[test_pdb.py]=1 # Ok, but POWER has problems with this

# SyntaxError: Non-ASCII character '\xdd' in file test_base64.py on line 153, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
SKIP_TESTS[test_base64.py]=1
fi
;;
3.0)
SKIP_TESTS=(
Expand Down Expand Up @@ -135,72 +107,21 @@ case $PYVERSION in
;;
3.2)
. ./3.2-exclude.sh
if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_exception_variations.py]=1
SKIP_TESTS[test_quopri.py]=1
fi
;;

3.3)
. ./3.3-exclude.sh
if (( batch )) ; then
SKIP_TESTS[test_ftplib.py]=1 # Runs too long on POWER; over 15 seconds
SKIP_TESTS[test_idle.py]=1 # No tk
SKIP_TESTS[test_pep352.py]=1 # UnicodeDecodeError may be funny on weird environments
SKIP_TESTS[test_pep380.py]=1 # test_delegating_generators_claim_to_be_running ?
# Fails in crontab environment?
# Figure out what's up here
# SKIP_TESTS[test_exception_variations.py]=1
fi
;;

3.4)
. ./3.4-exclude.sh
if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_exception_variations.py]=1
SKIP_TESTS[test_mailbox.py]=1 # Takes to long on POWER; over 15 secs
SKIP_TESTS[test_quopri.py]=1
fi
;;
3.5)
. ./3.5-exclude.sh
# About 240 remaining which can be done in about 10 minutes
if (( batch )) ; then
# Fails in crontab environment?
# Figure out what's up here
SKIP_TESTS[test_bisect.py]=1
SKIP_TESTS[test_buffer.py]=1 # too long
SKIP_TESTS[test_compileall.py]=1 # Something weird on POWER
SKIP_TESTS[test_codeccallbacks.py]=1 # Something differenet in locale?
SKIP_TESTS[test_distutils.py]=1

SKIP_TESTS[test_exception_variations.py]=1
SKIP_TESTS[test_quopri.py]=1
SKIP_TESTS[test_ioctl.py]=1 # it fails on its own
SKIP_TESTS[test_tarfile.py]=1 # too long to run on POWER 15 secs
SKIP_TESTS[test_venv.py]=1 # takes too long 11 seconds
fi
;;

3.6)
. ./3.6-exclude.sh
if (( batch )) ; then
# locale on test machine is probably non-default
SKIP_TESTS[test__locale.py]=1
fi
;;
3.7)
. ./3.7-exclude.sh
if (( batch )) ; then
SKIP_TESTS[test_distutils.py]=1
SKIP_TESTS[test_fileio.py]=1
SKIP_TESTS[test_zipimport_support.py]=1

fi
;;
3.8)
. ./3.8-exclude.sh
Expand Down

0 comments on commit dff3611

Please sign in to comment.