From 732815255877ff1d034b93e4367baf44cf0093bd Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 6 Apr 2024 00:22:17 +0200 Subject: tests: Add missing test files shipping --- tests/Makefrag.am | 14 ++++++++++++++ tests/user-qemu.mk | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/tests/Makefrag.am b/tests/Makefrag.am index faabdf44..cb9ddb6b 100644 --- a/tests/Makefrag.am +++ b/tests/Makefrag.am @@ -28,6 +28,20 @@ TESTS += \ tests/test-multiboot \ $(USER_TESTS) +EXTRA_DIST += \ + tests/README \ + tests/grub.cfg.single.template \ + tests/run-qemu.sh.template \ + tests/include/syscalls.h \ + tests/include/testlib.h \ + tests/include/device/cons.h \ + tests/include/kern/printf.h \ + tests/include/mach/mig_support.h \ + tests/include/sys/reboot.h \ + tests/include/util/atoi.h \ + $(USER_TESTS:%=%.c) \ + $(TESTSRC_TESTLIB) + clean-local: $(USER_TESTS_CLEAN) rm -fr tests/include-mach diff --git a/tests/user-qemu.mk b/tests/user-qemu.mk index 4f8390b6..065b3fe5 100644 --- a/tests/user-qemu.mk +++ b/tests/user-qemu.mk @@ -117,15 +117,19 @@ TESTCFLAGS = -static -nostartfiles -nolibc \ -ggdb3 \ -DMIG_EOPNOTSUPP + +TESTSRC_TESTLIB= \ + $(srcdir)/tests/syscalls.S \ + $(srcdir)/tests/start.S \ + $(srcdir)/tests/testlib.c \ + $(srcdir)/tests/testlib_thread_start.c + SRC_TESTLIB= \ $(srcdir)/i386/i386/strings.c \ $(srcdir)/kern/printf.c \ $(srcdir)/kern/strings.c \ $(srcdir)/util/atoi.c \ - $(srcdir)/tests/syscalls.S \ - $(srcdir)/tests/start.S \ - $(srcdir)/tests/testlib.c \ - $(srcdir)/tests/testlib_thread_start.c \ + $(TESTSRC_TESTLIB) \ $(builddir)/tests/errlist.c \ $(MIG_GEN_CC) -- cgit v1.2.3