Andreas Tille pushed to branch master at Debian Med / sshash


Commits:
cbfcb1f1 by Andreas Tille at 2026-11-23T07:30:34+01:00
Build and run the unit test that ships in the examples directory

- - - - -


1 changed file:

- debian/tests/run-unit-test


Changes:

=====================================
debian/tests/run-unit-test
=====================================
@@ -53,16 +53,6 @@ echo "=== sshash usage ==="
 sshash > usage.log 2>&1
 grep -q "Available tools" usage.log
 
-cd test
-# Testing development examples
-for test in test_*.cpp; do
-    name="${test%.cpp}"
-    echo "=== $name ==="
-    c++ -O2 -Wall -Wextra -I.. $(pkg-config --cflags sshash) \
-        "$test" -o "$name" $(pkg-config --libs sshash)
-    "./$name" 31
-done
-
 # The tool must use the shared library rather than a private copy of it.
 echo "=== sshash links against libsshash0 ==="
 ldd "$(command -v sshash)" | grep -q 'libsshash\.so\.0 =>'
@@ -110,3 +100,16 @@ c++ -O2 -Wall -Wextra consumer.cpp -o consumer \
     $(pkg-config --cflags --libs sshash)
 ldd ./consumer | grep -q 'libsshash\.so\.0 =>'
 ./consumer input.fa
+
+# Build and run the unit test that ships in the examples directory of
+# libsshash-dev.  The sources refer to the installed headers by name, so they
+# have to be built from within the copied examples tree; the subshell keeps
+# the working directory for the consumer below.
+cd test
+for test in test_*.cpp; do
+    name="${test%.cpp}"
+    echo "=== $name ==="
+    c++ -O2 -Wall -Wextra -I.. $(pkg-config --cflags sshash) \
+            "$test" -o "$name" $(pkg-config --libs sshash)
+    "./$name" 31
+done



View it on GitLab: 
https://salsa.debian.org/med-team/sshash/-/commit/cbfcb1f178e43295a7ec12245dc9a25770bdfccf

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/sshash/-/commit/cbfcb1f178e43295a7ec12245dc9a25770bdfccf
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to