GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

simple_tests.c

Go to the documentation of this file.
00001 /** @file simple.c
00002  * Simple GAT application
00003  * 
00004  * Really simple example.  Just creates and destroys a GAT Context.
00005  * 
00006  * @date Thu Sep 18 2003
00007  * 
00008  * @version $Header: /export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/test/simple/simple_tests.c,v 1.2 2004/01/20 13:43:00 merzky Exp $
00009  *
00010  *  Copyright (C) Tom Goodale
00011  *  This file is part of the GAT Engine.
00012  *  Contributed by Tom Goodale <goodale@aei.mpg.de>.
00013  *
00014  *  This library is free software; you can redistribute it and/or
00015  *  modify it under the terms of the GNU Lesser General Public
00016  *  License as published by the Free Software Foundation; either
00017  *  version 2.1 of the License, or (at your option) any later version.
00018  *
00019  *  The GAT Library is distributed in the hope that it will be useful,
00020  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022  *  Lesser General Public License for more details.
00023  *
00024  *  You should have received a copy of the GNU Lesser General Public
00025  *  License along with the GAT Library; if not, write to the Free
00026  *  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00027  *  02111-1307 USA. Copyright notice.
00028  */
00029 
00030 static const char *rcsid = "$Header: /export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/test/simple/simple_tests.c,v 1.2 2004/01/20 13:43:00 merzky Exp $";
00031 
00032 /* System Header Files */
00033 
00034 #include <stdio.h>
00035 
00036 /* GAT Header Files */
00037 
00038 #include <GAT.h>
00039 #include <GATTestUtils.h>
00040 
00041 int main (void)
00042 {
00043   GATContext context;
00044 
00045   GAT_TEST_INIT  (-1);
00046   GAT_TEST_SUITE ("Engine and Adaptor Loading Tests");
00047 
00048   context = GATContext_Create ();
00049 
00050   GAT_TEST_START ("Loading GAT engine");
00051   GAT_TEST       (context);
00052   GAT_TEST_STOP  ();
00053 
00054   return (0);
00055 }
00056