summaryrefslogtreecommitdiffstats
path: root/tests/commands.sh.in
diff options
context:
space:
mode:
authorKarel Zak2007-01-04 14:23:48 +0100
committerKarel Zak2007-01-04 14:23:48 +0100
commite83446da1a3f626920d5e65d4f78651581765b61 (patch)
tree56880fa701f6f1e78bb65808f86f859f9bd93d84 /tests/commands.sh.in
parentmount: add simple (printf-like) debug routine and --debug option (diff)
downloadkernel-qcow2-util-linux-e83446da1a3f626920d5e65d4f78651581765b61.tar.gz
kernel-qcow2-util-linux-e83446da1a3f626920d5e65d4f78651581765b61.tar.xz
kernel-qcow2-util-linux-e83446da1a3f626920d5e65d4f78651581765b61.zip
tests: add basic infrastructure for regression tests
The patch adds tests/ directory with simple regression tests infrastructure. Also, it adds the "ts-mount-paths" test that testing if all defined paths (fstab, mtab, locks) are still same. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/commands.sh.in')
-rw-r--r--tests/commands.sh.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/commands.sh.in b/tests/commands.sh.in
new file mode 100644
index 000000000..ecdb9b948
--- /dev/null
+++ b/tests/commands.sh.in
@@ -0,0 +1,8 @@
+TOPDIR=@top_srcdir@
+TS_TOPDIR=$TOPDIR/tests
+
+# paths to commands
+TS_CMD_MOUNT=${TS_CMD_MOUNT:-"$TOPDIR/mount/mount"}
+TS_CMD_UMOUNT=${TS_CMD_MOUNT:-"$TOPDIR/mount/umount"}
+TS_CMD_SWAPON=${TS_CMD_MOUNT:-"$TOPDIR/mount/swapon"}
+TS_CMD_SWAPOFF=${TS_CMD_MOUNT:-"$TOPDIR/mount/swapoff"}