You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
better output in batch testing
This commit is contained in:
@@ -15,13 +15,14 @@ function displaytime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
. ../admin-tools/pyenv-newer-versions
|
. ../admin-tools/pyenv-newer-versions
|
||||||
# PYVERSIONS=${PYVERSIONS:-"3.7.6"}
|
|
||||||
|
|
||||||
USER=${USER:-rocky}
|
USER=${USER:-rocky}
|
||||||
EMAIL=${EMAIL:-rb@dustyfeet.com}
|
EMAIL=${EMAIL:-rb@dustyfeet.com}
|
||||||
MAX_TESTS=${MAX_TESTS:-800}
|
MAX_TESTS=${MAX_TESTS:-800}
|
||||||
typeset -i RUN_STARTTIME=$(date +%s)
|
typeset -i RUN_STARTTIME=$(date +%s)
|
||||||
|
|
||||||
|
# PYVERSIONS="3.5.6"
|
||||||
|
actual_versions=""
|
||||||
for VERSION in $PYVERSIONS ; do
|
for VERSION in $PYVERSIONS ; do
|
||||||
typeset -i rc=0
|
typeset -i rc=0
|
||||||
LOGFILE=/tmp/pyenvlib-$VERSION-$$.log
|
LOGFILE=/tmp/pyenvlib-$VERSION-$$.log
|
||||||
@@ -40,9 +41,13 @@ for VERSION in $PYVERSIONS ; do
|
|||||||
continue
|
continue
|
||||||
elif [[ $VERSION == '3.0.1' ]] ; then
|
elif [[ $VERSION == '3.0.1' ]] ; then
|
||||||
continue
|
continue
|
||||||
|
elif [[ $VERSION == '2.6.9' ]] ; then
|
||||||
|
MAX_TESTS=1300
|
||||||
|
continue
|
||||||
else
|
else
|
||||||
MAX_TESTS=800
|
MAX_TESTS=800
|
||||||
fi
|
fi
|
||||||
|
actual_versions="$actual_versions $VERSION"
|
||||||
|
|
||||||
if ! pyenv local $VERSION ; then
|
if ! pyenv local $VERSION ; then
|
||||||
rc=1
|
rc=1
|
||||||
@@ -50,7 +55,9 @@ for VERSION in $PYVERSIONS ; do
|
|||||||
echo Python Version $(pyenv local) > $LOGFILE
|
echo Python Version $(pyenv local) > $LOGFILE
|
||||||
echo "" >> $LOGFILE
|
echo "" >> $LOGFILE
|
||||||
typeset -i ALL_FILES_STARTTIME=$(date +%s)
|
typeset -i ALL_FILES_STARTTIME=$(date +%s)
|
||||||
python ./test_pyenvlib.py --max ${MAX_TESTS} --syntax-verify --$VERSION >>$LOGFILE 2>&1
|
cmd="python ./test_pyenvlib.py --max ${MAX_TESTS} --syntax-verify --$VERSION"
|
||||||
|
echo "$cmd" >>$LOGFILE 2>&1
|
||||||
|
$cmd >>$LOGFILE 2>&1
|
||||||
rc=$?
|
rc=$?
|
||||||
|
|
||||||
echo Python Version $(pyenv local) >> $LOGFILE
|
echo Python Version $(pyenv local) >> $LOGFILE
|
||||||
@@ -74,4 +81,4 @@ done
|
|||||||
typeset -i RUN_ENDTIME=$(date +%s)
|
typeset -i RUN_ENDTIME=$(date +%s)
|
||||||
(( time_diff = RUN_ENDTIME - RUN_STARTTIME))
|
(( time_diff = RUN_ENDTIME - RUN_STARTTIME))
|
||||||
elapsed_time=$(displaytime $time_diff)
|
elapsed_time=$(displaytime $time_diff)
|
||||||
echo "Run complete $elapsed_time for versions $PYVERSIONS" | mail -s "pyenv weak verify in $elapsed_time" ${EMAIL}
|
echo "Run complete $elapsed_time for versions $actual_versions" | mail -s "pyenv weak verify in $elapsed_time" ${EMAIL}
|
||||||
|
Reference in New Issue
Block a user