]> git.ipfire.org Git - thirdparty/util-linux.git/blame - tests/commands.sh
Merge branch 'PR/libsmartcols-reduce-fix' of github.com:karelzak/util-linux-work
[thirdparty/util-linux.git] / tests / commands.sh
CommitLineData
d20b54c4 1# Misc settings
2556c387 2TS_TESTUSER=${TS_TESTUSER:-"nobody"}
d20b54c4 3
0f0584ad 4# helpers
48afece8 5TS_HELPER_BOILERPLATE="${ts_helpersdir}test_boilerplate"
43b4a4d3
KZ
6TS_HELPER_BYTESWAP="${ts_helpersdir}test_byteswap"
7TS_HELPER_CPUSET="${ts_helpersdir}test_cpuset"
a76299c1 8TS_HELPER_CAP="${ts_helpersdir}test_cap"
43b4a4d3 9TS_HELPER_DMESG="${ts_helpersdir}test_dmesg"
42900563 10TS_HELPER_ENOSYS="${ts_helpersdir}test_enosys"
43b4a4d3
KZ
11TS_HELPER_ISLOCAL="${ts_helpersdir}test_islocal"
12TS_HELPER_ISMOUNTED="${ts_helpersdir}test_ismounted"
13TS_HELPER_LIBFDISK_GPT="${ts_helpersdir}test_fdisk_gpt"
14TS_HELPER_LIBFDISK_MKPART="${ts_helpersdir}sample-fdisk-mkpart"
15TS_HELPER_LIBMOUNT_CONTEXT="${ts_helpersdir}test_mount_context"
16TS_HELPER_LIBFDISK_MKPART_FULLSPEC="${ts_helpersdir}sample-fdisk-mkpart-fullspec"
b62ec52e 17TS_HELPER_LIBFDISK_SCRIPT_FUZZ="${ts_helpersdir}test_fdisk_script_fuzz"
c2e299d0
SS
18TS_HELPER_LIBLASTLOG2_DLOPEN="${ts_helpersdir}test_lastlog2_dlopen"
19TS_HELPER_LIBLASTLOG2_PAM_LASTLOG2_OUTPUT="${ts_helpersdir}test_lastlog2_pam_lastlog2_output"
20TS_HELPER_LIBLASTLOG2_REMOVE_ENTRY="${ts_helpersdir}test_lastlog2_remove_entry"
21TS_HELPER_LIBLASTLOG2_RENAME_USER="${ts_helpersdir}test_lastlog2_rename_user"
22TS_HELPER_LIBLASTLOG2_WRITE_READ_USER="${ts_helpersdir}test_lastlog2_write_read_user"
23TS_HELPER_LIBLASTLOG2_Y2038_LL2_READ_ALL="${ts_helpersdir}test_lastlog2_y2038_ll2_read_all"
24TS_HELPER_LIBLASTLOG2_Y2038_SQLITE2_TIME="${ts_helpersdir}test_lastlog2_y2038_sqlite3_time"
43b4a4d3
KZ
25TS_HELPER_LIBMOUNT_LOCK="${ts_helpersdir}test_mount_lock"
26TS_HELPER_LIBMOUNT_OPTSTR="${ts_helpersdir}test_mount_optstr"
e2d6f5e3 27TS_HELPER_LIBMOUNT_OPTLIST="${ts_helpersdir}test_mount_optlist"
43b4a4d3
KZ
28TS_HELPER_LIBMOUNT_TABDIFF="${ts_helpersdir}test_mount_tab_diff"
29TS_HELPER_LIBMOUNT_TAB="${ts_helpersdir}test_mount_tab"
30TS_HELPER_LIBMOUNT_UPDATE="${ts_helpersdir}test_mount_tab_update"
31TS_HELPER_LIBMOUNT_UTILS="${ts_helpersdir}test_mount_utils"
32TS_HELPER_LIBMOUNT_DEBUG="${ts_helpersdir}test_mount_debug"
7b4ab119 33TS_HELPER_LIBMOUNT_FUZZ="${ts_helpersdir}test_mount_fuzz"
be597292 34TS_HELPER_LIBSMARTCOLS_CONTINUOUS_JSON="${ts_helpersdir}sample-scols-continuous-json"
43b4a4d3
KZ
35TS_HELPER_LIBSMARTCOLS_FROMFILE="${ts_helpersdir}sample-scols-fromfile"
36TS_HELPER_LIBSMARTCOLS_TITLE="${ts_helpersdir}sample-scols-title"
15b2606c
RM
37TS_HELPER_PYLIBMOUNT_CONTEXT="$top_srcdir/libmount/python/test_mount_context.py"
38TS_HELPER_PYLIBMOUNT_TAB="$top_srcdir/libmount/python/test_mount_tab.py"
39TS_HELPER_PYLIBMOUNT_UPDATE="$top_srcdir/libmount/python/test_mount_tab_update.py"
43b4a4d3
KZ
40TS_HELPER_LOGGER="${ts_helpersdir}test_logger"
41TS_HELPER_LOGINDEFS="${ts_helpersdir}test_logindefs"
42TS_HELPER_MD5="${ts_helpersdir}test_md5"
43TS_HELPER_SHA1="${ts_helpersdir}test_sha1"
44TS_HELPER_MKFS_MINIX="${ts_helpersdir}test_mkfs_minix"
45TS_HELPER_MORE=${TS_HELPER_MORE-"${ts_helpersdir}test_more"}
46TS_HELPER_PARTITIONS="${ts_helpersdir}sample-partitions"
47TS_HELPER_PATHS="${ts_helpersdir}test_pathnames"
48TS_HELPER_SCRIPT="${ts_helpersdir}test_script"
49TS_HELPER_SIGRECEIVE="${ts_helpersdir}test_sigreceive"
eebc9e4d 50TS_HELPER_STRERROR="${ts_helpersdir}test_strerror"
43b4a4d3
KZ
51TS_HELPER_STRUTILS="${ts_helpersdir}test_strutils"
52TS_HELPER_SYSINFO="${ts_helpersdir}test_sysinfo"
53TS_HELPER_TIOCSTI="${ts_helpersdir}test_tiocsti"
54TS_HELPER_UUID_PARSER="${ts_helpersdir}test_uuid_parser"
55TS_HELPER_UUID_NAMESPACE="${ts_helpersdir}test_uuid_namespace"
56TS_HELPER_MBSENCODE="${ts_helpersdir}test_mbsencode"
57TS_HELPER_CAL="${ts_helpersdir}test_cal"
87735616 58TS_HELPER_LAST_FUZZ="${ts_helpersdir}test_last_fuzz"
fd81d3a5 59TS_HELPER_MKFDS="${ts_helpersdir}test_mkfds"
1ba4085e 60TS_HELPER_BLKID_FUZZ="${ts_helpersdir}test_blkid_fuzz"
d34b0603 61TS_HELPER_PROCFS="${ts_helpersdir}test_procfs"
d9cc65cb 62TS_HELPER_TIMEUTILS="${ts_helpersdir}test_timeutils"
5777ba99 63
e83446da 64# paths to commands
43b4a4d3
KZ
65TS_CMD_ADDPART=${TS_CMD_ADDPART:-"${ts_commandsdir}addpart"}
66TS_CMD_DELPART=${TS_CMD_DELPART:-"${ts_commandsdir}delpart"}
67TS_CMD_BLKDISCARD=${TS_CMD_BLKID-"${ts_commandsdir}blkdiscard"}
68TS_CMD_BLKID=${TS_CMD_BLKID-"${ts_commandsdir}blkid"}
69TS_CMD_CAL=${TS_CMD_CAL-"${ts_commandsdir}cal"}
70TS_CMD_COLCRT=${TS_CMD_COLCRT:-"${ts_commandsdir}colcrt"}
71TS_CMD_COLRM=${TS_CMD_COLRM:-"${ts_commandsdir}colrm"}
72TS_CMD_COL=${TS_CMD_COL:-"${ts_commandsdir}col"}
73TS_CMD_COLUMN=${TS_CMD_COLUMN:-"${ts_commandsdir}column"}
b46a82a0 74TS_CMD_CORESCHED=${TS_CMD_CORESCHED:-"${ts_commandsdir}coresched"}
cba52cc1 75TS_CMD_ENOSYS=${TS_CMD_ENOSYS-"${ts_commandsdir}enosys"}
43b4a4d3 76TS_CMD_EJECT=${TS_CMD_EJECT-"${ts_commandsdir}eject"}
cd094a05 77TS_CMD_EXCH=${TS_CMD_EXCH-"${ts_commandsdir}exch"}
43b4a4d3
KZ
78TS_CMD_FALLOCATE=${TS_CMD_FALLOCATE-"${ts_commandsdir}fallocate"}
79TS_CMD_FDISK=${TS_CMD_FDISK-"${ts_commandsdir}fdisk"}
80TS_CMD_FLOCK=${TS_CMD_FLOCK-"${ts_commandsdir}flock"}
81TS_CMD_SFDISK=${TS_CMD_SFDISK-"${ts_commandsdir}sfdisk"}
642e1c69 82TS_CMD_FADVISE=${TS_CMD_FADVISE-"${ts_commandsdir}fadvise"}
43b4a4d3
KZ
83TS_CMD_FINCORE=${TS_CMD_FINCORE-"${ts_commandsdir}fincore"}
84TS_CMD_FINDMNT=${TS_CMD_FINDMNT-"${ts_commandsdir}findmnt"}
85TS_CMD_FSCKCRAMFS=${TS_CMD_FSCKCRAMFS:-"${ts_commandsdir}fsck.cramfs"}
86TS_CMD_FSCKMINIX=${TS_CMD_FSCKMINIX:-"${ts_commandsdir}fsck.minix"}
87TS_CMD_GETOPT=${TS_CMD_GETOPT-"${ts_commandsdir}getopt"}
88TS_CMD_HARDLINK=${TS_CMD_HARDLINK-"${ts_commandsdir}hardlink"}
89TS_CMD_HEXDUMP=${TS_CMD_HEXDUMP-"${ts_commandsdir}hexdump"}
90TS_CMD_HWCLOCK=${TS_CMD_HWCLOCK-"${ts_commandsdir}hwclock"}
91TS_CMD_IONICE=${TS_CMD_IONICE-"${ts_commandsdir}ionice"}
92TS_CMD_IPCMK=${TS_CMD_IPCMK-"${ts_commandsdir}ipcmk"}
93TS_CMD_IPCRM=${TS_CMD_IPCRM-"${ts_commandsdir}ipcrm"}
94TS_CMD_IPCS=${TS_CMD_IPCS:-"${ts_commandsdir}ipcs"}
95TS_CMD_ISOSIZE=${TS_CMD_ISOSIZE-"${ts_commandsdir}isosize"}
96TS_CMD_KILL=${TS_CMD_KILL-"${ts_commandsdir}kill"}
97TS_CMD_LAST=${TS_CMD_LAST-"${ts_commandsdir}last"}
98TS_CMD_LINE=${TS_CMD_LINE-"${ts_commandsdir}line"}
99TS_CMD_LOOK=${TS_CMD_LOOK-"${ts_commandsdir}look"}
100TS_CMD_LOSETUP=${TS_CMD_LOSETUP:-"${ts_commandsdir}losetup"}
101TS_CMD_LSBLK=${TS_CMD_LSBLK-"${ts_commandsdir}lsblk"}
e9ddea79 102TS_CMD_LSCLOCKS=${TS_CMD_LSCPU-"${ts_commandsdir}lsclocks"}
43b4a4d3 103TS_CMD_LSCPU=${TS_CMD_LSCPU-"${ts_commandsdir}lscpu"}
fd81d3a5 104TS_CMD_LSFD=${TS_CMD_LSFD-"${ts_commandsdir}lsfd"}
a1fa0c9f 105TS_CMD_LSLOCKS=${TS_CMD_LSLOCKS-"${ts_commandsdir}lslocks"}
43b4a4d3
KZ
106TS_CMD_LSMEM=${TS_CMD_LSMEM-"${ts_commandsdir}lsmem"}
107TS_CMD_LSNS=${TS_CMD_LSNS-"${ts_commandsdir}lsns"}
108TS_CMD_MCOOKIE=${TS_CMD_MCOOKIE-"${ts_commandsdir}mcookie"}
109TS_CMD_MKCRAMFS=${TS_CMD_MKCRAMFS:-"${ts_commandsdir}mkfs.cramfs"}
110TS_CMD_MKMINIX=${TS_CMD_MKMINIX:-"${ts_commandsdir}mkfs.minix"}
111TS_CMD_MKSWAP=${TS_CMD_MKSWAP:-"${ts_commandsdir}mkswap"}
112TS_CMD_MOUNT=${TS_CMD_MOUNT:-"${ts_commandsdir}mount"}
113TS_CMD_MOUNTPOINT=${TS_CMD_MOUNTPOINT:-"${ts_commandsdir}mountpoint"}
114TS_CMD_NAMEI=${TS_CMD_NAMEI-"${ts_commandsdir}namei"}
115TS_CMD_PARTX=${TS_CMD_PARTX-"${ts_commandsdir}partx"}
2c4b7d9b 116TS_CMD_PIPESZ=${TS_CMD_PIPESZ-"${ts_commandsdir}pipesz"}
43b4a4d3
KZ
117TS_CMD_RENAME=${TS_CMD_RENAME-"${ts_commandsdir}rename"}
118TS_CMD_RUNUSER=${TS_CMD_RUNUSER-"${ts_commandsdir}runuser"}
119TS_CMD_REV=${TS_CMD_REV:-"${ts_commandsdir}rev"}
120TS_CMD_SCRIPT=${TS_CMD_SCRIPT-"${ts_commandsdir}script"}
121TS_CMD_SCRIPTREPLAY=${TS_CMD_SCRIPTREPLAY-"${ts_commandsdir}scriptreplay"}
85ecd371 122TS_CMD_SCRIPTLIVE=${TS_CMD_SCRIPTLIVE-"${ts_commandsdir}scriptlive"}
43b4a4d3 123TS_CMD_SETARCH=${TS_CMD_SETARCH-"${ts_commandsdir}setarch"}
f092076f 124TS_CMD_SETPGID=${TS_CMD_SETPGID-"${ts_commandsdir}setpgid"}
ae015d71 125TS_CMD_SETPRIV=${TS_CMD_SETPRIV-"${ts_commandsdir}setpriv"}
43b4a4d3
KZ
126TS_CMD_SETSID=${TS_CMD_SETSID-"${ts_commandsdir}setsid"}
127TS_CMD_SWAPLABEL=${TS_CMD_SWAPLABEL:-"${ts_commandsdir}swaplabel"}
128TS_CMD_SWAPOFF=${TS_CMD_SWAPOFF:-"${ts_commandsdir}swapoff"}
129TS_CMD_SWAPON=${TS_CMD_SWAPON:-"${ts_commandsdir}swapon"}
919a325c 130TS_CMD_LSLOGINS=${TS_CMD_LSLOGINS:-"${ts_commandsdir}lslogins"}
43b4a4d3
KZ
131TS_CMD_UL=${TS_CMD_UL-"${ts_commandsdir}ul"}
132TS_CMD_UMOUNT=${TS_CMD_UMOUNT:-"${ts_commandsdir}umount"}
d652d4c6 133TS_CMD_UNSHARE=${TS_CMD_UNSHARE:-"${ts_commandsdir}unshare"}
43b4a4d3
KZ
134TS_CMD_UTMPDUMP=${TS_CMD_UTMPDUMP-"${ts_commandsdir}utmpdump"}
135TS_CMD_UUIDD=${TS_CMD_UUIDD-"${ts_commandsdir}uuidd"}
136TS_CMD_UUIDGEN=${TS_CMD_UUIDGEN-"${ts_commandsdir}uuidgen"}
137TS_CMD_UUIDPARSE=${TS_CMD_UUIDPARSE-"${ts_commandsdir}uuidparse"}
550d32c4 138TS_CMD_WAITPID=${TS_CMD_WAITPID-"${ts_commandsdir}waitpid"}
43b4a4d3
KZ
139TS_CMD_WHEREIS=${TS_CMD_WHEREIS-"${ts_commandsdir}whereis"}
140TS_CMD_WIPEFS=${TS_CMD_WIPEFS-"${ts_commandsdir}wipefs"}
141TS_CMD_CHRT=${TS_CMD_CHRT-"${ts_commandsdir}chrt"}
02238bff 142TS_CMD_CHFN=${TS_CMD_CHFN-"${ts_commandsdir}chfn"}