Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Image.py and Image_df.py extended testing examples are now supported on Ubuntu and CentOS #338

Merged
merged 4 commits into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,20 @@ then
"${PythonExe}" -m pytest --verbose --maxfail=1000 --capture=sys "${TestsPath2}"

if [ ${__runExtendedTests} = true ]
then
then
echo "Running extended tests ... "
if [ ! "$(uname -s)" = "Darwin" ]
then
# Required for Image.py and Image_df.py to run successfully on Ubuntu.
{
apt-get update
apt-get install libc6-dev -y
apt-get install libgdiplus -y
} || {
# Required for Image.py and Image_df.py to run successfully on CentOS.
yum install glibc-devel -y
}
fi
"${PythonExe}" -m pytest --verbose --maxfail=1000 --capture=sys "${TestsPath3}"
fi
fi
Expand Down
16 changes: 0 additions & 16 deletions src/python/tests_extended/test_docs_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,6 @@ def test_examples(self):
'NaiveBayesClassifier_df.py'
]:
continue
# skip for ubuntu 14 tests
if platform.linux_distribution()[1] == 'jessie/sid':
if name in [
# libdl needs to be setup
'Image.py',
'Image_df.py'
]:
continue
# skip for centos7 tests
if platform.linux_distribution()[0] == 'CentOS Linux':
if name in [
# libgdiplus needs to be setup
'Image.py',
'Image_df.py'
]:
continue

full = os.path.join(fold, name)
cmd = '"{0}" -u "{1}"'.format(
Expand Down