• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* test_libFLAC - Unit tester for libFLAC
2  * Copyright (C) 2000-2009  Josh Coalson
3  * Copyright (C) 2011-2018  Xiph.Org Foundation
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifdef HAVE_CONFIG_H
21 #  include <config.h>
22 #endif
23 
24 #include "bitreader.h"
25 #include "bitwriter.h"
26 #include "crc.h"
27 #include "decoders.h"
28 #include "encoders.h"
29 #include "endswap.h"
30 #include "format.h"
31 #include "metadata.h"
32 #include "md5.h"
33 
main(void)34 int main(void)
35 {
36 	if(!test_endswap())
37 		return 1;
38 
39 	if(!test_crc())
40 		return 1;
41 
42 	if(!test_md5())
43 		return 1;
44 
45 	if(!test_bitreader())
46 		return 1;
47 
48 	if(!test_bitwriter())
49 		return 1;
50 
51 	if(!test_format())
52 		return 1;
53 
54 	if(!test_encoders())
55 		return 1;
56 
57 	if(!test_decoders())
58 		return 1;
59 
60 	if(!test_metadata())
61 		return 1;
62 
63 	return 0;
64 }
65