Globus Toolkit
6.0.1610491877
xio
src
test
test_common.h
1
/*
2
* Copyright 1999-2006 University of Chicago
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#if !defined(TEST_COMMON_H)
18
#define TEST_COMMON_H 1
19
20
#include "globus_xio.h"
21
#include "test_common.h"
22
#include "
globus_common.h
"
23
#include "globus_xio_test_transport.h"
24
#include "globus_xio_test_transport.h"
25
26
typedef
struct
test_info_s
27
{
28
int
write_count;
29
int
read_count;
30
31
/* always points to nothing */
32
globus_byte_t
* buffer;
33
globus_size_t
buffer_length;
34
globus_size_t
chunk_size;
35
36
globus_size_t
nwritten;
37
globus_size_t
nread;
38
globus_size_t
total_write_bytes;
39
globus_size_t
total_read_bytes;
40
41
int
failure;
42
int
closed;
43
globus_bool_t
write_done;
44
globus_bool_t
read_done;
45
46
globus_bool_t
server;
47
48
globus_reltime_t delay;
49
50
globus_mutex_t
mutex;
51
} test_info_t;
52
53
extern
test_info_t globus_l_test_info;
54
55
void
56
failed_exit(
57
char
* fmt,
58
...);
59
void
60
test_res(
61
int
location,
62
globus_result_t
res,
63
int
line,
64
char
* filename);
65
66
void
67
parse_parameters(
68
int
argc,
69
char
** argv,
70
globus_xio_stack_t stack,
71
globus_xio_attr_t attr);
72
73
int
74
unload_main(
75
int
argc,
76
char
** argv);
77
78
int
79
read_barrier_main(
80
int
argc,
81
char
** argv);
82
83
int
84
close_barrier_main(
85
int
argc,
86
char
** argv);
87
88
int
89
close_barrier2_main(
90
int
argc,
91
char
** argv);
92
93
int
94
framework_main(
95
int
argc,
96
char
** argv);
97
98
int
99
timeout_main(
100
int
argc,
101
char
** argv);
102
103
int
104
cancel_main(
105
int
argc,
106
char
** argv);
107
108
int
109
attr_main(
110
int
argc,
111
char
** argv);
112
113
int
114
close_cancel_main(
115
int
argc,
116
char
** argv);
117
118
int
119
space_main(
120
int
argc,
121
char
** argv);
122
123
int
124
server2_main(
125
int
argc,
126
char
** argv);
127
128
int
129
block_barrier_main(
130
int
argc,
131
char
** argv);
132
133
int
134
blocking_dd_main(
135
int
argc,
136
char
** argv);
137
138
int
139
stack_main(
140
int
argc,
141
char
** argv);
142
143
void
144
test_common_end();
145
146
147
#endif
globus_mutex_t
Mutex.
Definition:
globus_thread.h:107
globus_bool_t
int globus_bool_t
Boolean type.
Definition:
globus_types.h:93
globus_common.h
Headers common to all of Globus.
globus_result_t
uint32_t globus_result_t
Definition:
globus_types.h:99
globus_byte_t
unsigned char globus_byte_t
Unsigned byte datatype.
Definition:
globus_types.h:85
globus_size_t
size_t globus_size_t
Standard size of memory object.
Definition:
globus_types.h:48
Generated by
1.8.16