From 2118cdfcaa6633a6f982ecfaddffd1ab9690c92a Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 24 Mar 2024 08:25:11 -0400 Subject: [PATCH] Meta: Add LibWeb unit tests to the GN build --- Meta/gn/secondary/Tests/BUILD.gn | 1 + Meta/gn/secondary/Tests/LibWeb/BUILD.gn | 49 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 Meta/gn/secondary/Tests/LibWeb/BUILD.gn diff --git a/Meta/gn/secondary/Tests/BUILD.gn b/Meta/gn/secondary/Tests/BUILD.gn index c90f90812bb..e28f7cd26ca 100644 --- a/Meta/gn/secondary/Tests/BUILD.gn +++ b/Meta/gn/secondary/Tests/BUILD.gn @@ -3,6 +3,7 @@ group("Tests") { "//Tests/AK", "//Tests/LibJS", "//Tests/LibURL", + "//Tests/LibWeb", ] testonly = true } diff --git a/Meta/gn/secondary/Tests/LibWeb/BUILD.gn b/Meta/gn/secondary/Tests/LibWeb/BUILD.gn new file mode 100644 index 00000000000..aada6eab0bd --- /dev/null +++ b/Meta/gn/secondary/Tests/LibWeb/BUILD.gn @@ -0,0 +1,49 @@ +import("//Tests/unittest.gni") + +unittest("TestCSSIDSpeed") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ "TestCSSIDSpeed.cpp" ] + deps = [ "//Userland/Libraries/LibWeb" ] +} + +unittest("TestCSSPixels") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ "TestCSSPixels.cpp" ] + deps = [ "//Userland/Libraries/LibWeb" ] +} + +unittest("TestHTMLTokenizer") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ "TestHTMLTokenizer.cpp" ] + deps = [ "//Userland/Libraries/LibWeb" ] +} + +unittest("TestMicrosyntax") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ "TestMicrosyntax.cpp" ] + deps = [ "//Userland/Libraries/LibWeb" ] +} + +unittest("TestMimeSniff") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ "TestMimeSniff.cpp" ] + deps = [ "//Userland/Libraries/LibWeb" ] +} + +unittest("TestNumbers") { + include_dirs = [ "//Userland/Libraries" ] + sources = [ "TestNumbers.cpp" ] + deps = [ "//Userland/Libraries/LibWeb" ] +} + +group("LibWeb") { + testonly = true + deps = [ + ":TestCSSIDSpeed", + ":TestCSSPixels", + ":TestHTMLTokenizer", + ":TestMicrosyntax", + ":TestMimeSniff", + ":TestNumbers", + ] +}