You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
21 lines
607 B
Bash
Executable File
21 lines
607 B
Bash
Executable File
#!/bin/bash
|
|
USER=${USER:-rocky}
|
|
EMAIL=${EMAIL:-rb@dustyfeet.com}
|
|
SUBJECT_PREFIX="stdlib unit testing for"
|
|
for VERSION in 2.6.9 2.7.14 3.4.8 3.5.5 3.6.4 ; do
|
|
typeset -i rc=0
|
|
LOGFILE=/tmp/runtests-$VERSION-$$.log
|
|
if ! pyenv local $VERSION ; then
|
|
rc=1
|
|
else
|
|
/bin/bash ./runtests.sh >$LOGFILE 2>&1
|
|
rc=$?
|
|
fi
|
|
if ((rc == 0)); then
|
|
tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION ok" ${USER}@localhost
|
|
else
|
|
tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION not ok" ${USER}@localhost
|
|
tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION not ok" $EMAIL
|
|
fi
|
|
done
|