Browse Source

Meta: Add test-js to the GN build

Timothy Flynn 1 year ago
parent
commit
6e928e426a
2 changed files with 20 additions and 1 deletions
  1. 4 1
      Meta/gn/secondary/Tests/BUILD.gn
  2. 16 0
      Meta/gn/secondary/Tests/LibJS/BUILD.gn

+ 4 - 1
Meta/gn/secondary/Tests/BUILD.gn

@@ -1,4 +1,7 @@
 group("Tests") {
 group("Tests") {
-  deps = [ "//Tests/AK" ]
+  deps = [
+    "//Tests/AK",
+    "//Tests/LibJS",
+  ]
   testonly = true
   testonly = true
 }
 }

+ 16 - 0
Meta/gn/secondary/Tests/LibJS/BUILD.gn

@@ -0,0 +1,16 @@
+import("//Tests/unittest.gni")
+
+unittest("test-js") {
+  use_js_main = true
+  include_dirs = [ "//Userland/Libraries" ]
+  sources = [ "test-js.cpp" ]
+  deps = [
+    "//Userland/Libraries/LibFileSystem",
+    "//Userland/Libraries/LibJS",
+  ]
+}
+
+group("LibJS") {
+  deps = [ ":test-js" ]
+  testonly = true
+}