Israel Komolehin pushed to branch master at Debian Med / nitime
Commits:
52d88fab by Komolehin Israel Timilehin at 2023-12-21T07:38:02+00:00
Updated Autopkgtest
- - - - -
2 changed files:
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: cython3, python3-nitime, python3-setuptools, python3-pytest
-Restrictions: allow-stderr, needs-root
\ No newline at end of file
+Depends: python3-nitime, python3-pytest
+Restrictions: allow-stderr
\ No newline at end of file
=====================================
debian/tests/run-unit-test
=====================================
@@ -1,23 +1,30 @@
#!/bin/bash
-if [ "$AUTOPKGTEST_TMP" = ""]; then
+CUR_DIR=`pwd`
+
+if [ "$AUTOPKGTEST_TMP" = "" ]; then
AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXX`
trap "rm -rf $AUTOPKG_TMP" 0 INT QUIT ABRT PIPE TERM
fi
+cd $AUTOPKGTEST_TMP
+
+
+# Copy Upstream tests
+cp -a ${CUR_DIR}/nitime/algorithms/tests/ $AUTOPKGTEST_TMP
+cp -a ${CUR_DIR}/nitime/analysis/ $AUTOPKGTEST_TMP
+cp -a ${CUR_DIR}/nitime/fmri/ $AUTOPKGTEST_TMP
+cp -a ${CUR_DIR}/nitime/tests/ $AUTOPKGTEST_TMP
+
for py in $(py3versions -s 2> /dev/null)
do
- # Build the package
- $py setup.py install
# Run upstream tests
- $py -m pytest ./nitime/algorithms/
- $py -m pytest ./nitime/analysis/
- $py -m pytest ./nitime/fmri/
- $py -m pytest ./nitime/tests/
+ $py -m pytest
+
done
\ No newline at end of file
View it on GitLab:
https://salsa.debian.org/med-team/nitime/-/commit/52d88fabb992a12aab75046371f0581929104432
--
View it on GitLab:
https://salsa.debian.org/med-team/nitime/-/commit/52d88fabb992a12aab75046371f0581929104432
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit