Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onlab/junit/' |
| 2 | TEST = 'src/test/java/org/onlab/junit/' |
| 3 | CURRENT_NAME = 'onlab-junit' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | SRC_DEPS = [ |
| 7 | '//lib:junit', |
| 8 | '//lib:hamcrest-all', |
| 9 | '//lib:guava', |
| 10 | ] |
| 11 | |
| 12 | TEST_DEPS = [ |
| 13 | '//lib:guava-testlib', |
| 14 | ] |
| 15 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 16 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 17 | name = CURRENT_NAME, |
| 18 | srcs = glob([SRC + '/*.java']), |
| 19 | deps = SRC_DEPS, |
| 20 | visibility = ['PUBLIC'], |
| 21 | resources_root = 'src/main/resources', |
| 22 | resources = glob(['src/main/resources/**']), |
Ray Milkey | 2a74983 | 2016-08-02 15:22:20 -0700 | [diff] [blame] | 23 | package_name_root = 'org.onlab', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 24 | ) |
| 25 | |
| 26 | java_test( |
| 27 | name = 'tests', |
| 28 | srcs = glob([TEST + '/*.java']), |
| 29 | deps = SRC_DEPS + |
| 30 | TEST_DEPS + |
| 31 | [CURRENT_TARGET], |
| 32 | source_under_test = [CURRENT_TARGET], |
| 33 | ) |