summaryrefslogtreecommitdiff
path: root/tests/t6000-dm.sh
Commit message (Collapse)AuthorAgeFilesLines
* maint: Update copyright statements to 2021Brian C. Lane2021-01-181-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2020Brian C. Lane2020-12-111-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2019Brian C. Lane2019-08-121-1/+1
| | | | By running make update-copyright
* tests: avoid false-positive failure due to symlinkJim Meyering2014-05-281-2/+8
| | | | | | * tests/t6000-dm.sh (sanitize): Helper function. Before this change, this test would fail due to difference between absolute name and symlink-including names in "parted print" output
* maint: run "make update-copyright"Jim Meyering2014-05-251-1/+1
|
* maint: update all copyright year number rangesJim Meyering2013-01-061-1/+1
| | | | Run "make update-copyright".
* tests: update tests for new disk flags outputBrian C. Lane2012-02-021-2/+3
| | | | | | | | | | | | | | | | | | | * tests/t0010-script-no-ctrl-chars.sh: Updated * tests/t0100-print.sh: Updated * tests/t0101-print-empty.sh: Updated * tests/t0220-gpt-msftres.sh: Updated * tests/t0250-gpt.sh: Updated * tests/t0280-gpt-corrupt.sh: Updated * tests/t2310-dos-extended-2-sector-min-offset.sh: Updated * tests/t4000-sun-raid-type.sh: Updated * tests/t4100-dvh-partition-limits.sh: Updated * tests/t4100-msdos-partition-limits.sh: Updated * tests/t4100-msdos-starting-sector.sh: Updated * tests/t4200-partprobe.sh: Updated * tests/t5000-tags.sh: Updated * tests/t6000-dm.sh: Updated * tests/t9040-many-partitions.sh: Updated * tests/t9041-undetected-in-use-16th-partition.sh: Updated
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* tests: use "compare exp out", not "compare out exp"Jim Meyering2011-11-291-2/+2
| | | | | | | | | | | | | | Likewise, when an empty file is expected, use "compare /dev/null out", not "compare out /dev/null". I.e., specify the expected/desired contents via the first file name. Prompted by a suggestion from Bruno Haible in http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020/focus=29154 Run these commands: git grep -l -E 'compare [^ ]+ exp' \ |xargs perl -pi -e 's/\b(compare) (\S+) (exp\S*)/$1 $3 $2/' git grep -l -E 'compare [^ ]+ /dev/null' \ |xargs perl -pi -e 's,\b(compare) (\S+) (/dev/null),$1 $3 $2,'
* maint: update copyright year ranges to include 2011Jim Meyering2011-02-221-1/+1
| | | | Run "make update-copyright".
* tests: avoid spurious failureJim Meyering2010-11-221-1/+2
| | | | | * tests/t6000-dm.sh: Sanitize directory name, to avoid spurious failure due to e.g., mount-related differences.
* tests: adjust cleanup_ handler to work with init.shJim Meyering2010-11-201-1/+1
| | | | | | | | | | | | | | * tests/init.cfg (cleanup_, cleanup_fn_, cleanup_final_): Define. * tests/t-local.sh (cleanup_final_): Use this to ensure that we always release the lock and run rmmod. Overriding the trap did not do the job. * libparted/tests/t2100-zerolen.sh: Use cleanup_fn_, not cleanup_. * tests/t1100-busy-label.sh: Likewise. * tests/t1101-busy-partition.sh: Likewise. * tests/t4100-dvh-partition-limits.sh: Likewise. * tests/t4100-msdos-partition-limits.sh: Likewise. * tests/t6000-dm.sh: Likewise. * tests/t8000-loop.sh: Likewise.
* tests: switch from t-lib.sh to init.shJim Meyering2010-11-201-7/+1
| | | | | | | | | | | | | | | | | | | | | | * tests/init.cfg: Source t-local.sh. * tests/t-local.sh: Replace trap so that we always run scsi_debug_cleanup_, regardless of the cleanup_ function. Replace each snippet like this: -if test "$VERBOSE" = yes; then - set -x - parted --version -fi - -: ${srcdir=.} -. $srcdir/t-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../parted Use this command (LHS elided, because it was too long): git grep -l 'srcdir/t-lib.sh'|xargs perl -p0i -e \ 's!...!. "\${srcdir=.}/init.sh"; path_prepend_ ../parted\n!' * tests/t3310-flags.sh: Adjust manually, since the snippet didn't quite match.
* tests: remove fail=0 initializationsJim Meyering2010-11-201-2/+0
| | | | Now, this is done in init.sh.
* tests: global subst: s/skip_test_/skip_/Jim Meyering2010-11-201-2/+2
| | | | git grep -l skip_test_|xargs perl -pi -e 's/skip_test_/skip_/'
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-081-1/+1
| | | | Run this command: make update-copyright
* tests: t6000-dm.sh: update and adapt to changed LVM2Jim Meyering2009-11-031-90/+53
| | | | | | * tests/t6000-dm.sh: Rewrite to use new test framework and to disable multipath testing, since LVM2 has changed in such a way that it no longer works with loop devices.
* tests: avoid spurious failure on "nodev" mounted partitionJim Meyering2009-08-281-3/+8
| | | | | * tests/t8000-loop.sh: Skip this test if loop_setup_ fails. * tests/t6000-dm.sh: Likewise.
* tests: use "compare", not "$compare"Jim Meyering2009-02-161-4/+4
| | | | | * test-lib.sh (compare): Define "compare" as a function, not a variable. * tests/t*.sh: use "compare", not "$compare"
* skip device-mapper test if support is not enabledJim Meyering2008-06-061-0/+7
| | | | | | * configure.ac: Revamp test; also set ENABLE_DEVICE_MAPPER shell var. * tests/Makefile.am (ENABLE_DEVICE_MAPPER): Propagate to tests. * tests/t6000-dm.sh: Skip all tests w/o device-mapper support.
* source test-lib.sh (not init.sh) from each testJim Meyering2008-06-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * tests/test-lib.sh: Source init.sh early. Use $test_dir_rand_, as done in LVM test framework. Source lvm-utils.sh _after_ defining test_dir_rand_. * tests/Makefile.am (init.sh): Don't emit code to source test-lib.sh, since each test now sources that file directly. * tests/t0000-basic.sh: Source test-lib.sh, not init.sh. Default srcdir=. in each test, so it may be run independently of "make". * tests/t0100-print.sh: Likewise. * tests/t1000-mkpartfs.sh: Likewise. * tests/t1100-busy-label.sh: Likewise. * tests/t1500-small-ext2.sh: Likewise. * tests/t2000-mkfs.sh: Likewise. * tests/t2100-mkswap.sh: Likewise. * tests/t2200-dos-label-recog.sh: Likewise. * tests/t3000-constraints.sh: Likewise. * tests/t3100-resize-ext2-partion.sh: Likewise. * tests/t4100-dvh-partition-limits.sh: Likewise. * tests/t4100-msdos-partition-limits.sh: Likewise. * tests/t5000-tags.sh: Likewise. * tests/t6000-dm.sh: Likewise. * tests/Makefile.am (TESTS_ENVIRONMENT): Pass srcdir to tests.
* add basic device mapper testsGuido Günther2008-06-061-0/+122
* tests/dm-utils.sh: New file. Copied from lvm's tests/lvm-utils.sh. * tests/t6000-dm.sh: New file. * tests/test-lib.sh: FIXME * tests/Makefile.am: FIXME