1 /* 2 ** Copyright (C) 2008-2016 Erik de Castro Lopo <erikd@mega-nerd.com> 3 ** 4 ** This program is free software; you can redistribute it and/or modify 5 ** it under the terms of the GNU Lesser General Public License as published by 6 ** the Free Software Foundation; either version 2.1 of the License, or 7 ** (at your option) any later version. 8 ** 9 ** This program is distributed in the hope that it will be useful, 10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 ** GNU Lesser General Public License for more details. 13 ** 14 ** You should have received a copy of the GNU Lesser General Public License 15 ** along with this program; if not, write to the Free Software 16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 19 #include "sfconfig.h" 20 21 #include <stdio.h> 22 #include <stdlib.h> 23 #if defined (HAVE_SYS_TYPES_H) && (HAVE_SYS_TYPES_H == 1) 24 #include <sys/types.h> 25 #endif 26 #include <string.h> 27 #include <stdarg.h> 28 #include <errno.h> 29 30 #include "test_main.h" 31 32 static void test_file_offsets_are_64_bit(void)33test_file_offsets_are_64_bit (void) 34 { 35 print_test_name ("File offsets are 64 bit") ; 36 37 // The Windows specific code path uses the 64 bit file I/O APIs. 38 if (! USE_WINDOWS_API && sizeof (off_t) != 8) 39 { printf ("\n\nError : sizeof (off_t) is %zd (should be 8).\n\n", sizeof (off_t)) ; 40 exit (1) ; 41 } ; 42 43 puts ("ok") ; 44 } /* test_file_offsets_are_64_bit */ 45 46 int main(void)47main (void) 48 { 49 test_file_offsets_are_64_bit () ; 50 test_conversions () ; 51 test_endswap () ; 52 test_float_convert () ; 53 test_double_convert () ; 54 55 test_log_printf () ; 56 test_binheader_writef () ; 57 test_file_io () ; 58 59 test_audio_detect () ; 60 test_ima_oki_adpcm () ; 61 62 test_psf_strlcpy_crlf () ; 63 test_broadcast_var () ; 64 test_cart_var () ; 65 66 test_nms_adpcm () ; 67 68 return 0 ; 69 } /* main */ 70 71