Skip to content

Commit 251ada2

Browse files
committed
CI: Include testing in All_Debug CI job
1 parent d4a364d commit 251ada2

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

.github/workflows/lagom-template.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ jobs:
209209
env:
210210
TESTS_ONLY: 1
211211

212+
- name: Test
213+
if: ${{ inputs.build_preset == 'All_Debug' }}
214+
working-directory: ${{ github.workspace }}
215+
run: ctest --output-on-failure --test-dir Build --timeout 300 -E LibWeb
216+
env:
217+
TESTS_ONLY: 1
218+
212219
- name: Upload LibWeb Test Artifacts
213220
if: ${{ always() && inputs.build_preset != 'Fuzzers' && inputs.build_preset != 'All_Debug' }}
214221
uses: actions/upload-artifact@v4

CMakePresets.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@
357357
"inherits": "unix_base",
358358
"configurePreset": "Debug"
359359
},
360+
{
361+
"name": "All_Debug",
362+
"inherits": "unix_base",
363+
"configurePreset": "All_Debug"
364+
},
360365
{
361366
"name": "Windows_Experimental",
362367
"inherits": "windows_base",

Meta/ladybird.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ def main():
147147
elif args.command == "test":
148148
build_dir = configure_main(platform, args.preset, args.cc, args.cxx)
149149
build_main(build_dir, args.jobs)
150-
test_main(build_dir, args.preset, args.pattern)
150+
if args.preset == "All_Debug":
151+
test_all_debug(build_dir, args.preset, args.pattern)
152+
else:
153+
test_main(build_dir, args.preset, args.pattern)
151154
elif args.command == "run":
152155
if args.preset == "Sanitizer":
153156
# FIXME: Find some way to centralize these b/w CMakePresets.json, CI files, Documentation and here.
@@ -368,6 +371,25 @@ def test_main(build_dir: Path, preset: str, pattern: Optional[str]):
368371
run_command(test_args, exit_on_failure=True)
369372

370373

374+
def test_all_debug(build_dir: Path, preset: str, pattern: Optional[str]):
375+
test_args = [
376+
"ctest",
377+
"--preset",
378+
preset,
379+
"--output-on-failure",
380+
"--test-dir",
381+
str(build_dir),
382+
]
383+
384+
if pattern:
385+
test_args.extend(["-R", pattern])
386+
387+
test_args.extend(["-E", "LibWeb"])
388+
os.environ["TESTS_ONLY"] = "1"
389+
390+
run_command(test_args, exit_on_failure=True)
391+
392+
371393
def run_main(host_system: HostSystem, build_dir: Path, target: str, args: list[str]):
372394
run_args = []
373395

0 commit comments

Comments
 (0)