ceptr
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Modules
Pages
ceptr_specs.c
Go to the documentation of this file.
1
8
#include "../src/ceptr.h"
9
#include <stdio.h>
10
#include <signal.h>
11
#include <assert.h>
12
13
#include "
test_framework.h
"
14
15
#include "
semtable_spec.h
"
16
#include "
def_spec.h
"
17
#include "
tree_spec.h
"
18
#include "
mtree_spec.h
"
19
#include "
stream_spec.h
"
20
#include "
label_spec.h
"
21
#include "
semtrex_spec.h
"
22
#include "
receptor_spec.h
"
23
#include "
process_spec.h
"
24
#include "
scape_spec.h
"
25
#include "
vmhost_spec.h
"
26
#include "accumulator_spec.h"
27
28
#include "
profile_example.h
"
29
#include "
group_spec.h
"
30
#include "
protocol_spec.h
"
31
#include "
http_example.h
"
32
33
#include <setjmp.h>
34
35
Symbol
A,B,C,D,E,F,Root;
36
37
jmp_buf G_err;
38
39
int
main(
int
argc,
const
char
**argv) {
40
printf(
"Running all tests...\n\n"
);
41
42
int
err;
43
if
((err = setjmp(G_err))) {
44
printf(
"ERROR: %d\n"
,err);
45
}
46
else
{
47
G_sem = def_sys();
48
//debug_enable(D_BOOT);
49
load_contexts(G_sem);
50
//debug_disable(D_BOOT);
51
52
// define some generic symbols for doing specs
53
sYt(A,NULL_STRUCTURE);
54
sYt(B,NULL_STRUCTURE);
55
sYt(C,NULL_STRUCTURE);
56
sYt(D,NULL_STRUCTURE);
57
sYt(E,NULL_STRUCTURE);
58
sYt(F,NULL_STRUCTURE);
59
sYt(Root,NULL_STRUCTURE);
60
61
//**** core tests
62
testSemTable();
63
testDef();
64
testTree();
65
testMTree();
66
testStream();
67
testLabel();
68
testSemtrex();
69
testProcess();
70
testReceptor();
71
testScape();
72
testVMHost();
73
testAccumulator();
74
testProtocol();
75
76
/**** receptor tests */
77
/* testGroup(); */
78
79
testHTTP();
80
81
/****** examples */
82
testProfileExample();
83
84
sys_free(G_sem);
85
report_tests();
86
}
87
pthread_exit(NULL);
88
// return 0;
89
}
semtrex_spec.h
group_spec.h
semtable_spec.h
mtree_spec.h
process_spec.h
test_framework.h
implements the testing harness
def_spec.h
http_example.h
profile_example.h
scape_spec.h
receptor_spec.h
label_spec.h
vmhost_spec.h
stream_spec.h
protocol_spec.h
SemanticID
Definition:
ceptr_types.h:22
tree_spec.h
spec
ceptr_specs.c
Generated on Fri Aug 5 2016 12:17:56 for ceptr by
1.8.7