pull: allow disabling command builds
cover pull: allow disabling command builds
Hi Karel and distribution maintainers,
This pull request has four patches that will allow a builder to disable all commands. The Documentation/howto-build-sys.txt is telling distribution package maintainers are not supposed to run config-gen. IMHO it might be best to ignore that advice when only library build is needed, and run the following.
tools/config-gen libs-only
The last patch makes the tests not to fail when commands are not compiled. That said there the tests are currently broken (at least in my laptop). Commit c367cda9 did not take effect, something again ate trailing white spaces again, and 'blkid/lowprobe-pt sgi' has two extra lines in output.
I hope these changes make bootstraping nicer, but if not let me know how to improve this.
The following changes since commit 24b2a479fd5ba138e9b836fa2115939eb3b59dfe:
fallocate: Add "--dig-holes" option (2014-02-14 11:31:12 +0100)
are available in the git repository at:
git://github.com/kerolasa/lelux-utiliteetit.git disable-most
for you to fetch changes up to dc8ba4a3d89355761bf321af0d877f70d3afbd5a:
tests: check commands needed for running a test exist (2014-02-16 15:07:13 +0000)
----------------------------------------------------------------
Sami Kerola (4):
build-sys: allow per directory build targets
build-sys: add libs-only to config-gen.d
tools: make config-gen to require build target argument
tests: check commands needed for running a test exist
configure.ac | 65 ++++++++++++++++++++++++++++++----- disk-utils/Makemodule.am | 3 ++ fdisks/Makemodule.am | 3 ++ login-utils/Makemodule.am | 3 ++ misc-utils/Makemodule.am | 3 ++ sys-utils/Makemodule.am | 3 ++ term-utils/Makemodule.am | 3 ++ tests/functions.sh | 10 ++++-- tests/ts/bitops/swapbytes | 2 ++ tests/ts/blkid/low-probe | 4 +-- tests/ts/blkid/lowprobe-pt | 4 +-- tests/ts/blkid/md-raid0-whole | 4 +++ tests/ts/blkid/md-raid1-part | 4 +++ tests/ts/blkid/md-raid1-whole | 4 +++ tests/ts/cal/1m | 2 ++ tests/ts/cal/1mw | 2 ++ tests/ts/cal/3m | 2 ++ tests/ts/cal/3mw | 2 ++ tests/ts/cal/bigyear | 2 ++ tests/ts/cal/bigyearw | 2 ++ tests/ts/cal/color | 2 ++ tests/ts/cal/colorw | 2 ++ tests/ts/cal/sep1752 | 2 ++ tests/ts/cal/sep1752w | 2 ++ tests/ts/cal/weekarg | 2 ++ tests/ts/cal/weeknum | 4 ++- tests/ts/cal/year | 2 ++ tests/ts/cal/yearw | 2 ++ tests/ts/col/multibyte | 2 ++ tests/ts/colrm/rm2-2 | 2 ++ tests/ts/column/fillrow | 2 ++ tests/ts/column/multi-file | 4 ++- tests/ts/column/separator_table | 2 ++ tests/ts/cramfs/doubles | 5 +++ tests/ts/cramfs/fsck-endianness | 4 +++ tests/ts/cramfs/mkfs | 6 ++++ tests/ts/cramfs/mkfs-endianness | 3 ++ tests/ts/dmesg/console-levels | 2 ++ tests/ts/dmesg/decode | 2 ++ tests/ts/dmesg/delta | 2 ++ tests/ts/dmesg/facilities | 2 ++ tests/ts/eject/umount | 8 +++-- tests/ts/fdisk/align-512-4K | 3 ++ tests/ts/fdisk/align-512-4K-63 | 3 ++ tests/ts/fdisk/align-512-4K-md | 3 ++ tests/ts/fdisk/align-512-512 | 3 ++ tests/ts/fdisk/align-512-512-topology | 3 ++ tests/ts/fdisk/bsd | 4 ++- tests/ts/fdisk/gpt | 4 ++- tests/ts/fdisk/id | 2 ++ tests/ts/fdisk/mbr-dos-mode | 2 ++ tests/ts/fdisk/mbr-nondos-mode | 6 ++-- tests/ts/fdisk/oddinput | 2 ++ tests/ts/fdisk/sunlabel | 2 ++ tests/ts/fsck/ismounted | 4 +++ tests/ts/hexdump/format-strings | 2 +- tests/ts/hwclock/systohc | 3 ++ tests/ts/ipcs/headers | 2 ++ tests/ts/ipcs/limits | 3 ++ tests/ts/ipcs/limits2 | 3 ++ tests/ts/ipcs/mk-rm-msg | 4 +++ tests/ts/ipcs/mk-rm-sem | 4 +++ tests/ts/ipcs/mk-rm-shm | 4 +++ tests/ts/isosize/print-size | 2 ++ tests/ts/last/ipv6 | 2 +- tests/ts/last/last | 2 +- tests/ts/libmount/context | 7 +++- tests/ts/libmount/context-py | 6 ++++ tests/ts/libmount/context-utab | 4 +++ tests/ts/libmount/context-utab-py | 5 +++ tests/ts/login/islocal | 2 ++ tests/ts/login/logindefs | 2 ++ tests/ts/look/separator | 2 ++ tests/ts/losetup/losetup | 3 ++ tests/ts/lscpu/lscpu | 4 ++- tests/ts/minix/fsck | 5 +-- tests/ts/minix/mkfs | 5 +-- tests/ts/misc/fallocate | 2 ++ tests/ts/misc/getopt | 2 ++ tests/ts/misc/ionice | 2 ++ tests/ts/misc/line | 4 +-- tests/ts/misc/mcookie | 2 ++ tests/ts/misc/rev | 2 ++ tests/ts/misc/setarch | 2 ++ tests/ts/misc/setsid | 2 ++ tests/ts/misc/ul | 2 ++ tests/ts/misc/whereis | 2 ++ tests/ts/more/regexp | 2 ++ tests/ts/more/squeeze | 2 ++ tests/ts/mount/devname | 4 +++ tests/ts/mount/fstab-broken | 5 +++ tests/ts/mount/fstab-devname | 4 +++ tests/ts/mount/fstab-devname2label | 4 +++ tests/ts/mount/fstab-devname2uuid | 4 +++ tests/ts/mount/fstab-label | 4 +++ tests/ts/mount/fstab-label2devname | 4 +++ tests/ts/mount/fstab-label2uuid | 4 +++ tests/ts/mount/fstab-none | 5 +++ tests/ts/mount/fstab-symlink | 4 +++ tests/ts/mount/fstab-uuid | 4 +++ tests/ts/mount/fstab-uuid2devname | 4 +++ tests/ts/mount/fstab-uuid2label | 4 +++ tests/ts/mount/label | 4 +++ tests/ts/mount/move | 5 +++ tests/ts/mount/noncanonical | 3 ++ tests/ts/mount/paths | 3 ++ tests/ts/mount/regfile | 4 +++ tests/ts/mount/remount | 4 +++ tests/ts/mount/rlimit | 4 +++ tests/ts/mount/shared-subtree | 5 +++ tests/ts/mount/special | 3 ++ tests/ts/mount/umount-alltargets | 5 +++ tests/ts/mount/umount-recursive | 5 +++ tests/ts/mount/uuid | 4 +++ tests/ts/namei/logic | 2 ++ tests/ts/partx/partx | 7 ++-- tests/ts/schedutils/cpuset | 2 ++ tests/ts/script/race | 2 ++ tests/ts/swapon/devname | 5 +++ tests/ts/swapon/fixpgsz | 5 +++ tests/ts/swapon/fixsig | 5 +++ tests/ts/swapon/label | 5 +++ tests/ts/swapon/uuid | 5 +++ tests/ts/tailf/simple | 2 ++ tests/ts/utmpdump/ipv6tobin | 2 ++ tests/ts/utmpdump/ipv6totxt | 2 ++ tests/ts/utmpdump/to-binary | 2 ++ tests/ts/utmpdump/to-text | 2 ++ tests/ts/wipefs/wipefs | 2 ++ text-utils/Makemodule.am | 2 ++ tools/config-gen | 9 +++++ tools/config-gen.d/libs-only.conf | 10 ++++++ 132 files changed, 470 insertions(+), 38 deletions(-) create mode 100644 tools/config-gen.d/libs-only.conf
Signature · 2 lines
Sami Kerola http://www.iki.fi/kerolasa/
PATCH 1/4 build-sys: allow per directory build targets
The new --disable-miscutils type of options are meant added for distribution maintainers who need sometimes only to build util-linux libraries to bootstrap fresh systems or new architectures.
References: http://www.spinics.net/lists/util-linux-ng/index.html#08695
--- configure.ac | 65 +++++++++++++++++++++++++++++++++++++++++------ disk-utils/Makemodule.am | 3 +++ fdisks/Makemodule.am | 3 +++ login-utils/Makemodule.am | 3 +++ misc-utils/Makemodule.am | 3 +++ sys-utils/Makemodule.am | 3 +++ term-utils/Makemodule.am | 3 +++ text-utils/Makemodule.am | 2 ++ 8 files changed, 77 insertions(+), 8 deletions(-)
configure.ac +57 -8
@@ -1260,6 +1260,63 @@ AS_IF([test "x$enable_login_stat_mail" = xyes], [ ]) +AC_ARG_ENABLE([diskutils], + AS_HELP_STRING([--disable-diskutils], [do not build disk utils]), + [], [enable_diskutils=yes] +) +UL_BUILD_INIT([diskutils]) +AM_CONDITIONAL([BUILD_DISKUTILS], [test "x$build_diskutils" = xyes]) + +AC_ARG_ENABLE([fdisks], + AS_HELP_STRING([--disable-fdisks], [do not build fdisk]), + [], [enable_fdisks=yes] +) +UL_BUILD_INIT([fdisks]) +AM_CONDITIONAL([BUILD_FDISKS], [test "x$build_fdisks" = xyes]) + +AC_ARG_ENABLE([loginutils], + AS_HELP_STRING([--disable-loginutils], [do not build login utils]), + [], [enable_loginutils=yes] +) +UL_BUILD_INIT([loginutils]) +AM_CONDITIONAL([BUILD_LOGINUTILS], [test "x$build_loginutils" = xyes]) + +AC_ARG_ENABLE([miscutils], + AS_HELP_STRING([--disable-miscutils], [do not build misc utils]), + [], [enable_miscutils=yes] +) +UL_BUILD_INIT([miscutils]) +AM_CONDITIONAL([BUILD_MISCUTILS], [test "x$build_miscutils" = xyes]) + +AC_ARG_ENABLE([schedutils], + AS_HELP_STRING([--disable-schedutils], [do not build sched utils]), + [], [enable_schedutils=yes] +) +UL_BUILD_INIT([schedutils]) +AM_CONDITIONAL([BUILD_SCHEDUTILS], [test "x$build_schedutils" = xyes]) + +AC_ARG_ENABLE([sysutils], + AS_HELP_STRING([--disable-sysutils], [do not build sys utils]), + [], [enable_sysutils=yes] +) +UL_BUILD_INIT([sysutils]) +AM_CONDITIONAL([BUILD_SYSUTILS], [test "x$build_sysutils" = xyes]) + +AC_ARG_ENABLE([termutils], + AS_HELP_STRING([--disable-termutils], [do not build term utils]), + [], [enable_termutils=yes] +) +UL_BUILD_INIT([termutils]) +AM_CONDITIONAL([BUILD_TERMUTILS], [test "x$build_termutils" = xyes]) + +AC_ARG_ENABLE([textutils], + AS_HELP_STRING([--disable-textutils], [do not build text utils]), + [], [enable_textutils=yes] +) +UL_BUILD_INIT([textutils]) +AM_CONDITIONAL([BUILD_TEXTUTILS], [test "x$build_textutils" = xyes]) + + AC_ARG_ENABLE([nologin], AS_HELP_STRING([--disable-nologin], [do not build nologin]), [], [enable_nologin=yes]
@@ -1330,14 +1387,6 @@ UL_REQUIRES_LINUX([setterm]) UL_REQUIRES_HAVE([setterm], [ncurses], [ncurses library]) AM_CONDITIONAL([BUILD_SETTERM], [test "x$build_setterm" = xyes]) - -AC_ARG_ENABLE([schedutils], - AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, taskset]), - [], [enable_schedutils=yes] -) -UL_BUILD_INIT([schedutils]) -AM_CONDITIONAL([BUILD_SCHEDUTILS], [test "x$build_schedutils" = xyes]) - UL_BUILD_INIT([ionice], [check]) UL_REQUIRES_BUILD([ionice], [schedutils]) UL_REQUIRES_SYSCALL_CHECK([ionice],
disk-utils/Makemodule.am +3 -0
@@ -1,3 +1,4 @@ +if BUILD_DISKUTILS sbin_PROGRAMS += fsck.minix dist_man_MANS += disk-utils/fsck.minix.8
@@ -142,3 +143,5 @@ partx_CFLAGS = -I$(ul_libblkid_incdir) partx_LDADD = $(LDADD) libblkid.la libcommon.la endif # BUILD_PARTX + +endif # BUILD_DISKUTILS
fdisks/Makemodule.am +3 -0
@@ -1,3 +1,4 @@ +if BUILD_FDISKS if !ARCH_M68K
@@ -74,3 +75,5 @@ endif # BUILD_CFDISK endif # !ARCH_SPARC endif # !ARCH_M68K + +endif # BUILD_FDISKS
login-utils/Makemodule.am +3 -0
@@ -1,3 +1,4 @@ +if BUILD_LOGINUTILS if BUILD_LAST usrbin_exec_PROGRAMS += last
@@ -207,3 +208,5 @@ endif if BUILD_VIPW cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr endif + +endif # BUILD_LOGINUTILS
misc-utils/Makemodule.am +3 -0
@@ -1,3 +1,4 @@ +if BUILD_MISCUTILS usrbin_exec_PROGRAMS += cal dist_man_MANS += misc-utils/cal.1
@@ -148,3 +149,5 @@ getoptexampledir = $(docdir)/getopt/ dist_getoptexample_SCRIPTS = \ misc-utils/getopt-parse.bash \ misc-utils/getopt-parse.tcsh + +endif # BUILD_MISCUTILS
sys-utils/Makemodule.am +3 -0
@@ -1,3 +1,4 @@ +if BUILD_SYSUTILS usrbin_exec_PROGRAMS += flock dist_man_MANS += sys-utils/flock.1
@@ -328,3 +329,5 @@ dist_man_MANS += sys-utils/setpriv.1 setpriv_SOURCES = sys-utils/setpriv.c setpriv_LDADD = $(LDADD) -lcap-ng libcommon.la endif + +endif # BUILD_SYSUTILS
term-utils/Makemodule.am +3 -0
@@ -1,3 +1,4 @@ +if BUILD_TERMUTILS usrbin_exec_PROGRAMS += script dist_man_MANS += term-utils/script.1
@@ -93,3 +94,5 @@ INSTALL_EXEC_HOOKS += install-exec-hook-write endif endif endif # BUILD_WRITE + +endif # BUILD_TERMUTILS
text-utils/Makemodule.am +2 -0
@@ -1,3 +1,4 @@ +if BUILD_TEXTUTILS usrbin_exec_PROGRAMS += \ col \
@@ -98,3 +99,4 @@ test_more_LDADD = $(more_LDADD) endif # BUILD_MORE +endif # BUILD_TEXTUTILS
Signature · 1 line
1.8.5.5
PATCH 2/4 build-sys: add libs-only to config-gen.d
In reply to Sami Kerola--- tools/config-gen.d/libs-only.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tools/config-gen.d/libs-only.conf
tools/config-gen.d/libs-only.conf new file +10 -0
@@ -0,0 +1,10 @@ +include:core.conf + +--disable-diskutils +--disable-fdisks +--disable-loginutils +--disable-miscutils +--disable-schedutils +--disable-sysutils +--disable-termutils +--disable-textutils
Signature · 1 line
1.8.5.5
PATCH 3/4 tools: make config-gen to require build target argument
In reply to Sami KerolaWhen argument is not supplied help user by telling what arguments can be used.
--- tools/config-gen | 9 +++++++++ 1 file changed, 9 insertions(+)
tools/config-gen +9 -0
@@ -12,6 +12,15 @@ test -f sys-utils/mount.c || { . tools/config-gen-functions.sh +if [ $# -eq 0 ]; then + echo "This script requires at least one of the folloving arguments:" + cd tools/config-gen.d + for i in *.conf; do + echo " ${i%%.conf}" + done + exit 1 +fi + while [ -n "$1" ]; do opts="$opts $(ul_get_configuration tools/config-gen.d/$1.conf)" shift
Signature · 1 line
1.8.5.5
PATCH 4/4 tests: check commands needed for running a test exist
In reply to Sami Kerola--- tests/functions.sh | 10 ++++++++-- tests/ts/bitops/swapbytes | 2 ++ tests/ts/blkid/low-probe | 4 +--- tests/ts/blkid/lowprobe-pt | 4 +--- tests/ts/blkid/md-raid0-whole | 4 ++++ tests/ts/blkid/md-raid1-part | 4 ++++ tests/ts/blkid/md-raid1-whole | 4 ++++ tests/ts/cal/1m | 2 ++ tests/ts/cal/1mw | 2 ++ tests/ts/cal/3m | 2 ++ tests/ts/cal/3mw | 2 ++ tests/ts/cal/bigyear | 2 ++ tests/ts/cal/bigyearw | 2 ++ tests/ts/cal/color | 2 ++ tests/ts/cal/colorw | 2 ++ tests/ts/cal/sep1752 | 2 ++ tests/ts/cal/sep1752w | 2 ++ tests/ts/cal/weekarg | 2 ++ tests/ts/cal/weeknum | 4 +++- tests/ts/cal/year | 2 ++ tests/ts/cal/yearw | 2 ++ tests/ts/col/multibyte | 2 ++ tests/ts/colrm/rm2-2 | 2 ++ tests/ts/column/fillrow | 2 ++ tests/ts/column/multi-file | 4 +++- tests/ts/column/separator_table | 2 ++ tests/ts/cramfs/doubles | 5 +++++ tests/ts/cramfs/fsck-endianness | 4 ++++ tests/ts/cramfs/mkfs | 6 ++++++ tests/ts/cramfs/mkfs-endianness | 3 +++ tests/ts/dmesg/console-levels | 2 ++ tests/ts/dmesg/decode | 2 ++ tests/ts/dmesg/delta | 2 ++ tests/ts/dmesg/facilities | 2 ++ tests/ts/eject/umount | 8 ++++++-- tests/ts/fdisk/align-512-4K | 3 +++ tests/ts/fdisk/align-512-4K-63 | 3 +++ tests/ts/fdisk/align-512-4K-md | 3 +++ tests/ts/fdisk/align-512-512 | 3 +++ tests/ts/fdisk/align-512-512-topology | 3 +++ tests/ts/fdisk/bsd | 4 +++- tests/ts/fdisk/gpt | 4 +++- tests/ts/fdisk/id | 2 ++ tests/ts/fdisk/mbr-dos-mode | 2 ++ tests/ts/fdisk/mbr-nondos-mode | 6 ++++-- tests/ts/fdisk/oddinput | 2 ++ tests/ts/fdisk/sunlabel | 2 ++ tests/ts/fsck/ismounted | 4 ++++ tests/ts/hexdump/format-strings | 2 +- tests/ts/hwclock/systohc | 3 +++ tests/ts/ipcs/headers | 2 ++ tests/ts/ipcs/limits | 3 +++ tests/ts/ipcs/limits2 | 3 +++ tests/ts/ipcs/mk-rm-msg | 4 ++++ tests/ts/ipcs/mk-rm-sem | 4 ++++ tests/ts/ipcs/mk-rm-shm | 4 ++++ tests/ts/isosize/print-size | 2 ++ tests/ts/last/ipv6 | 2 +- tests/ts/last/last | 2 +- tests/ts/libmount/context | 7 ++++++- tests/ts/libmount/context-py | 6 ++++++ tests/ts/libmount/context-utab | 4 ++++ tests/ts/libmount/context-utab-py | 5 +++++ tests/ts/login/islocal | 2 ++ tests/ts/login/logindefs | 2 ++ tests/ts/look/separator | 2 ++ tests/ts/losetup/losetup | 3 +++ tests/ts/lscpu/lscpu | 4 +++- tests/ts/minix/fsck | 5 +++-- tests/ts/minix/mkfs | 5 +++-- tests/ts/misc/fallocate | 2 ++ tests/ts/misc/getopt | 2 ++ tests/ts/misc/ionice | 2 ++ tests/ts/misc/line | 4 +--- tests/ts/misc/mcookie | 2 ++ tests/ts/misc/rev | 2 ++ tests/ts/misc/setarch | 2 ++ tests/ts/misc/setsid | 2 ++ tests/ts/misc/ul | 2 ++ tests/ts/misc/whereis | 2 ++ tests/ts/more/regexp | 2 ++ tests/ts/more/squeeze | 2 ++ tests/ts/mount/devname | 4 ++++ tests/ts/mount/fstab-broken | 5 +++++ tests/ts/mount/fstab-devname | 4 ++++ tests/ts/mount/fstab-devname2label | 4 ++++ tests/ts/mount/fstab-devname2uuid | 4 ++++ tests/ts/mount/fstab-label | 4 ++++ tests/ts/mount/fstab-label2devname | 4 ++++ tests/ts/mount/fstab-label2uuid | 4 ++++ tests/ts/mount/fstab-none | 5 +++++ tests/ts/mount/fstab-symlink | 4 ++++ tests/ts/mount/fstab-uuid | 4 ++++ tests/ts/mount/fstab-uuid2devname | 4 ++++ tests/ts/mount/fstab-uuid2label | 4 ++++ tests/ts/mount/label | 4 ++++ tests/ts/mount/move | 5 +++++ tests/ts/mount/noncanonical | 3 +++ tests/ts/mount/paths | 3 +++ tests/ts/mount/regfile | 4 ++++ tests/ts/mount/remount | 4 ++++ tests/ts/mount/rlimit | 4 ++++ tests/ts/mount/shared-subtree | 5 +++++ tests/ts/mount/special | 3 +++ tests/ts/mount/umount-alltargets | 5 +++++ tests/ts/mount/umount-recursive | 5 +++++ tests/ts/mount/uuid | 4 ++++ tests/ts/namei/logic | 2 ++ tests/ts/partx/partx | 7 +++++-- tests/ts/schedutils/cpuset | 2 ++ tests/ts/script/race | 2 ++ tests/ts/swapon/devname | 5 +++++ tests/ts/swapon/fixpgsz | 5 +++++ tests/ts/swapon/fixsig | 5 +++++ tests/ts/swapon/label | 5 +++++ tests/ts/swapon/uuid | 5 +++++ tests/ts/tailf/simple | 2 ++ tests/ts/utmpdump/ipv6tobin | 2 ++ tests/ts/utmpdump/ipv6totxt | 2 ++ tests/ts/utmpdump/to-binary | 2 ++ tests/ts/utmpdump/to-text | 2 ++ tests/ts/wipefs/wipefs | 2 ++ 122 files changed, 374 insertions(+), 30 deletions(-)
tests/functions.sh +8 -2
@@ -31,6 +31,12 @@ function ts_canonicalize { fi } +function ts_check_test_command { + if [ ! -x "$1" ]; then + ts_skip "${1##*/} not found" + fi +} + function ts_skip_subtest { echo " IGNORE ($1)" }
@@ -351,7 +357,7 @@ function ts_die { ts_log "$1" if [ -n "$2" ] && [ -b "$2" ]; then ts_device_deinit "$2" - ts_fstab_clean # for sure... + ts_fstab_clean # for sure... fi ts_finalize }
@@ -364,7 +370,7 @@ function ts_image_md5sum { function ts_image_init { local mib=${1:-"5"} # size in MiBs local img=${2:-"$TS_OUTDIR/${TS_TESTNAME}.img"} - + dd if=/dev/zero of="$img" bs=1M count=$mib &> /dev/null echo "$img" return 0
tests/ts/bitops/swapbytes +2 -0
@@ -21,6 +21,8 @@ TS_DESC="swap bytes" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_HELPER_BYTESWAP" + $TS_HELPER_BYTESWAP >> $TS_OUTPUT ts_finalize
tests/ts/blkid/low-probe +1 -3
@@ -23,9 +23,7 @@ TS_DESC="low-level superblocks probing" ts_init "$*" -if [ ! -x "$TS_CMD_BLKID" ]; then - ts_skip "blkid disabled" -fi +ts_check_test_command "$TS_CMD_BLKID" mkdir -p $TS_OUTDIR/images-fs
tests/ts/blkid/lowprobe-pt +1 -3
@@ -23,9 +23,7 @@ TS_DESC="partitions probing" ts_init "$*" -if [ ! -x "$TS_HELPER_PARTITIONS" ]; then - ts_skip "blkid disabled" -fi +ts_check_test_command "$TS_HELPER_PARTITIONS" mkdir -p $TS_OUTDIR/images-pt
tests/ts/blkid/md-raid0-whole +4 -0
@@ -21,6 +21,10 @@ TS_DESC="MD raid0 (whole-disks)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_BLKID" + ts_skip_nonroot [ -x /sbin/mdadm ] || ts_skip "missing mdadm"
tests/ts/blkid/md-raid1-part +4 -0
@@ -21,6 +21,10 @@ TS_DESC="MD raid1 (last partition)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_BLKID" + ts_skip_nonroot DEVICE=$(ts_scsi_debug_init dev_size_mb=51 sector_size=512)
tests/ts/blkid/md-raid1-whole +4 -0
@@ -21,6 +21,10 @@ TS_DESC="MD raid1 (whole-disks)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_BLKID" + ts_skip_nonroot [ -x /sbin/mdadm ] || ts_skip "missing mdadm"
tests/ts/cal/1m +2 -0
@@ -22,6 +22,8 @@ TS_DESC="1 month" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/1mw +2 -0
@@ -22,6 +22,8 @@ TS_DESC="1 month with week numbers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/3m +2 -0
@@ -21,6 +21,8 @@ TS_DESC="3 months" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/3mw +2 -0
@@ -21,6 +21,8 @@ TS_DESC="3 months with week numbers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail USETERM=$( ts_has_option "useterm" "$*" )
tests/ts/cal/bigyear +2 -0
@@ -18,6 +18,8 @@ TS_DESC="Year 2147483646" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/bigyearw +2 -0
@@ -18,6 +18,8 @@ TS_DESC="Year 2147483646 with week numbers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/color +2 -0
@@ -20,6 +20,8 @@ TS_DESC="color" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + # --color output depends on terminal type export TERM=linux
tests/ts/cal/colorw +2 -0
@@ -20,6 +20,8 @@ TS_DESC="color with week numbers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + # --color output depends on terminal type export TERM=linux
tests/ts/cal/sep1752 +2 -0
@@ -18,6 +18,8 @@ TS_DESC="September 1752" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/sep1752w +2 -0
@@ -18,6 +18,8 @@ TS_DESC="September 1752 with week numbers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/weekarg +2 -0
@@ -21,6 +21,8 @@ TS_DESC="week number given as argument" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/weeknum +3 -1
@@ -21,6 +21,8 @@ TS_DESC="week number corner cases" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
@@ -29,7 +31,7 @@ USETERM=$( ts_has_option "useterm" "$*" ) [ "$USETERM" == "yes" ] && TS_VERBOSE="yes" ts_log "" -for x in 2001 2002 2003 2009 2010 2011 2012 ; do +for x in 2001 2002 2003 2009 2010 2011 2012 ; do MYTIME="1 $x" ts_log "Gregorian - Monday-based week with week numbers - year $x"
tests/ts/cal/year +2 -0
@@ -21,6 +21,8 @@ TS_DESC="year" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/cal/yearw +2 -0
@@ -21,6 +21,8 @@ TS_DESC="year with week numbers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CAL" + set -o pipefail export TERM=linux
tests/ts/col/multibyte +2 -0
@@ -21,6 +21,8 @@ TS_DESC="multibyte input" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_COL" + cat $TS_SELF/multibyte.data | $TS_CMD_COL > /dev/null 2> $TS_OUTPUT ts_finalize
tests/ts/colrm/rm2-2 +2 -0
@@ -21,6 +21,8 @@ TS_DESC="basic check" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_COLRM" + printf "a b\nc\td\nef\b\tg\n" | $TS_CMD_COLRM 2 2 > $TS_OUTPUT 2>&1 ts_finalize
tests/ts/column/fillrow +2 -0
@@ -21,6 +21,8 @@ TS_DESC="fill row" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_COLUMN" + cd $TS_OUTDIR $TS_CMD_COLUMN -x -c 50 $TS_SELF/input >> $TS_OUTPUT 2>&1
tests/ts/column/multi-file +3 -1
@@ -2,7 +2,7 @@ # # Copyright (C) 2011 Sami Kerola <[email protected]> -# 2011 Karel Zak <[email protected]> +# 2011 Karel Zak <[email protected]> # # This file is part of util-linux. #
@@ -22,6 +22,8 @@ TS_DESC="multiple files" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_COLUMN" + cd $TS_OUTDIR $TS_CMD_COLUMN -x -c 50 $TS_SELF/input \
tests/ts/column/separator_table +2 -0
@@ -21,6 +21,8 @@ TS_DESC="separator & table" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_COLUMN" + cd $TS_OUTDIR $TS_CMD_COLUMN -s 2 -t $TS_SELF/input >> $TS_OUTPUT 2>&1
tests/ts/cramfs/doubles +5 -0
@@ -20,6 +20,11 @@ TS_DESC="mkfs doubles" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKCRAMFS" +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/cramfs/fsck-endianness +4 -0
@@ -20,6 +20,10 @@ TS_DESC="fsck endianness" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKCRAMFS" +ts_check_test_command "$TS_CMD_FSCKCRAMFS" + ts_skip_nonroot set -o pipefail
tests/ts/cramfs/mkfs +6 -0
@@ -20,6 +20,12 @@ TS_DESC="mkfs checksums" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKCRAMFS" +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" +ts_check_test_command "$TS_CMD_LOSETUP" + ts_skip_nonroot set -o pipefail
tests/ts/cramfs/mkfs-endianness +3 -0
@@ -20,6 +20,9 @@ TS_DESC="mkfs endianness" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKCRAMFS" + ts_skip_nonroot set -o pipefail
tests/ts/dmesg/console-levels +2 -0
@@ -18,6 +18,8 @@ TS_DESC="levels" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + for I in {-1..8}; do $TS_CMD_DMESG -F $TS_SELF/input -l $I >> $TS_OUTPUT 2>/dev/null done
tests/ts/dmesg/decode +2 -0
@@ -18,6 +18,8 @@ TS_DESC="decode" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + $TS_CMD_DMESG -x -F $TS_SELF/input >> $TS_OUTPUT 2>/dev/null ts_finalize
tests/ts/dmesg/delta +2 -0
@@ -18,6 +18,8 @@ TS_DESC="delta" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + $TS_CMD_DMESG -d -F $TS_SELF/input >> $TS_OUTPUT 2>/dev/null ts_finalize
tests/ts/dmesg/facilities +2 -0
@@ -18,6 +18,8 @@ TS_DESC="facilities" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_DMESG" + for I in {-1..12}; do $TS_CMD_DMESG -F $TS_SELF/input -f $I >> $TS_OUTPUT 2>/dev/null done
tests/ts/eject/umount +6 -2
@@ -5,10 +5,14 @@ TS_DESC="umount" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_EJECT" + ts_skip_nonroot # -# Note that eject --force is required because scsi_debug is +# Note that eject --force is required because scsi_debug is # not removable device. #
@@ -35,7 +39,7 @@ p w EOF udevadm settle - mkfs.ext2 -q ${dev}1 + mkfs.ext2 -q ${dev}1 mkfs.ext2 -q ${dev}2 udevadm settle }
tests/ts/fdisk/align-512-4K +3 -0
@@ -25,6 +25,9 @@ TS_DESC="align 512/4K" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" + ts_skip_nonroot DEVICE=$(ts_scsi_debug_init dev_size_mb=50 sector_size=512 physblk_exp=3)
tests/ts/fdisk/align-512-4K-63 +3 -0
@@ -25,6 +25,9 @@ TS_DESC="align 512/4K +alignment_offset" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" + ts_skip_nonroot DEVICE=$(ts_scsi_debug_init dev_size_mb=50 sector_size=512 physblk_exp=3 lowest_aligned=7)
tests/ts/fdisk/align-512-4K-md +3 -0
@@ -25,6 +25,9 @@ TS_DESC="align 512/4K +MD" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" + ts_skip_nonroot DEVICE=$(ts_scsi_debug_init dev_size_mb=50 sector_size=512 physblk_exp=3)
tests/ts/fdisk/align-512-512 +3 -0
@@ -24,6 +24,9 @@ TS_DESC="align 512/512" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" + ts_skip_nonroot DEVICE=$(ts_device_init 50)
tests/ts/fdisk/align-512-512-topology +3 -0
@@ -25,6 +25,9 @@ TS_DESC="align 512/512 +topology" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" + ts_skip_nonroot
tests/ts/fdisk/bsd +3 -1
@@ -22,6 +22,8 @@ TS_DESC="nested BSD" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + FDISK_CMD_CREATE_DOSLABEL="o\n" # create dos label FDISK_CMD_SETID="x\ni\n0x1\nr\n" # set non-random ID FDISK_CMD_WRITE_CLOSE="w\nq\n" # write to image
@@ -35,7 +37,7 @@ FDISK_CMD_BSD_CREATE_PART="b\nn\na\n\n+1M\n" # add BSD partition 'a', size 1MiB FDISK_CMD_BSD_PARTTYPE="b\nt\na\n7\n" # set partition 'a' to type 4.2BSD FDISK_CMD_BSD_LIST_TYPES="b\nl\nq\n" # list supported PT types and quit -#set -x +#set -x function print_layout { echo -ne "\n---layout----------" >> $TS_OUTPUT
tests/ts/fdisk/gpt +3 -1
@@ -22,6 +22,8 @@ TS_DESC="GPT" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + FDISK_CMD_CREATE_GPTLABEL="g\n" # create GPT label FDISK_CMD_WRITE_CLOSE="w\nq\n" # write to image
@@ -29,7 +31,7 @@ FDISK_CMD_CHANGE_TYPE_BY_NUM="t\n1\n1\n" # set 1st partition to EFI System # set 5th partition to Linux swap FDISK_CMD_CHANGE_TYPE_BY_UUID="t\n5\n0657FD6D-A4AB-43C4-84E5-0933C84B4F4F\n" -FDISK_CMD_DELETE_PART="d\n2\n" # delete 2nd partition +FDISK_CMD_DELETE_PART="d\n2\n" # delete 2nd partition FDISK_CMD_CREATE_PART="n\n2\n\n\n" # create 2nd partition function print_layout {
tests/ts/fdisk/id +2 -0
@@ -20,6 +20,8 @@ TS_DESC="MBR - id" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + FDISK_CMD_ID1="x\ni\n0x1\nr\nw\n" FDISK_CMD_ID2="x\ni\n0x2\nr\nw\n"
tests/ts/fdisk/mbr-dos-mode +2 -0
@@ -22,6 +22,8 @@ TS_DESC="MBR - dos mode" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + FDISK_CMD_INIT="x\ni\n0x1\nr\n" FDISK_CMD_WRITE_CLOSE="w\nq\n" FDISK_CMD_CREATE_DOSLABEL="o\n" #create dos label
tests/ts/fdisk/mbr-nondos-mode +4 -2
@@ -20,6 +20,8 @@ TS_DESC="MBR - non-dos mode" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + # cmd to changes system id to 0x1 FDISK_CMD_INIT="x\ni\n0x1\nr\n" FDISK_CMD_WRITE_CLOSE="w\nq\n"
@@ -27,7 +29,7 @@ FDISK_CMD_CREATE_DOSLABEL="o\n" #create dos label FDISK_CMD_CREATE_1PRIMARY="n\np\n\n\n+3M\n" # create primary partition of size 3MiB FDISK_CMD_CREATE_2PRIMARY="n\np\n\n\n+2M\n" # create primary partition of size 2MiB FDISK_CMD_SET_ACTIVE="a\n1\n" # set first partition active -FDISK_CMD_CREATE_EXTENDED="n\ne\n\n\n\n" # create extended partition +FDISK_CMD_CREATE_EXTENDED="n\ne\n\n\n\n" # create extended partition FDISK_CMD_CREATE_LOGICAL="n\nl\n\n+2M\n" # create next logical partition of size 10 sectors FDISK_CMD_DELETE_LOGICALS="d\n6\nd\n5\nd\n6\n" # delete middle, head, tail, last partitions FDISK_CMD_DELETE_1PRIMARY="d\n1\n" # delete first primary
@@ -40,7 +42,7 @@ function print_layout { echo -ne "-------------------\n\n" >> $TS_OUTPUT } -#set -x +#set -x ts_log "Initialize empty image" TEST_IMAGE_NAME=$(ts_image_init 20) # 20 MiB
tests/ts/fdisk/oddinput +2 -0
@@ -20,6 +20,8 @@ TS_DESC="invalid input tests" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + #set -x ts_log "Initialize empty image"
tests/ts/fdisk/sunlabel +2 -0
@@ -20,6 +20,8 @@ TS_DESC="sunlabel tests" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + FDISK_CMD_INIT="s\n" # create new sunlabel FDISK_CMD_WRITE_CLOSE="w\nq\n" FDISK_CMD_DELETEALL="d\n1\nd\n2\nd\n3\nd\n4\nd\n5\nd\n6\nd\n7\nd\n8\n" # delete all partitions
tests/ts/fsck/ismounted +4 -0
@@ -19,6 +19,10 @@ TS_DESC="is mounted" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_MOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/hexdump/format-strings +1 -1
@@ -22,7 +22,7 @@ FILES="$TS_TOPDIR/ts/hexdump/files" . $TS_TOPDIR/functions.sh ts_init "$*" -[ -x $TS_CMD_HEXDUMP ] || ts_skip "hexdump not compiled" +ts_check_test_command "$TS_CMD_HEXDUMP" #885314 ts_init_subtest "empty-format"
tests/ts/hwclock/systohc +3 -0
@@ -22,6 +22,9 @@ NTP_SERVER="0.fedora.pool.ntp.org" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_HWCLOCK" + ts_skip_nonroot PATH='/usr/sbin:/usr/bin:/sbin:/bin'
tests/ts/ipcs/headers +2 -0
@@ -21,6 +21,8 @@ TS_DESC="headers" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" + ts_log "test: shm headers" $TS_CMD_IPCS -m -t | grep --after-context=1 "^---" >> $TS_OUTPUT $TS_CMD_IPCS -m -p | grep --after-context=1 "^---" >> $TS_OUTPUT
tests/ts/ipcs/limits +3 -0
@@ -22,6 +22,9 @@ TS_DESC="limits overflow" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_IPCS" + ts_skip_nonroot type bc >/dev/null 2>&1 || ts_skip "cannot find bc command"
tests/ts/ipcs/limits2 +3 -0
@@ -21,6 +21,9 @@ TS_DESC="basic limits" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_IPCS" + type bc >/dev/null 2>&1 || ts_skip "cannot find bc command" . $TS_SELF/functions.sh
tests/ts/ipcs/mk-rm-msg +4 -0
@@ -18,6 +18,10 @@ TS_DESC="mk-rm-msg" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" +ts_check_test_command "$TS_CMD_IPCMK" +ts_check_test_command "$TS_CMD_IPCRM" + . $TS_SELF/functions.sh rm -f $TS_OUTDIR/id-msg
tests/ts/ipcs/mk-rm-sem +4 -0
@@ -18,6 +18,10 @@ TS_DESC="mk-rm-sem" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" +ts_check_test_command "$TS_CMD_IPCMK" +ts_check_test_command "$TS_CMD_IPCRM" + . $TS_SELF/functions.sh rm -f $TS_OUTDIR/id-sem
tests/ts/ipcs/mk-rm-shm +4 -0
@@ -18,6 +18,10 @@ TS_DESC="mk-rm-shm" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IPCS" +ts_check_test_command "$TS_CMD_IPCMK" +ts_check_test_command "$TS_CMD_IPCRM" + . $TS_SELF/functions.sh rm -f $TS_OUTDIR/id-shm
tests/ts/isosize/print-size +2 -0
@@ -18,6 +18,8 @@ TS_DESC="print-size" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_ISOSIZE" + gzip -cd $TS_SELF/sample.iso.gz > $TS_OUTDIR/sample.iso $TS_CMD_ISOSIZE $TS_OUTDIR/sample.iso >| $TS_OUTPUT 2>&1
tests/ts/last/ipv6 +1 -1
@@ -18,7 +18,7 @@ TS_DESC="last ipv6" . $TS_TOPDIR/functions.sh ts_init "$*" -[ -x $TS_CMD_LAST ] || ts_skip "last not enabled" +ts_check_test_command "$TS_CMD_LAST" export LANG=C export TZ=GMT
tests/ts/last/last +1 -1
@@ -18,7 +18,7 @@ TS_DESC="last" . $TS_TOPDIR/functions.sh ts_init "$*" -[ -x $TS_CMD_LAST ] || ts_skip "last not enabled" +ts_check_test_command "$TS_CMD_LAST" export LANG=C export TZ=GMT
tests/ts/libmount/context +6 -1
@@ -7,8 +7,13 @@ TS_DESC="context" . $TS_TOPDIR/functions.sh ts_init "$*" -ts_skip_nonroot +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_FINDMNT" +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + +ts_skip_nonroot TESTPROG="$TS_HELPER_LIBMOUNT_CONTEXT" LABEL=libmount-test UUID=$(uuidgen)
tests/ts/libmount/context-py +6 -0
@@ -7,6 +7,12 @@ TS_DESC="context-py" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_FINDMNT" +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_init_py libmount ts_skip_nonroot
tests/ts/libmount/context-utab +4 -0
@@ -7,6 +7,10 @@ TS_DESC="context (utab)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_FINDMNT" +ts_check_test_command "$TS_CMD_WIPEFS" ts_skip_nonroot TESTPROG="$TS_HELPER_LIBMOUNT_CONTEXT"
tests/ts/libmount/context-utab-py +5 -0
@@ -6,6 +6,11 @@ TS_DESC="context-py (utab)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_FDISK" +ts_check_test_command "$TS_CMD_FINDMNT" +ts_check_test_command "$TS_CMD_WIPEFS" + ts_init_py libmount ts_skip_nonroot
tests/ts/login/islocal +2 -0
@@ -21,6 +21,8 @@ TS_DESC="islocal" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_HELPER_ISLOCAL" + $TS_HELPER_ISLOCAL "$TS_SELF/islocal.data" root nobody "" youngman youngman2 \ abcdefghx nobo long rot al malformed \ nonl znobody >> $TS_OUTPUT
tests/ts/login/logindefs +2 -0
@@ -10,6 +10,8 @@ TS_DESC="defs" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_HELPER_LOGINDEFS" + # list all items $TS_HELPER_LOGINDEFS "$TS_SELF/logindefs.data" | sed 's:'$TS_SELF'/::g' >> $TS_OUTPUT
tests/ts/look/separator +2 -0
@@ -34,6 +34,8 @@ TS_DESC="separator" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_LOOK" + $TS_CMD_LOOK apple-pie $TS_TOPDIR/ts/look/words >> $TS_OUTPUT ts_finalize
tests/ts/losetup/losetup +3 -0
@@ -21,6 +21,9 @@ TS_DESC="losetup" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_LOSETUP" + ts_skip_nonroot DEVICE=$(ts_scsi_debug_init dev_size_mb=11)
tests/ts/lscpu/lscpu +3 -1
@@ -22,6 +22,8 @@ TS_TOPDIR="$(dirname $0)/../.." ts_init "$*" +ts_check_test_command "$TS_CMD_LSCPU" + for dump in $(ls $TS_SELF/dumps/*.tar.gz | sort); do name=$(basename $dump .tar.gz) dumpdir="$TS_OUTDIR/dumps"
@@ -29,7 +31,7 @@ for dump in $(ls $TS_SELF/dumps/*.tar.gz | sort); do ts_init_subtest $name mkdir -p $dumpdir - tar -C $dumpdir -zxf $dump + tar -C $dumpdir -zxf $dump # Architecture information is not applicable with -s. "${TS_CMD_LSCPU}" -s "${dumpdir}/${name}" | \
tests/ts/minix/fsck +3 -2
@@ -19,12 +19,13 @@ TS_DESC="mkfs checksums" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKMINIX" + ts_skip_nonroot set -o pipefail -[ -x $TS_CMD_FSCKMINIX ] || ts_skip "fsck.minix not compiled" - IMAGE="$TS_OUTDIR/${TS_TESTNAME}-loop.img" DEVICE=$(ts_device_init)
tests/ts/minix/mkfs +3 -2
@@ -19,12 +19,13 @@ TS_DESC="mkfs" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKMINIX" + ts_skip_nonroot set -o pipefail -[ -x $TS_CMD_MKMINIX ] || ts_skip "mkfs.minix not compiled" - IMAGE="$TS_OUTDIR/${TS_TESTNAME}-loop.img" DEVICE=$(ts_device_init)
tests/ts/misc/fallocate +2 -0
@@ -18,6 +18,8 @@ TS_DESC="fallocate" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FALLOCATE" + IMAGE=${TS_OUTDIR}/${TS_TESTNAME}.file rm -f $IMAGE
tests/ts/misc/getopt +2 -0
@@ -21,6 +21,8 @@ TS_DESC="getopt" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_GETOPT" + TEMP=$($TS_CMD_GETOPT -o ab:c:: --long a-long,b-long:,c-long:: -n 'example.bash' -- -a -b 1 -c2 --a-long --b-long 3 --c-long foo bar) if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
tests/ts/misc/ionice +2 -0
@@ -18,6 +18,8 @@ TS_DESC="ionice" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_IONICE" + $TS_CMD_IONICE -p $$ -n 0 -c 0 >> $TS_OUTPUT 2>&1 $TS_CMD_IONICE -p $$ -n 3 -c 7 >> $TS_OUTPUT 2>&1 $TS_CMD_IONICE -p $$ -n 4 -c 7 >> $TS_OUTPUT 2>&1
tests/ts/misc/line +1 -3
@@ -18,9 +18,7 @@ TS_DESC="line" . $TS_TOPDIR/functions.sh ts_init "$*" -if [ ! -x "$TS_CMD_LINE" ]; then - ts_skip "line disabled" -fi +ts_check_test_command "$TS_CMD_LINE" printf "a\nb\n" | $TS_CMD_LINE > $TS_OUTPUT 2>&1
tests/ts/misc/mcookie +2 -0
@@ -18,6 +18,8 @@ TS_DESC="mcookie" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_MCOOKIE" + $TS_CMD_MCOOKIE -f /etc/services | # The sed will convert only 32 characters long hexadecimal string # to expected string, but nothing else.
tests/ts/misc/rev +2 -0
@@ -18,6 +18,8 @@ TS_DESC="rev" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_REV" + for I in {0..512}; do printf "%s " {a..z}; done | md5sum >> $TS_OUTPUT 2>&1 for I in {0..512}; do printf "%s " {a..z}; done | \
tests/ts/misc/setarch +2 -0
@@ -18,6 +18,8 @@ TS_DESC="setarch" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_SETARCH" + $TS_CMD_SETARCH $(uname -m) -vRFZLXBIST3 --uname-2.6 echo "success" >$TS_OUTPUT 2>&1 ts_finalize
tests/ts/misc/setsid +2 -0
@@ -18,6 +18,8 @@ TS_DESC="setsid" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_SETSID" + $TS_CMD_SETSID echo "success" > $TS_OUTPUT 2>&1 ts_finalize
tests/ts/misc/ul +2 -0
@@ -18,6 +18,8 @@ TS_DESC="ul" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_UL" + printf "a\x08ab\x5F\x08c\\n\\ttab\\f\\b\\r" | $TS_CMD_UL -t xterm > $TS_OUTPUT 2>&1
tests/ts/misc/whereis +2 -0
@@ -18,6 +18,8 @@ TS_DESC="whereis" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_WHEREIS" + LS_COUNT=$($TS_CMD_WHEREIS ls | wc -w) if [ $LS_COUNT -lt 2 ]; then echo "ls binary nor manual not found?" > $TS_OUTPUT
tests/ts/more/regexp +2 -0
@@ -18,6 +18,8 @@ TS_DESC="regexp" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_HELPER_MORE" + printf "abba\nbar\nfoo\nxyzzy\n" | $TS_HELPER_MORE +/foo > $TS_OUTPUT 2>&1
tests/ts/more/squeeze +2 -0
@@ -18,6 +18,8 @@ TS_DESC="squeeze" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_HELPER_MORE" + printf "a\n\n\nb\n" | $TS_HELPER_MORE -s > $TS_OUTPUT 2>&1
tests/ts/mount/devname +4 -0
@@ -21,6 +21,10 @@ TS_DESC="by devname" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-broken +5 -0
@@ -20,6 +20,11 @@ TS_DESC="broken fstab" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" +ts_check_test_command "$TS_CMD_FINDMNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-devname +4 -0
@@ -20,6 +20,10 @@ TS_DESC="by devname (fstab)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-devname2label +4 -0
@@ -21,6 +21,10 @@ LABEL="testMountD2L" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-devname2uuid +4 -0
@@ -20,6 +20,10 @@ TS_DESC="by devname (fstab uuid)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-label +4 -0
@@ -21,6 +21,10 @@ LABEL="testFstabLabel" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-label2devname +4 -0
@@ -21,6 +21,10 @@ LABEL="testMountL2D" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-label2uuid +4 -0
@@ -22,6 +22,10 @@ LABEL="testMountL2U" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-none +5 -0
@@ -5,6 +5,11 @@ TS_DESC="none" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" +ts_check_test_command "$TS_CMD_FINDMNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-symlink +4 -0
@@ -21,6 +21,10 @@ TS_DESC="by devname (fstab symlink)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-uuid +4 -0
@@ -20,6 +20,10 @@ TS_DESC="by uuid (fstab)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-uuid2devname +4 -0
@@ -20,6 +20,10 @@ TS_DESC="by uuid (fstab devname)" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/fstab-uuid2label +4 -0
@@ -21,6 +21,10 @@ LABEL="testMountU2L" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/label +4 -0
@@ -22,6 +22,10 @@ LABEL="testMountLabel" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/move +5 -0
@@ -20,6 +20,11 @@ TS_DESC="move" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" +ts_check_test_command "$TS_CMD_FINDMNT" + ts_skip_nonroot DIR_PRIVATE2="$TS_OUTDIR/mnt-move-private2"
tests/ts/mount/noncanonical +3 -0
@@ -20,6 +20,9 @@ TS_DESC="non canonical path" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" + ts_skip_nonroot [ ! -e "/etc" ] && ts_skip "/etc not such file of directory"
tests/ts/mount/paths +3 -0
@@ -20,6 +20,9 @@ TS_DESC="basic paths" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" + ts_skip_nonroot $TS_CMD_MOUNT -V | grep -q "libmount"
tests/ts/mount/regfile +4 -0
@@ -8,6 +8,10 @@ TS_DESC="regular file" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/mount/remount +4 -0
@@ -20,6 +20,10 @@ TS_DESC="remount" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_FINDMNT" + ts_skip_nonroot # mountpoint
tests/ts/mount/rlimit +4 -0
@@ -28,6 +28,10 @@ TS_DESC="rlimit-fsize" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot [ -L /etc/mtab ] && ts_skip "mtab is symlink"
tests/ts/mount/shared-subtree +5 -0
@@ -5,6 +5,11 @@ TS_DESC="shared-subtree" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" +ts_check_test_command "$TS_CMD_FINDMNT" + ts_skip_nonroot [ -d $TS_MOUNTPOINT ] || mkdir -p $TS_MOUNTPOINT
tests/ts/mount/special +3 -0
@@ -21,6 +21,9 @@ MOUNTER="/sbin/mount.mytest" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" + ts_skip_nonroot cat > $MOUNTER <<\EOF
tests/ts/mount/umount-alltargets +5 -0
@@ -7,6 +7,11 @@ TS_DESC="umount-all-targets" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" +ts_check_test_command "$TS_CMD_FDISK" + ts_skip_nonroot $TS_CMD_UMOUNT --help | grep -q all-targets
tests/ts/mount/umount-recursive +5 -0
@@ -7,6 +7,11 @@ TS_DESC="umount-recursive" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" +ts_check_test_command "$TS_CMD_FDISK" + ts_skip_nonroot $TS_CMD_UMOUNT --help | grep -q recursive
tests/ts/mount/uuid +4 -0
@@ -20,6 +20,10 @@ TS_DESC="by uuid" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" + ts_skip_nonroot set -o pipefail
tests/ts/namei/logic +2 -0
@@ -21,6 +21,8 @@ TS_DESC="basic functionality" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_NAMEI" + cd $TS_OUTDIR mkdir -p namei1/namei2
tests/ts/partx/partx +5 -2
@@ -24,9 +24,12 @@ PARTS=3 . $TS_TOPDIR/functions.sh ts_init "$*" -ts_skip_nonroot -[ ! -x "$TS_CMD_PARTX" ] && ts_skip "partx disabled" +ts_check_test_command "$TS_CMD_PARTX" +ts_check_test_command "$TS_CMD_ADDPART" +ts_check_test_command "$TS_CMD_DELPART" + +ts_skip_nonroot mkdir -p $TS_OUTDIR/images-pt for img in $(ls $TS_IMGDIR/*.img.bz2 | sort); do
tests/ts/schedutils/cpuset +2 -0
@@ -20,6 +20,8 @@ TS_DESC="cpuset" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_CPUSET" + MASKS=" 0x00000001 \ 0x00000002 \ 0x00000003 \
tests/ts/script/race +2 -0
@@ -22,6 +22,8 @@ TS_DESC="race conditions" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_SCRIPT" + bingofile="$TS_OUTDIR/${TS_TESTNAME}-bingo" set -o pipefail
tests/ts/swapon/devname +5 -0
@@ -20,6 +20,11 @@ TS_DESC="by devname" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKSWAP" +ts_check_test_command "$TS_CMD_SWAPON" +ts_check_test_command "$TS_CMD_SWAPOFF" + ts_skip_nonroot set -o pipefail
tests/ts/swapon/fixpgsz +5 -0
@@ -5,6 +5,11 @@ TS_DESC="fix page size" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKSWAP" +ts_check_test_command "$TS_CMD_SWAPON" +ts_check_test_command "$TS_CMD_SWAPOFF" + ts_skip_nonroot set -o pipefail
tests/ts/swapon/fixsig +5 -0
@@ -5,6 +5,11 @@ TS_DESC="fix signature" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKSWAP" +ts_check_test_command "$TS_CMD_SWAPON" +ts_check_test_command "$TS_CMD_SWAPOFF" + ts_skip_nonroot set -o pipefail
tests/ts/swapon/label +5 -0
@@ -21,6 +21,11 @@ LABEL="testSwapLabel" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKSWAP" +ts_check_test_command "$TS_CMD_SWAPON" +ts_check_test_command "$TS_CMD_SWAPOFF" + ts_skip_nonroot set -o pipefail
tests/ts/swapon/uuid +5 -0
@@ -20,6 +20,11 @@ TS_DESC="by uuid" . $TS_TOPDIR/functions.sh ts_init "$*" + +ts_check_test_command "$TS_CMD_MKSWAP" +ts_check_test_command "$TS_CMD_SWAPON" +ts_check_test_command "$TS_CMD_SWAPOFF" + ts_skip_nonroot set -o pipefail
tests/ts/tailf/simple +2 -0
@@ -18,6 +18,8 @@ TS_DESC="simple" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_TAILF" + INPUT=$TS_OUTDIR/$TS_TESTNAME.input rm -f $INPUT
tests/ts/utmpdump/ipv6tobin +2 -0
@@ -18,6 +18,8 @@ TS_DESC="IPv6 to binary" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_UTMPDUMP" + export LANG=C export TZ=GMT $TS_CMD_UTMPDUMP -r $TS_SELF/ipv6txt >| $TS_OUTPUT 2>/dev/null
tests/ts/utmpdump/ipv6totxt +2 -0
@@ -18,6 +18,8 @@ TS_DESC="IPv6 to text" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_UTMPDUMP" + export LANG=C export TZ=GMT $TS_CMD_UTMPDUMP $TS_SELF/ipv6bin >| $TS_OUTPUT 2>/dev/null
tests/ts/utmpdump/to-binary +2 -0
@@ -18,6 +18,8 @@ TS_DESC="to-binary" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_UTMPDUMP" + export LANG=C export TZ=GMT $TS_CMD_UTMPDUMP -r $TS_SELF/text >| $TS_OUTPUT 2>/dev/null
tests/ts/utmpdump/to-text +2 -0
@@ -18,6 +18,8 @@ TS_DESC="to-text" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_UTMPDUMP" + export LANG=C export TZ=GMT $TS_CMD_UTMPDUMP $TS_SELF/binary >| $TS_OUTPUT 2>/dev/null
tests/ts/wipefs/wipefs +2 -0
@@ -7,6 +7,8 @@ TS_DESC="wipefs" ts_skip_nonroot ts_init "$*" +ts_check_test_command "$TS_CMD_WIPEFS" + DEVICE=$(ts_scsi_debug_init dev_size_mb=50 num_parts=2) # remove old backups
Signature · 1 line
1.8.5.5
Karel Zak
maintainerQuoted 2 lines · Sami Kerola
This pull request has four patches that will allow a builder to disable all commands.
Note that I don't silently ignore these patches, but I'd like to play with it later and try to provide better granularity, maybe something like
--enable-util=<list>
--disable-util=<list>
--enable-all
--disable-all
where <list> is comma separated list of the utils names (we already use thing like this for static programs), then we can avoid huge number of --enable-* options.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Re: [PATCH 3/4] tools: make config-gen to require build target argument
In reply to Sami KerolaQuoted 2 lines · Sami Kerola
tools/config-gen | 9 +++++++++ 1 file changed, 9 insertions(+)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Re: [PATCH 4/4] tests: check commands needed for running a test exist
In reply to Sami KerolaQuoted 1 line · Sami Kerola
122 files changed, 374 insertions(+), 30 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Quoted 5 lines · Karel Zak
Quoted 2 lines · Sami Kerola
This pull request has four patches that will allow a builder to disable all commands.
Note that I don't silently ignore these patches,
Hi Karel,
I know you don't, and it was expected this is not the usual patch set that gets review and comments immediately.
Quoted 4 lines
but I'd like to play
with it later and try to provide better granularity, maybe something like
Quoted 8 lines
--enable-util=<list>
--disable-util=<list>
--enable-all
--disable-allwhere <list> is comma separated list of the utils names (we already use thing like this for static programs), then we can avoid huge number of --enable-* options.
The --enable-util=<item1,item2> sounds much better approach. I wonder if this approach could be converted to reasonably reusable m4 definition, resulting to deprecation of various command specific disable/enables.
Signature · 2 lines
Sami Kerola http://www.iki.fi/kerolasa/