test_libFLAC.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh -e
  2. # FLAC - Free Lossless Audio Codec
  3. # Copyright (C) 2001-2009 Josh Coalson
  4. # Copyright (C) 2011-2023 Xiph.Org Foundation
  5. #
  6. # This file is part the FLAC project. FLAC is comprised of several
  7. # components distributed under different licenses. The codec libraries
  8. # are distributed under Xiph.Org's BSD-like license (see the file
  9. # COPYING.Xiph in this distribution). All other programs, libraries, and
  10. # plugins are distributed under the GPL (see COPYING.GPL). The documentation
  11. # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
  12. # FLAC distribution contains at the top the terms under which it may be
  13. # distributed.
  14. #
  15. # Since this particular file is relevant to all components of FLAC,
  16. # it may be distributed under the Xiph.Org license, which is the least
  17. # restrictive of those mentioned above. See the file COPYING.Xiph in this
  18. # distribution.
  19. . ./common.sh
  20. PATH=../src/test_libFLAC:$PATH
  21. PATH=../objs/$BUILD/bin:$PATH
  22. run_test_libFLAC ()
  23. {
  24. if [ "$FLAC__TEST_WITH_VALGRIND" = yes ] ; then
  25. valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 test_libFLAC${EXE} $* 4>>test_libFLAC.valgrind.log
  26. else
  27. test_libFLAC${EXE} $*
  28. fi
  29. }
  30. run_test_libFLAC "$@"|| die "ERROR during test_libFLAC"