mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Verify ZFS Test Suite scripts executability
This change adds a make target 'testscheck' which verifies all ksh test scripts, part of the ZFS Test Suite, have their executable bit set: this should avoid adding new test scripts that cannot be executed by the test-runner.py which would result in the following warning message: Warning: Test removed from TestGroup because it failed verification. This also verifies both *.cfg and *.kshlib files used in the ZFS Test Suite are not executable. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #7131
This commit is contained in:
parent
6b810d04bd
commit
9ca25e709b
10
Makefile.am
10
Makefile.am
@ -41,7 +41,7 @@ dist-hook:
|
||||
sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
|
||||
$(distdir)/META
|
||||
|
||||
checkstyle: cstyle shellcheck flake8 commitcheck mancheck
|
||||
checkstyle: cstyle shellcheck flake8 commitcheck mancheck testscheck
|
||||
|
||||
commitcheck:
|
||||
@if git rev-parse --git-dir > /dev/null 2>&1; then \
|
||||
@ -68,6 +68,14 @@ mancheck:
|
||||
xargs mandoc -Tlint -Werror; \
|
||||
fi
|
||||
|
||||
testscheck:
|
||||
@find ${top_srcdir}/tests/zfs-tests/tests -type f \
|
||||
\( -name '*.ksh' -not -executable \) -o \
|
||||
\( -name '*.kshlib' -executable \) -o \
|
||||
\( -name '*.cfg' -executable \) | \
|
||||
xargs -r stat -c '%A %n' | \
|
||||
awk '{c++; print} END {if(c>0) exit 1}'
|
||||
|
||||
lint: cppcheck paxcheck
|
||||
|
||||
cppcheck:
|
||||
|
0
tests/zfs-tests/tests/functional/casenorm/casenorm.kshlib
Executable file → Normal file
0
tests/zfs-tests/tests/functional/casenorm/casenorm.kshlib
Executable file → Normal file
0
tests/zfs-tests/tests/functional/cli_root/zpool_events/zpool_events.kshlib
Executable file → Normal file
0
tests/zfs-tests/tests/functional/cli_root/zpool_events/zpool_events.kshlib
Executable file → Normal file
0
tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.cfg
Executable file → Normal file
0
tests/zfs-tests/tests/functional/cli_root/zpool_reopen/zpool_reopen.cfg
Executable file → Normal file
0
tests/zfs-tests/tests/functional/events/events_common.kshlib
Executable file → Normal file
0
tests/zfs-tests/tests/functional/events/events_common.kshlib
Executable file → Normal file
0
tests/zfs-tests/tests/functional/rsend/send_encrypted_files.ksh
Normal file → Executable file
0
tests/zfs-tests/tests/functional/rsend/send_encrypted_files.ksh
Normal file → Executable file
0
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib
Executable file → Normal file
0
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib
Executable file → Normal file
Loading…
Reference in New Issue
Block a user