libtsfuncs is a library for mpeg PSI parsing and generation. https://georgi.unixsol.org/programs/libtsfuncs/

tstest_valgrind 377B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. ulimit -c unlimited
  3. valgrind \
  4. --log-file=tstest-$(date +%F-%H:%M:%S)-valgrind.log \
  5. --leak-check=full \
  6. --show-reachable=yes \
  7. --undef-value-errors=no \
  8. --trace-children=yes \
  9. --run-libc-freeres=yes \
  10. --time-stamp=yes \
  11. -- \
  12. ./tstest > tstest.test.now
  13. diff -u tstest.test.expect tstest.test.now
  14. if [ $? != 0 ]
  15. then
  16. echo "DIFFERENCE!"
  17. else
  18. echo "OK"
  19. fi