~ubuntu-branches/ubuntu/lucid/igraph/lucid

« back to all changes in this revision

Viewing changes to tests/basic.at

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Malaterre
  • Date: 2009-11-16 18:12:42 UTC
  • Revision ID: james.westby@ubuntu.com-20091116181242-mzv9p5fz9uj57xd1
Tags: upstream-0.5.3
ImportĀ upstreamĀ versionĀ 0.5.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Check the basic (interface) functions and implicitly also compilation
 
2
 
 
3
# Test suite for the IGraph library.
 
4
# Copyright (C) 2005  Gabor Csardi <csardi@rmki.kfki.hu>
 
5
# MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary
 
6
 
7
# This program is free software; you can redistribute it and/or modify
 
8
# it under the terms of the GNU General Public License as published by
 
9
# the Free Software Foundation; either version 2 of the License, or
 
10
# (at your option) any later version.
 
11
 
12
# This program is distributed in the hope that it will be useful,
 
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
# GNU General Public License for more details.
 
16
 
17
# You should have received a copy of the GNU General Public License
 
18
# along with this program; if not, write to the Free Software
 
19
# Foundation, Inc.,  51 Franklin Street, Fifth Floor, Boston, MA 
 
20
# 02110-1301 USA
 
21
 
 
22
# Macros
 
23
 
 
24
AT_BANNER([[Basic (interface) functions.]])
 
25
 
 
26
AT_SETUP([Creating an empty graph (igraph_empty): ])
 
27
AT_KEYWORDS([igraph_empty])
 
28
AT_COMPILE_CHECK([simple/igraph_empty.c])
 
29
AT_CLEANUP
 
30
 
 
31
AT_SETUP([Copying a graph (igraph_copy): ])
 
32
AT_KEYWORDS([igraph_copy igraph_create])
 
33
AT_COMPILE_CHECK([simple/igraph_copy.c])
 
34
AT_CLEANUP
 
35
 
 
36
AT_SETUP([Adding edges to a graph (igraph_add_edges): ])
 
37
AT_KEYWORDS([igraph_add_edges])
 
38
AT_COMPILE_CHECK([simple/igraph_add_edges.c], 
 
39
        [simple/igraph_add_edges.out])
 
40
AT_CLEANUP
 
41
 
 
42
AT_SETUP([Adding vertices (igraph_add_vertices): ])
 
43
AT_KEYWORDS([igraph_add_vertices])
 
44
AT_COMPILE_CHECK([simple/igraph_add_vertices.c])
 
45
AT_CLEANUP
 
46
 
 
47
AT_SETUP([Deleting edges (igraph_delete_edges): ])
 
48
AT_KEYWORDS([igraph_delete_vertices])
 
49
AT_COMPILE_CHECK([simple/igraph_delete_edges.c])
 
50
AT_CLEANUP
 
51
 
 
52
AT_SETUP([Deleting vertices (igraph_delete_vertices): ])
 
53
AT_KEYWORDS([igraph_delete_vertices])
 
54
AT_COMPILE_CHECK([simple/igraph_delete_vertices.c])
 
55
AT_CLEANUP
 
56
 
 
57
AT_SETUP([Neighbors (igraph_neighbors): ])
 
58
AT_KEYWORDS([igraph_neighbors])
 
59
AT_COMPILE_CHECK([simple/igraph_neighbors.c], [simple/igraph_neighbors.out])
 
60
AT_CLEANUP
 
61
 
 
62
AT_SETUP([Is the graph directed? (igraph_is_directed): ])
 
63
AT_KEYWORDS([igraph_is_directed])
 
64
AT_COMPILE_CHECK([simple/igraph_is_directed.c])
 
65
AT_CLEANUP
 
66
 
 
67
AT_SETUP([Degree of the vertices (igraph_degree): ])
 
68
AT_KEYWORDS([igraph_degree])
 
69
AT_COMPILE_CHECK([simple/igraph_degree.c], [simple/igraph_degree.out])
 
70
AT_CLEANUP
 
71
 
 
72
AT_SETUP([Query edge ids (igraph_get_eid): ])
 
73
AT_KEYWORDS([igraph_get_eid edge id])
 
74
AT_COMPILE_CHECK([simple/igraph_get_eid.c], [simple/igraph_get_eid.out])
 
75
AT_CLEANUP
 
76
 
 
77
AT_SETUP([Query many edge ids (igraph_get_eids): ])
 
78
AT_KEYWORDS([igraph_get_eids edge id])
 
79
AT_COMPILE_CHECK([simple/igraph_get_eids.c], [simple/igraph_get_eids.out])
 
80
AT_CLEANUP
 
81