Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 1 | py_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 2 | name = "gflags", |
| 3 | srcs = [ |
| 4 | "gflags.py", |
| 5 | "gflags2man.py", |
| 6 | "gflags_validators.py", |
| 7 | ], |
| 8 | visibility = ["//visibility:public"], |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 9 | ) |
| 10 | |
| 11 | py_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 12 | name = "gflags_googletest", |
| 13 | srcs = [ |
| 14 | "tests/gflags_googletest.py", |
| 15 | ], |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | py_test( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 19 | name = "gflags_validators_test", |
| 20 | size = "small", |
| 21 | srcs = [ |
| 22 | "tests/gflags_validators_test.py", |
| 23 | ], |
| 24 | deps = [ |
| 25 | ":gflags", |
| 26 | ":gflags_googletest", |
| 27 | ], |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 28 | ) |
| 29 | |
| 30 | py_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 31 | name = "flags_modules_for_testing", |
| 32 | srcs = [ |
| 33 | "tests/flags_modules_for_testing/__init__.py", |
| 34 | "tests/flags_modules_for_testing/module_bar.py", |
| 35 | "tests/flags_modules_for_testing/module_baz.py", |
| 36 | "tests/flags_modules_for_testing/module_foo.py", |
| 37 | ], |
| 38 | deps = [ |
| 39 | ":gflags", |
| 40 | ], |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 41 | ) |
| 42 | |
| 43 | py_test( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 44 | name = "gflags_unittest", |
| 45 | size = "small", |
| 46 | srcs = [ |
| 47 | "tests/gflags_unittest.py", |
| 48 | ], |
| 49 | deps = [ |
| 50 | ":flags_modules_for_testing", |
| 51 | ":gflags", |
| 52 | ":gflags_googletest", |
| 53 | ], |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 54 | ) |
| 55 | |
| 56 | py_test( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 57 | name = "gflags_helpxml_test", |
| 58 | size = "small", |
| 59 | srcs = [ |
| 60 | "tests/gflags_helpxml_test.py", |
| 61 | ], |
| 62 | deps = [ |
| 63 | ":flags_modules_for_testing", |
| 64 | ":gflags", |
| 65 | ":gflags_googletest", |
| 66 | ], |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 67 | ) |