Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#26326 : add self tests to networkx
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Monteil committed Sep 21, 2018
1 parent 6ddd023 commit 9a7dff8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build/pkgs/networkx/spkg-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
if [ -z "$SAGE_LOCAL" ]; then
echo >&2 "SAGE_LOCAL undefined ... exiting"
echo >&2 "Maybe run 'sage --sh'?"
exit 1
fi

cd src

if ! command -v nosetests ; then
echo >&2 'Testing networkx requires the package nose to be installed'
exit 1
fi

echo "Testing networkx..."

nosetests networkx -v

if [ $? -ne 0 ]; then
echo >&2 "Error running self tests."
exit 1
fi

0 comments on commit 9a7dff8

Please sign in to comment.