BUCK
3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
SRC = 'src/main/java/org/onosproject/**/'
#FIXME there are some tests in main
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//utils/rest:onlab-rest',
'//lib:javax.ws.rs-api',
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = 'onos-app-test',
visibility = ['PUBLIC'],
deps = [':onos-app-demo',
':onos-app-distributed-primitives',
':onos-app-election',
':onos-app-intent-perf',
':onos-app-loadtest',
':onos-app-messaging-perf',
],
)
# demo
java_library(
name = 'onos-app-demo',
srcs = glob(['demo/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-demo-tests',
srcs = glob(['demo/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-demo'],
source_under_test = [':onos-app-demo'],
)
# distributed-primitives
java_library(
name = 'onos-app-distributed-primitives',
srcs = glob(['distributed-primitives/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-distributed-primitives-tests',
srcs = glob(['distributed-primitives/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-distributed-primitives'],
source_under_test = [':onos-app-distributed-primitives'],
)
# election
java_library(
name = 'onos-app-election',
srcs = glob(['election/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-election-tests',
srcs = glob(['election/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-election'],
source_under_test = [':onos-app-election'],
)
# intent-perf
java_library(
name = 'onos-app-intent-perf',
srcs = glob(['intent-perf/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-intent-perf-tests',
srcs = glob(['intent-perf/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-intent-perf'],
source_under_test = [':onos-app-intent-perf'],
)
# loadtest
java_library(
name = 'onos-app-loadtest',
srcs = glob(['loadtest/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-loadtest-tests',
srcs = glob(['loadtest/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-loadtest'],
source_under_test = [':onos-app-loadtest'],
)
# messaging-perf
java_library(
name = 'onos-app-messaging-perf',
srcs = glob(['messaging-perf/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-messaging-perf-tests',
srcs = glob(['messaging-perf/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-messaging-perf'],
source_under_test = [':onos-app-messaging-perf'],
)