FORS Pipeline Reference Manual  5.0.9
fors-test.c
1 /* $Id: fors-test.c,v 1.2 2007-07-09 06:59:34 jmlarsen Exp $
2  *
3  * This file is part of the FORS Library
4  * Copyright (C) 2002-2006 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author: jmlarsen $
23  * $Date: 2007-07-09 06:59:34 $
24  * $Revision: 1.2 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifdef HAVE_CONFIG_H
29 #include <config.h>
30 #endif
31 
32 #include <fors_utils.h>
33 #include <test.h>
34 
47 static void
49 {
50  test_eq(FORS_BINARY_VERSION, fors_get_version_binary());
51 }
52 
53 
57 int main(void)
58 {
59  TEST_INIT;
60 
61  test_version();
62 
63  TEST_END;
64 }
65 
int main(void)
Generic library tests.
Definition: fors-test.c:57
int fors_get_version_binary(void)
Get FORS library binary version number.
Definition: fors_utils.c:107
static void test_version(void)
Check version number.
Definition: fors-test.c:48