diff --git a/func/README.md b/func/README.md index 52b0062..db7e929 100644 --- a/func/README.md +++ b/func/README.md @@ -150,6 +150,10 @@ security is important, actually work and function correctly. With that said, There is no reason to disable integral security layers on your system. +### Should EPEL be enabled? +No. The point is to test Rocky packages, not EPEL. There are also package +differences that will break (eg: nc -> nmap-ncat vs netcat). + Current Tree ------------ ``` diff --git a/func/common/imports.sh b/func/common/imports.sh index f8e99f9..ae49ea2 100644 --- a/func/common/imports.sh +++ b/func/common/imports.sh @@ -36,7 +36,7 @@ function r_processor() { if [[ "$(basename ${file})" =~ README|^\.|^_ ]]; then continue fi - [ -x "${file}" ] && "${file}" + [ -x "${file}" ] && echo "Begin processing script: ${file}" && "${file}" done return 0 } diff --git a/func/core/pkg_archive/20-gzip-bin-test.sh b/func/core/pkg_archive/20-gzip-bin-test.sh index 507387b..00ce3d8 100755 --- a/func/core/pkg_archive/20-gzip-bin-test.sh +++ b/func/core/pkg_archive/20-gzip-bin-test.sh @@ -1,8 +1,9 @@ #!/bin/bash r_log "archive" "Verifying gzip binaries" +echo -n "Processing; " for bin in gunzip gzexe gzip zcat zcmp zdiff zegrep zfgrep zforce zgrep zless zmore znew; do - echo -n "$bin" + echo -n "$bin " r_log "archive" "$bin" $bin --version &> /dev/null || r_checkExitStatus 1 done diff --git a/func/core/pkg_cpio/10-cpio.sh b/func/core/pkg_cpio/10-cpio.sh index 77382a9..685eaf3 100755 --- a/func/core/pkg_cpio/10-cpio.sh +++ b/func/core/pkg_cpio/10-cpio.sh @@ -11,8 +11,10 @@ PASSER=/var/tmp/cpio/pass r_log "cpio" "Test basic copy out" mkdir -p "$OUTTER" "$INNER" "$PASSER" +# Ensure at least one file exists in /tmp to prevent errors. +echo 1 > $(mktemp) # shellcheck disable=2012 -ls /tmp | cpio -o > "$OUTTER"/cpio.out +find /tmp -type f | cpio -o > "$OUTTER"/cpio.out 2> /dev/null r_checkExitStatus $? r_log "cpio" "Test basic copy in"