blob: f1e3b2c280ecdb6c1dcfbee16ae991a1c58abea5 [file] [log] [blame]
Austin Schuhe456f152015-11-27 13:44:39 -08001py_library(
Austin Schuhdde64052019-12-11 20:28:00 -08002 name = "gflags",
3 srcs = [
4 "gflags.py",
5 "gflags2man.py",
6 "gflags_validators.py",
7 ],
8 visibility = ["//visibility:public"],
Austin Schuhe456f152015-11-27 13:44:39 -08009)
10
11py_library(
Austin Schuhdde64052019-12-11 20:28:00 -080012 name = "gflags_googletest",
13 srcs = [
14 "tests/gflags_googletest.py",
15 ],
Austin Schuhe456f152015-11-27 13:44:39 -080016)
17
18py_test(
Austin Schuhdde64052019-12-11 20:28:00 -080019 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 Schuhe456f152015-11-27 13:44:39 -080028)
29
30py_library(
Austin Schuhdde64052019-12-11 20:28:00 -080031 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 Schuhe456f152015-11-27 13:44:39 -080041)
42
43py_test(
Austin Schuhdde64052019-12-11 20:28:00 -080044 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 Schuhe456f152015-11-27 13:44:39 -080054)
55
56py_test(
Austin Schuhdde64052019-12-11 20:28:00 -080057 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 Schuhe456f152015-11-27 13:44:39 -080067)