import upstream maccel baseline
Tests / test_core_function (push) Failing after 12s

This commit is contained in:
2026-03-24 12:10:31 +00:00
parent 6e948d7b39
commit 5f1254d11a
108 changed files with 18930 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
ifneq ($(KERNELRELEASE),)
obj-m := maccel.o
ccflags-y += $(DRIVER_CFLAGS)
endif
KVER ?= $(shell uname -r)
KDIR ?= /lib/modules/$(KVER)/build
DRIVER_CFLAGS ?= -DFIXEDPT_BITS=$(shell getconf LONG_BIT)
ifneq ($(CC),clang)
CC=gcc
else
export LLVM=1
endif
build:
$(MAKE) CC=$(CC) -C $(KDIR) M=$(CURDIR)
build_debug: DRIVER_CFLAGS += -g -DDEBUG
build_debug: build
clean:
$(MAKE) -C $(KDIR) M=$(CURDIR) clean
test_debug: DRIVER_CFLAGS += -g -DDEBUG
test_debug: test
test: **/*.test.c
@mkdir -p tests/snapshots
DRIVER_CFLAGS="$(DRIVER_CFLAGS)" TEST_NAME=$(name) sh tests/run_tests.sh