blob: c54e5df9334600d87431757dcc4f2a503a670345 [file] [log] [blame]
Ray Milkey0bcdfd12018-05-23 14:07:19 -07001SRC = "src/main/java/org/onlab/**/"
2
3TEST_SRC = "src/test/java/org/onlab/**/"
Ray Milkey7dac7da2017-08-01 16:56:05 -07004
5COMPILE_DEPS = [
Carmelo Cascone72893b72018-08-09 00:59:06 -07006 "@com_google_guava_guava//jar",
Ray Milkey0bcdfd12018-05-23 14:07:19 -07007 "@slf4j_api//jar",
8 "@hamcrest_all//jar",
9 "@junit//jar",
Ray Milkey7dac7da2017-08-01 16:56:05 -070010]
11
12TEST_DEPS = [
Carmelo Cascone72893b72018-08-09 00:59:06 -070013 "@com_google_guava_guava_testlib//jar",
Ray Milkey7dac7da2017-08-01 16:56:05 -070014]
15
16osgi_jar_with_tests(
Ray Milkey0bcdfd12018-05-23 14:07:19 -070017 name = "onlab-junit",
18 srcs = glob([SRC + "*.java"]),
Ray Milkey7dac7da2017-08-01 16:56:05 -070019 test_deps = TEST_DEPS,
Ray Milkey0bcdfd12018-05-23 14:07:19 -070020 test_srcs = glob([TEST_SRC + "*.java"]),
Ray Milkey7dac7da2017-08-01 16:56:05 -070021 visibility = ["//visibility:public"],
Ray Milkey0bcdfd12018-05-23 14:07:19 -070022 deps = COMPILE_DEPS,
Ray Milkey7dac7da2017-08-01 16:56:05 -070023)