test-exec-path.patch 720 B

1234567891011121314151617181920212223
  1. Description: Fix path to tangd-* executables in test suite
  2. Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
  3. Date: 2017-11-06
  4. Forwarded: not-needed
  5. --- a/tests/pin-tang
  6. +++ b/tests/pin-tang
  7. @@ -31,12 +31,12 @@
  8. mkdir -p $TMP/cache
  9. # Generate the server keys
  10. -/usr/libexec/tangd-keygen $TMP/db sig exc
  11. -/usr/libexec/tangd-update $TMP/db $TMP/cache
  12. +/usr/lib/${DEB_HOST_MULTIARCH}/tangd-keygen $TMP/db sig exc
  13. +/usr/lib/${DEB_HOST_MULTIARCH}/tangd-update $TMP/db $TMP/cache
  14. # Start the server
  15. port=`shuf -i 1024-65536 -n 1`
  16. -$SD_ACTIVATE -l 127.0.0.1:$port -a /usr/libexec/tangd $TMP/cache &
  17. +$SD_ACTIVATE -l 127.0.0.1:$port -a /usr/lib/${DEB_HOST_MULTIARCH}/tangd $TMP/cache &
  18. export PID=$!
  19. sleep 0.25