~ubuntu-branches/ubuntu/precise/flac/precise-updates

« back to all changes in this revision

Viewing changes to test/test_libOggFLAC++.sh

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Kwan
  • Date: 2007-05-29 22:56:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529225636-ljeff8xxip09qaap
Tags: 1.1.4-1
* New upstream release. closes: #405167, #411311
  - libOggFLAC and libOggFLAC++ have been merged into libFLAC, so
    remove their corresponding packages.
  - Because of the API changes required to effect the above, there has
    been yet another soname bump. libflac7 -> libflac8 and
    libflac++5 -> libflac++6. Emails have been dispatched to the
    maintainers of dependent packages.
* Some notes on patches that were removed:
  - 02_stdin_stdout, 06_manpage_mention_utf8_convert: merged upstream
  - 08_manpage_warnings: Upstream has changed the manpage so it defintely
    can't fit in in 80 cols, so just forget about it. We'll live.
  - 05_eof_warnings_are_errors: Upstream decided to add a -w option to
    flac to treat all warnings as errors. I am going to defer to that
    for now, but if people think it's stupid let me know and I'll port
    the patch forward.
  - 04_stack_smasher: was a backport from 1.1.3, so it's obsolete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
#  FLAC - Free Lossless Audio Codec
4
 
#  Copyright (C) 2002,2003,2004,2005  Josh Coalson
5
 
#
6
 
#  This file is part the FLAC project.  FLAC is comprised of several
7
 
#  components distributed under difference 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
 
 
20
 
die ()
21
 
{
22
 
        echo $* 1>&2
23
 
        exit 1
24
 
}
25
 
 
26
 
if [ x = x"$1" ] ; then 
27
 
        BUILD=debug
28
 
else
29
 
        BUILD="$1"
30
 
fi
31
 
 
32
 
LD_LIBRARY_PATH=../src/libFLAC/.libs:$LD_LIBRARY_PATH
33
 
LD_LIBRARY_PATH=../src/libOggFLAC/.libs:$LD_LIBRARY_PATH
34
 
LD_LIBRARY_PATH=../src/libOggFLAC++/.libs:$LD_LIBRARY_PATH
35
 
LD_LIBRARY_PATH=../src/share/grabbag/.libs:$LD_LIBRARY_PATH
36
 
LD_LIBRARY_PATH=../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH
37
 
LD_LIBRARY_PATH=../obj/$BUILD/lib:$LD_LIBRARY_PATH
38
 
export LD_LIBRARY_PATH
39
 
PATH=../src/test_libOggFLAC++:$PATH
40
 
PATH=../obj/$BUILD/bin:$PATH
41
 
 
42
 
run_test_libOggFLACpp ()
43
 
{
44
 
        if [ x"$FLAC__VALGRIND" = xyes ] ; then
45
 
                valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 test_libOggFLAC++ $* 4>>test_libOggFLAC++.valgrind.log
46
 
        else
47
 
                test_libOggFLAC++ $*
48
 
        fi
49
 
}
50
 
 
51
 
run_test_libOggFLACpp || die "ERROR during test_libOggFLAC++"