Ray Milkey | 0bcdfd1 | 2018-05-23 14:07:19 -0700 | [diff] [blame] | 1 | SRC = "src/main/java/org/onlab/**/" |
| 2 | |
| 3 | TEST_SRC = "src/test/java/org/onlab/**/" |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 4 | |
| 5 | COMPILE_DEPS = [ |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 6 | "@com_google_guava_guava//jar", |
Ray Milkey | 0bcdfd1 | 2018-05-23 14:07:19 -0700 | [diff] [blame] | 7 | "@slf4j_api//jar", |
| 8 | "@hamcrest_all//jar", |
| 9 | "@junit//jar", |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 10 | ] |
| 11 | |
| 12 | TEST_DEPS = [ |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 13 | "@com_google_guava_guava_testlib//jar", |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 14 | ] |
| 15 | |
| 16 | osgi_jar_with_tests( |
Ray Milkey | 0bcdfd1 | 2018-05-23 14:07:19 -0700 | [diff] [blame] | 17 | name = "onlab-junit", |
| 18 | srcs = glob([SRC + "*.java"]), |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 19 | test_deps = TEST_DEPS, |
Ray Milkey | 0bcdfd1 | 2018-05-23 14:07:19 -0700 | [diff] [blame] | 20 | test_srcs = glob([TEST_SRC + "*.java"]), |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 21 | visibility = ["//visibility:public"], |
Ray Milkey | 0bcdfd1 | 2018-05-23 14:07:19 -0700 | [diff] [blame] | 22 | deps = COMPILE_DEPS, |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 23 | ) |