File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ test -f "${UU_BUILD_DIR}/[" || (cd ${UU_BUILD_DIR} && ln -s "test" "[")
105105
106106cd " ${path_GNU} " && echo " [ pwd:'${PWD} ' ]"
107107
108- # Any binaries that aren't built become `false` so their tests fail
108+ # Any binaries that aren't built become `false` to make tests failure
109+ # Note that some test (e.g. runcon/runcon-compute.sh) incorrectly passes by this
109110for binary in $( ./build-aux/gen-lists-of-programs.sh --list-progs) ; do
110111 bin_path=" ${UU_BUILD_DIR} /${binary} "
111112 test -f " ${bin_path} " || {
@@ -166,6 +167,11 @@ grep -rl 'path_prepend_' tests/* | xargs -r "${SED}" -i 's| path_prepend_ ./src|
166167# path_prepend_ sets $abs_path_dir_: set it manually instead.
167168grep -rl ' \$abs_path_dir_' tests/* /* .sh | xargs -r " ${SED} " -i " s|\$ abs_path_dir_|${UU_BUILD_DIR// \/ / \\ / } |g"
168169
170+ # We can't build runcon and chcon without libselinux. But GNU no longer builds dummies of them. So consider they are SELinux specific.
171+ " ${SED} " -i ' s/^print_ver_.*/require_selinux_/' tests/runcon/runcon-compute.sh
172+ " ${SED} " -i ' s/^print_ver_.*/require_selinux_/' tests/runcon/runcon-no-reorder.sh
173+ " ${SED} " -i ' s/^print_ver_.*/require_selinux_/' tests/chcon/chcon-fail.sh
174+
169175# We use coreutils yes
170176" ${SED} " -i " s|--coreutils-prog=||g" tests/misc/coreutils.sh
171177# Different message
You can’t perform that action at this time.
0 commit comments