[Git][clojure-team/potemkin-clojure][debian/main] d/tests: fix broken autopkgtest. (Closes: #980390 )

Louis-Philippe Véronneau gitlab at salsa.debian.org
Thu Jan 21 17:48:35 GMT 2021



Louis-Philippe Véronneau pushed to branch debian/main at Debian Clojure Maintainers / potemkin-clojure


Commits:
272e1910 by Louis-Philippe Véronneau at 2021-01-21T12:47:01-05:00
d/tests: fix broken autopkgtest. (Closes: #980390 )

- - - - -


2 changed files:

- debian/changelog
- debian/tests/unittests


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+potemkin-clojure (0.4.5-4) unstable; urgency=medium
+
+  * Team upload.
+  * d/tests: fix broken autopkgtest. (Closes: #980390 )
+
+ -- Louis-Philippe Véronneau <pollo at debian.org>  Thu, 21 Jan 2021 12:11:50 -0500
+
 potemkin-clojure (0.4.5-3) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/tests/unittests
=====================================
@@ -1,9 +1,22 @@
 #!/bin/sh
 set -efu
 
-CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/riddley.jar:/usr/share/java/clj-tuple.jar:/usr/share/java/potemkin.jar
+CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/riddley.jar:/usr/share/java/clj-tuple.jar:/usr/share/java/potemkin.jar:test
 
 cp -a test "$AUTOPKGTEST_TMP"
 cd "$AUTOPKGTEST_TMP"
 
-find . -name "*.clj" | xargs clojure -cp $CLASSPATH
+clojure \
+    -cp $CLASSPATH \
+    -e "(require '[clojure.test])" \
+    -e "(require '[potemkin.imports-test])" \
+    -e "(require '[potemkin.macros-test])" \
+    -e "(require '[potemkin.namespaces-test])" \
+    -e "(require '[potemkin.types-test])" \
+    -e "(require '[potemkin.utils-test])" \
+    -e "(System/exit (if (clojure.test/successful? (clojure.test/run-tests
+         'potemkin.imports-test
+         'potemkin.macros-test
+         'potemkin.namespaces-test
+         'potemkin.types-test
+         'potemkin.utils-test)) 0 1))"



View it on GitLab: https://salsa.debian.org/clojure-team/potemkin-clojure/-/commit/272e19109e9c584b43f688313714599ef6d2d599

-- 
View it on GitLab: https://salsa.debian.org/clojure-team/potemkin-clojure/-/commit/272e19109e9c584b43f688313714599ef6d2d599
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/pkg-java-commits/attachments/20210121/8ee714e3/attachment.html>


More information about the pkg-java-commits mailing list