Add syscall test framwork from gvisor

This commit is contained in:
LI Qing
2023-05-29 13:29:53 +08:00
committed by Tate, Hongliang Tian
parent 8e199f46ef
commit e2f3932cb8
18 changed files with 256 additions and 43 deletions

12
regression/apps/Makefile Normal file
View File

@ -0,0 +1,12 @@
MAKEFLAGS += --no-builtin-rules # Prevent the implicit rules from compiling ".c" or ".s" files automatically.
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
INITRAMFS ?= $(CUR_DIR)/../build/initramfs
.PHONY: all
all: build
build:
@cp -a $(CUR_DIR)/* $(INITRAMFS)
@cd $(INITRAMFS) && find . \( -name "*.s" -o -name "*.c" -o -name "Makefile" -o -name "README.md" \) -delete