Meta: Add LibWeb unit tests to the GN build

This commit is contained in:
Timothy Flynn 2024-03-24 08:25:11 -04:00 committed by Andreas Kling
parent a88ee029d7
commit 2118cdfcaa
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
2 changed files with 50 additions and 0 deletions

View File

@ -3,6 +3,7 @@ group("Tests") {
"//Tests/AK",
"//Tests/LibJS",
"//Tests/LibURL",
"//Tests/LibWeb",
]
testonly = true
}

View File

@ -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",
]
}