forked from wilson1yan/lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
56 lines (49 loc) · 1.18 KB
/
BUILD
File metadata and controls
56 lines (49 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Description:
# Unit tests for DeepMind Lab.
licenses(["restricted"]) # GPLv2
TEST_SCRIPTS = [
test_script[:-len(".lua")]
for test_script in glob(["*.lua"])
]
# Tests that need custom data.
SKIPPED_TESTS = [
"image_test",
"read_file_test",
]
test_suite(
name = "lua_unit_test_suite",
tests = [test_script for test_script in TEST_SCRIPTS if test_script not in SKIPPED_TESTS],
)
[
cc_test(
name = test_script,
args = ["lua_tests/" + test_script + ".lua"],
data = [test_script + ".lua"],
deps = ["//testing:lua_unit_test_lib"],
)
for test_script in TEST_SCRIPTS
if test_script not in SKIPPED_TESTS
]
cc_test(
name = "image_test",
size = "small",
args = ["lua_tests/image_test.lua"],
data = [
"data/testL.png",
"data/testRGB.png",
"data/testRGBA.png",
":image_test.lua",
],
deps = ["//testing:lua_unit_test_lib"],
)
cc_test(
name = "read_file_test",
size = "small",
args = ["lua_tests/read_file_test.lua"],
data = [
"data/empty_test_file",
"data/testL.png",
":read_file_test.lua",
],
deps = ["//testing:lua_unit_test_lib"],
)