[med-svn] [Git][med-team/nitime][master] Updated Autopkgtest

Israel Komolehin (@Komolehin) gitlab at salsa.debian.org
Thu Dec 21 07:58:39 GMT 2023



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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20231221/96a952e0/attachment-0001.htm>


More information about the debian-med-commit mailing list