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