annotate mrjunejune/BUILD @ 94:092afa595764

[MrJuneJune] Added Integration tests.
author June Park <parkjune1995@gmail.com>
date Fri, 02 Jan 2026 18:13:32 -0800
parents bcc76a156aea
children 70401cf61e97
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
2 load("@rules_cc//cc:cc_library.bzl", "cc_library")
71
75de5903355c Giagantic changes that update Dowa library to be more align with stb style array and hashmap. Updated Seobeo to be caching on server side instead of file level caching. Deleted bunch of things I don't really use.
June Park <parkjune1995@gmail.com>
parents: 67
diff changeset
3 # load("@rules_python//python:py_binary.bzl", "py_binary")
15
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
4 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle")
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 7
diff changeset
5
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 7
diff changeset
6 move_files_into_dir(
83
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
7 name = "compiled_ts_games",
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
8 srcs = [
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
9 "//react_games:games"
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
10 ],
84
bcc76a156aea Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents: 83
diff changeset
11 dest = "src/games",
83
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
12 )
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
13
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
14 move_files_into_dir(
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 7
diff changeset
15 name = "compiled_ts",
15
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
16 srcs = [
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
17 "//playground:hello",
83
49b611c808e7 Linked React games to mrjunejune pages.
June Park <parkjune1995@gmail.com>
parents: 71
diff changeset
18 "//markdown_converter:markdown_to_html",
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 7
diff changeset
19 ],
84
bcc76a156aea Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents: 83
diff changeset
20 dest = "src",
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 7
diff changeset
21 )
7
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
22
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
23 filegroup(
84
bcc76a156aea Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents: 83
diff changeset
24 name = "src_files",
bcc76a156aea Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents: 83
diff changeset
25 srcs = glob(["src/**"]) + [":compiled_ts", ":compiled_ts_games"],
7
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
26 )
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
27
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
28 cc_binary(
12
de54585a40f1 Adding bun and node modules.
June Park <parkjune1995@gmail.com>
parents: 7
diff changeset
29 name = "mrjunejune_server",
7
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
30 srcs = ["main.c"],
71
75de5903355c Giagantic changes that update Dowa library to be more align with stb style array and hashmap. Updated Seobeo to be caching on server side instead of file level caching. Deleted bunch of things I don't really use.
June Park <parkjune1995@gmail.com>
parents: 67
diff changeset
31 deps = ["//seobeo:seobeo_server"],
84
bcc76a156aea Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents: 83
diff changeset
32 data = [":src_files"],
7
114cad94008f [Seobeo] Updated to support thread and edge server calls.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
33 )
15
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
34
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
35 bundle(
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
36 name = "mrjunejune_server_bundle",
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
37 binary = ":mrjunejune_server",
2b9e75756825 [GuiZe] Updated to handle bundling and created a shee
June Park <parkjune1995@gmail.com>
parents: 12
diff changeset
38 )
37
fb9bcd3145cb [ReactGames] Few games I made using react just to practice few things.
MrJuneJune <me@mrjunejune.com>
parents: 15
diff changeset
39
67
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
40 cc_test(
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
41 name = "integration_test",
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
42 srcs = ["test/integration_test.c"],
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
43 deps = ["//seobeo:seobeo_client"],
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
44 data = [
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
45 "//mrjunejune:mrjunejune_server",
84
bcc76a156aea Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents: 83
diff changeset
46 "//mrjunejune:src_files",
67
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
47 "//mrjunejune:test_snapshots",
94
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
48 "//mrjunejune:test_files",
67
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
49 ],
94
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
50 size = "large",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
51 timeout = "long",
67
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
52 args = ["$(location //mrjunejune:mrjunejune_server)"],
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
53 )
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
54
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
55 cc_binary(
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
56 name = "create_snapshots",
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
57 srcs = ["test/create_snapshots.c"],
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
58 deps = ["//seobeo:seobeo_client"],
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
59 data = [
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
60 "//mrjunejune:mrjunejune_server",
84
bcc76a156aea Updated to be called src instead of pages.
June Park <parkjune1995@gmail.com>
parents: 83
diff changeset
61 "//mrjunejune:src_files",
67
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
62 ],
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
63 args = ["$(location //mrjunejune:mrjunejune_server)"],
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
64 )
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
65
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
66 filegroup(
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
67 name = "test_snapshots",
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
68 srcs = glob(["test/snapshots/**"]),
6626ec933933 [Seobeo] Separated out Client Server logic. Created test tools.
June Park <parkjune1995@gmail.com>
parents: 64
diff changeset
69 )
94
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
70
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
71 filegroup(
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
72 name = "test_files",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
73 srcs = [
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
74 "test/shiba.webp",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
75 "test/test_avi.avi",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
76 ],
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
77 )
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
78
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
79 # This was to use python ffi, but w/e
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
80 # cc_library(
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
81 # name = "mrjunejune_server_lib",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
82 # srcs = ["server_entry.c"],
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
83 # deps = ["//seobeo:seobeo_server"],
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
84 # linkstatic = False,
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
85 # visibility = ["//visibility:public"],
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
86 # )
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
87
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
88 # py_binary(
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
89 # name = "python_server",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
90 # srcs = ["python_server.py"],
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
91 # deps = [
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
92 # ":mrjunejune_server_lib",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
93 # "@pip_deps//:cffi",
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
94 # ],
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
95 # data = [":mrjunejune_server_lib"],
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
96 # )
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
97
092afa595764 [MrJuneJune] Added Integration tests.
June Park <parkjune1995@gmail.com>
parents: 84
diff changeset
98