Mercurial
annotate mrjunejune/test/BUILD @ 258:60a876c4587a
[ui] Add semantic primitive ownership
Build a layered Zenbu token and sizing system, make authored controls use native-underneath primitives, migrate mrjunejune without imposing visual surfaces, and document/enforce HTML ownership in the catalog and wiki.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Wed, 05 Aug 2026 05:25:40 -0700 |
| parents | b8aa08503378 |
| children | 667156fcd3e3 |
| rev | line source |
|---|---|
| 129 | 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") |
| 2 load("@rules_cc//cc:cc_test.bzl", "cc_test") | |
|
241
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
3 load("@aspect_rules_js//js:defs.bzl", "js_test") |
| 129 | 4 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle") |
| 5 | |
| 6 # Files needed for test | |
| 7 filegroup( | |
| 8 name = "test_snapshots", | |
| 9 srcs = glob(["snapshots/**"]), | |
| 10 ) | |
| 11 | |
| 12 filegroup( | |
| 13 name = "test_files", | |
| 14 srcs = [ | |
| 15 "shiba.webp", | |
| 16 "test_avi.avi", | |
| 17 ], | |
| 18 ) | |
| 19 | |
| 20 # To create a snapsho to compare | |
| 21 cc_binary( | |
| 22 name = "create_snapshots", | |
| 23 srcs = ["auto_generated_test.c", "test.h"], | |
| 24 deps = ["//seobeo:seobeo_tcp_client"], | |
| 25 data = [ | |
| 26 "//mrjunejune:mrjunejune_server", | |
| 27 "//mrjunejune:src_files", | |
| 28 ], | |
| 29 args = ["$(location //mrjunejune:mrjunejune_server)"], | |
| 30 ) | |
| 31 | |
| 32 # Tests | |
| 33 cc_test( | |
| 34 name = "integration_test", | |
| 35 srcs = [ | |
| 36 "integration_test.c", | |
| 37 "test.h" | |
| 38 ], | |
|
168
f3084bca7317
[Misc] Fixed all errors and all tests should pass now.
MrJuneJune <me@mrjunejune.com>
parents:
129
diff
changeset
|
39 deps = ["//seobeo:seobeo"], |
| 129 | 40 data = [ |
| 41 "//mrjunejune:mrjunejune_server", | |
| 42 "//mrjunejune:src_files", | |
| 43 ":test_snapshots", | |
| 44 ":test_files", | |
| 45 ], | |
| 46 size = "large", | |
| 47 timeout = "long", | |
| 48 args = ["$(location //mrjunejune:mrjunejune_server)"], | |
| 49 ) | |
|
241
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
50 |
|
244
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
51 cc_test( |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
52 name = "latex_renderer_test", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
53 srcs = ["latex_renderer_test.c"], |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
54 deps = ["//mrjunejune:latex_renderer"], |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
55 size = "medium", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
56 timeout = "moderate", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
57 target_compatible_with = ["@platforms//os:linux"], |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
58 ) |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
59 |
|
241
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
60 js_test( |
|
242
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
61 name = "hls_player_test", |
|
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
62 entry_point = "hls_player_test.js", |
|
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
63 data = ["//mrjunejune:hls_player_js"], |
|
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
64 size = "small", |
|
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
65 timeout = "short", |
|
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
66 ) |
|
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
67 |
|
543df0fe7168
[tools] Add full HLS player support
MrJuneJune <me@mrjunejune.com>
parents:
241
diff
changeset
|
68 js_test( |
|
244
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
69 name = "latex_editor_test", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
70 entry_point = "latex_editor_test.js", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
71 data = [ |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
72 "//hg-web/e2e:node_modules/playwright-core", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
73 "//mrjunejune:mrjunejune_server", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
74 "@playwright_chromium_linux//:chrome", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
75 "@playwright_chromium_linux//:chromium", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
76 ], |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
77 env = { |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
78 "CHROMIUM_PATH": "$(rootpath @playwright_chromium_linux//:chrome)", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
79 }, |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
80 no_copy_to_bin = ["@playwright_chromium_linux//:chromium"], |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
81 size = "large", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
82 target_compatible_with = [ |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
83 "@platforms//cpu:x86_64", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
84 "@platforms//os:linux", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
85 ], |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
86 timeout = "long", |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
87 ) |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
88 |
|
b8aa08503378
[tools] Add sandboxed online LaTeX editor
MrJuneJune <me@mrjunejune.com>
parents:
242
diff
changeset
|
89 js_test( |
|
241
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
90 name = "theme_and_webp_test", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
91 entry_point = "theme_and_webp_test.js", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
92 data = [ |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
93 "//hg-web/e2e:node_modules/playwright-core", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
94 "//mrjunejune:mrjunejune_server", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
95 "@playwright_chromium_linux//:chrome", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
96 "@playwright_chromium_linux//:chromium", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
97 ], |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
98 env = { |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
99 "CHROMIUM_PATH": "$(rootpath @playwright_chromium_linux//:chrome)", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
100 }, |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
101 no_copy_to_bin = ["@playwright_chromium_linux//:chromium"], |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
102 size = "large", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
103 target_compatible_with = [ |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
104 "@platforms//cpu:x86_64", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
105 "@platforms//os:linux", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
106 ], |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
107 timeout = "long", |
|
9c2eec61a152
[assets] Generate site images as WebP with Bazel
MrJuneJune <me@mrjunejune.com>
parents:
168
diff
changeset
|
108 ) |