comparison mrjunejune/test/BUILD @ 129:f7860f491a8c

--amend
author June Park <parkjune1995@gmail.com>
date Thu, 08 Jan 2026 19:21:22 -0800
parents
children f3084bca7317
comparison
equal deleted inserted replaced
128:7eb79fd91c7e 129:f7860f491a8c
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
2 load("@rules_cc//cc:cc_test.bzl", "cc_test")
3 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle")
4
5 # Files needed for test
6 filegroup(
7 name = "test_snapshots",
8 srcs = glob(["snapshots/**"]),
9 )
10
11 filegroup(
12 name = "test_files",
13 srcs = [
14 "shiba.webp",
15 "test_avi.avi",
16 ],
17 )
18
19 # To create a snapsho to compare
20 cc_binary(
21 name = "create_snapshots",
22 srcs = ["auto_generated_test.c", "test.h"],
23 deps = ["//seobeo:seobeo_tcp_client"],
24 data = [
25 "//mrjunejune:mrjunejune_server",
26 "//mrjunejune:src_files",
27 ],
28 args = ["$(location //mrjunejune:mrjunejune_server)"],
29 )
30
31 # Tests
32 cc_test(
33 name = "integration_test",
34 srcs = [
35 "integration_test.c",
36 "test.h"
37 ],
38 deps = ["//seobeo:seobeo_tcp_client"],
39 data = [
40 "//mrjunejune:mrjunejune_server",
41 "//mrjunejune:src_files",
42 ":test_snapshots",
43 ":test_files",
44 ],
45 size = "large",
46 timeout = "long",
47 args = ["$(location //mrjunejune:mrjunejune_server)"],
48 )