Move overlayfs test into include helper and wrap in overlayfs_kernel

By making the test a file to be included as a helper, we can reuse most of the code for a fuse_overlayfs test without copy-pasting

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
Ryan Lee 2025-01-23 16:55:57 -08:00
parent dcce4bc62f
commit 9413658277
4 changed files with 16 additions and 2 deletions

View file

@ -279,7 +279,7 @@ TESTS=aa_exec \
named_pipe \ named_pipe \
namespaces \ namespaces \
net_raw \ net_raw \
overlayfs \ overlayfs_kernel \
open \ open \
openat \ openat \
pipe \ pipe \

View file

@ -0,0 +1,14 @@
#! /bin/bash
# Copyright (C) 2024 Canonical, Ltd.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, version 2 of the
# License.
#=NAME overlayfs_kernel
#=DESCRIPTION
# Verifies that file rules work in a (kernel) overlayfs
#=END
source "./overlayfs_common.inc"

View file

@ -47,7 +47,7 @@ environment:
TEST/onexec: 1 TEST/onexec: 1
TEST/open: 1 TEST/open: 1
TEST/openat: 1 TEST/openat: 1
TEST/overlayfs: 1 TEST/overlayfs_kernel: 1
TEST/pipe: 1 TEST/pipe: 1
TEST/pivot_root: 1 TEST/pivot_root: 1
TEST/posix_ipc: 1 TEST/posix_ipc: 1