diff mrjunejune/BUILD @ 67:6626ec933933

[Seobeo] Separated out Client Server logic. Created test tools.
author June Park <parkjune1995@gmail.com>
date Wed, 24 Dec 2025 09:15:55 -0800
parents a30944e5719e
children 75de5903355c
line wrap: on
line diff
--- a/mrjunejune/BUILD	Wed Dec 24 06:34:19 2025 -0800
+++ b/mrjunejune/BUILD	Wed Dec 24 09:15:55 2025 -0800
@@ -20,7 +20,7 @@
 cc_binary(
   name = "mrjunejune_server",
   srcs = ["main.c"],
-  deps = ["//seobeo:seobeo"],
+  deps = ["//seobeo:seobeo_server"],  # Use server-only target (no OpenSSL)
   data = [":pages_files"],
 )
 
@@ -32,7 +32,7 @@
 cc_library(
   name = "mrjunejune_server_lib",
   srcs = ["server_entry.c"],
-  deps = ["//seobeo:seobeo"],
+  deps = ["//seobeo:seobeo_server"],  # Use server-only target (no OpenSSL)
   linkstatic = False,   # ensures dynamic linking
   visibility = ["//visibility:public"],
 )
@@ -47,3 +47,32 @@
   data = [":mrjunejune_server_lib"],
 )
 
+cc_test(
+  name = "integration_test",
+  srcs = ["test/integration_test.c"],
+  deps = ["//seobeo:seobeo_client"],
+  data = [
+    "//mrjunejune:mrjunejune_server",
+    "//mrjunejune:pages_files",
+    "//mrjunejune:test_snapshots",
+  ],
+  size = "medium",
+  timeout = "moderate",
+  args = ["$(location //mrjunejune:mrjunejune_server)"],
+)
+
+cc_binary(
+  name = "create_snapshots",
+  srcs = ["test/create_snapshots.c"],
+  deps = ["//seobeo:seobeo_client"],
+  data = [
+    "//mrjunejune:mrjunejune_server",
+    "//mrjunejune:pages_files",
+  ],
+  args = ["$(location //mrjunejune:mrjunejune_server)"],
+)
+
+filegroup(
+  name = "test_snapshots",
+  srcs = glob(["test/snapshots/**"]),
+)