diff mrjunejune/test/BUILD @ 129:f7860f491a8c

--amend
author June Park <parkjune1995@gmail.com>
date Thu, 08 Jan 2026 19:21:22 -0800
parents
children f3084bca7317
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mrjunejune/test/BUILD	Thu Jan 08 19:21:22 2026 -0800
@@ -0,0 +1,48 @@
+load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
+load("@rules_cc//cc:cc_test.bzl", "cc_test")
+load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle")
+
+# Files needed for test
+filegroup(
+  name = "test_snapshots",
+  srcs = glob(["snapshots/**"]),
+)
+
+filegroup(
+  name = "test_files",
+  srcs = [
+    "shiba.webp",
+    "test_avi.avi",
+  ],
+)
+
+# To create a snapsho to compare
+cc_binary(
+  name = "create_snapshots",
+  srcs = ["auto_generated_test.c", "test.h"],
+  deps = ["//seobeo:seobeo_tcp_client"],
+  data = [
+    "//mrjunejune:mrjunejune_server",
+    "//mrjunejune:src_files",
+  ],
+  args = ["$(location //mrjunejune:mrjunejune_server)"],
+)
+
+# Tests
+cc_test(
+  name = "integration_test",
+  srcs = [
+    "integration_test.c",
+    "test.h"
+  ],
+  deps = ["//seobeo:seobeo_tcp_client"],
+  data = [
+    "//mrjunejune:mrjunejune_server",
+    "//mrjunejune:src_files",
+    ":test_snapshots",
+    ":test_files",
+  ],
+  size = "large",
+  timeout = "long",
+  args = ["$(location //mrjunejune:mrjunejune_server)"],
+)