gras/datadesc.little64\
gras/datadesc.big32 gras/datadesc.big32_8_4 gras/datadesc.big32_2 \
gras/mk_datadesc_structs.pl \
+ xbt/graph.xml \
surf/trace_A.txt surf/trace_B.txt surf/trace_A_failure.txt surf/platform.xml
# Data sets still to regenerate:
xbt_tests = \
xbt/log_usage \
xbt/heap_bench \
+ xbt/graphxml_usage \
xbt/context_usage
RL_tests = \
xbt_heap_bench_LDADD= $(LDADD_RL)
+xbt_graphxml_usage_LDADD= $(LDADD_SG)
+
xbt_context_usage_LDADD= $(LDADD_SG)
surf_maxmin_usage_LDADD= $(LDADD_SG)
xbt_TESTS=" \
xbt/log_usage@EXEEXT@; \
xbt/context_usage@EXEEXT@; \
+ xbt/graphxml_usage@EXEEXT@ @srcdir@/xbt/graph.xml; \
xbt/heap_bench@EXEEXT@;"
surf_TESTS="surf/maxmin_usage@EXEEXT@; \
--- /dev/null
+/* $Id$ */
+
+/* A few basic tests for the graphxml library */
+
+/* Copyright (c) 2006 Darina Dimitrova, Arnaud Legrand. All rights reserved.*/
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include <stdio.h>
+#include <xbt/module.h>
+#include "xbt/graph.h"
+#include "xbt/graphxml.h"
+
+
+void test(char *graph_file);
+void test(char *graph_file)
+{
+ xbt_graph_t graph = xbt_graph_read(graph_file);
+ xbt_graph_free_graph(graph, NULL, NULL, NULL);
+}
+
+int main(int argc, char** argv)
+{
+ xbt_init(&argc,argv);
+ if(argc==1) {
+ fprintf(stderr,"Usage : %s graph.xml\n",argv[0]);
+ return 1;
+ }
+ test(argv[1]);
+
+ return 0;
+}