00001 /* 00002 * Copyright (C) 2008 Hubert Figuiere 00003 * 00004 * This library is free software: you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public License 00006 * as published by the Free Software Foundation, either version 3 of 00007 * the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library. If not, see 00016 * <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #include <stdio.h> 00020 #include <boost/test/minimal.hpp> 00021 00022 #include "libopenraw/rawfile.h" 00023 00024 #include <stdlib.h> 00025 00026 int test_main( int, char *[] ) // note the name! 00027 { 00028 const char **exts = or_get_file_extensions(); 00029 if(exts == NULL) { 00030 fprintf(stderr, "extension list is NULL\n"); 00031 return 1; 00032 } 00033 int i = 0; 00034 while(*exts) { 00035 i++; 00036 exts++; 00037 } 00038 if(i != 9) { 00039 fprintf(stderr, "extension list has the wrong number: %d\n", i); 00040 return 1; 00041 } 00042 return 0; 00043 } 00044 00045 /* 00046 Local Variables: 00047 mode:c++ 00048 c-file-style:"stroustrup" 00049 c-file-offsets:((innamespace . 0)) 00050 indent-tabs-mode:nil 00051 fill-column:80 00052 End: 00053 */