f31522130f
Build system (5 gaps hardened): - COOKBOOK_OFFLINE defaults to true (fork-mode) - normalize_patch handles diff -ruN format - New 'repo validate-patches' command (25/25 relibc patches) - 14 patched Qt/Wayland/display recipes added to protected list - relibc archive regenerated with current patch chain Boot fixes (fixable): - Full ISO EFI partition: 16 MiB → 1 MiB (matches mini, BIOS hardcoded 2 MiB offset) - D-Bus system bus: absolute /usr/bin/dbus-daemon path (was skipped) - redbear-sessiond: absolute /usr/bin/redbear-sessiond path (was skipped) - daemon framework: silenced spurious INIT_NOTIFY warnings for oneshot_async services (P0-daemon-silence-init-notify.patch) - udev-shim: demoted INIT_NOTIFY warning to INFO (expected for oneshot_async) - relibc: comprehensive named semaphores (sem_open/close/unlink) replacing upstream todo!() stubs - greeterd: Wayland socket timeout 15s → 30s (compositor DRM wait) - greeter-ui: built and linked (header guard unification, sem_compat stubs removed) - mc: un-ignored in both configs, fixed glib/libiconv/pcre2 transitive deps - greeter config: removed stale keymapd dependency from display/greeter services - prefix toolchain: relibc headers synced, _RELIBC_STDLIB_H guard unified Unfixable (diagnosed, upstream): - i2c-hidd: abort on no-I2C-hardware (QEMU) — process::exit → relibc abort - kded6/greeter-ui: page fault 0x8 — Qt library null deref - Thread panics fd != -1 — Rust std library on Redox - DHCP timeout / eth0 MAC — QEMU user-mode networking - hwrngd/thermald — no hardware RNG/thermal in VM - live preload allocation — BIOS memory fragmentation, continues on demand
131 lines
3.0 KiB
Makefile
131 lines
3.0 KiB
Makefile
build_tests = test-compile-pedantic test-link
|
|
|
|
if ENABLE_STATIC_LINK_TEST
|
|
build_tests += test-static-link
|
|
endif
|
|
|
|
noinst_PROGRAMS = $(build_tests)
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/libevdev
|
|
AM_LDFLAGS =
|
|
|
|
test_compile_pedantic_SOURCES = test-compile-pedantic.c
|
|
test_compile_pedantic_CFLAGS = $(AM_CPPFLAGS) -pedantic -Werror -std=c89
|
|
|
|
test_link_SOURCES = test-link.c
|
|
test_link_CFLAGS = -I$(top_srcdir)
|
|
test_link_LDADD = $(top_builddir)/libevdev/libevdev.la
|
|
|
|
test_static_link_SOURCES = test-link.c
|
|
test_static_link_CFLAGS = -I$(top_srcdir)
|
|
test_static_link_LDADD = $(top_builddir)/libevdev/libevdev.la
|
|
test_static_link_LDFLAGS = $(AM_LDFLAGS) -static
|
|
|
|
check_local_deps =
|
|
|
|
if ENABLE_RUNTIME_TESTS
|
|
run_tests = \
|
|
test-libevdev \
|
|
test-kernel \
|
|
test-uinput \
|
|
test-event-codes \
|
|
test-libevdev-internals \
|
|
$(NULL)
|
|
|
|
.NOTPARALLEL:
|
|
|
|
noinst_PROGRAMS += $(run_tests)
|
|
|
|
TESTS = $(run_tests)
|
|
|
|
common_sources = \
|
|
test-common-uinput.c \
|
|
test-common-uinput.h \
|
|
test-common.c \
|
|
test-common.h
|
|
|
|
# include builddir for event-names.h
|
|
AM_CPPFLAGS += $(CHECK_CFLAGS) $(GCOV_CFLAGS)
|
|
AM_LDFLAGS += $(GCOV_LDFLAGS)
|
|
|
|
test_event_codes_SOURCES = \
|
|
test-main.c \
|
|
test-event-codes.c \
|
|
test-event-names.c \
|
|
test-context.c \
|
|
$(common_sources)
|
|
test_event_codes_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
|
|
test_event_codes_LDFLAGS = -no-install
|
|
|
|
test_libevdev_internals_SOURCES = \
|
|
test-main.c \
|
|
test-int-queue.c \
|
|
$(common_sources)
|
|
test_libevdev_internals_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
|
|
test_libevdev_internals_LDFLAGS = -no-install
|
|
|
|
test_uinput_SOURCES = \
|
|
test-main.c \
|
|
test-uinput.c \
|
|
$(common_sources)
|
|
test_uinput_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
|
|
test_uinput_LDFLAGS = -no-install
|
|
|
|
test_libevdev_SOURCES = \
|
|
test-main.c \
|
|
test-libevdev-init.c \
|
|
test-libevdev-has-event.c \
|
|
test-libevdev-events.c \
|
|
$(common_sources)
|
|
|
|
test_libevdev_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
|
|
test_libevdev_LDFLAGS = -no-install
|
|
|
|
test_kernel_SOURCES = \
|
|
test-main.c \
|
|
test-kernel.c \
|
|
$(common_sources)
|
|
|
|
test_kernel_CFLAGS = -I$(top_srcdir)
|
|
test_kernel_LDADD = $(CHECK_LIBS) $(top_builddir)/libevdev/libevdev.la
|
|
|
|
if GCOV_ENABLED
|
|
|
|
CLEANFILES = gcov-reports/*.gcov gcov-reports/summary.txt *.gcno *.gcda
|
|
|
|
gcov-report: generate-gcov-report.sh
|
|
$(AM_V_GEN)$(srcdir)/generate-gcov-report.sh gcov-reports $(top_builddir)/libevdev $(builddir)
|
|
|
|
gcov: gcov-report
|
|
@cat gcov-reports/summary.txt
|
|
|
|
check_local_deps += gcov
|
|
|
|
else
|
|
|
|
gcov-report.txt:
|
|
@true
|
|
|
|
gcov:
|
|
@true
|
|
|
|
|
|
endif # GCOV_ENABLED
|
|
|
|
.PHONY: gcov gcov-clean gcov-report
|
|
|
|
endif # ENABLE_RUNTIME_TESTS
|
|
|
|
if ENABLE_STATIC_SYMBOL_LEAKS_TEST
|
|
static-symbol-leaks: test-static-link test-static-symbols-leak.sh
|
|
$(AM_V_GEN) $(srcdir)/test-static-symbols-leak.sh $(builddir)
|
|
|
|
check_local_deps += static-symbol-leaks
|
|
|
|
endif # HAVE_NM
|
|
|
|
EXTRA_DIST = valgrind.suppressions generate-gcov-report.sh test-static-symbols-leak.sh
|
|
|
|
check-local: $(check_local_deps)
|
|
|