summaryrefslogtreecommitdiff
path: root/tests/t4100-dvh-partition-limits.sh
Commit message (Collapse)AuthorAgeFilesLines
* tests: XFS requires a minimum size of 300MBrian C. Lane2022-12-131-1/+1
|
* maint: Update copyright statements to 2022Brian C. Lane2022-03-231-1/+1
| | | | By running make update-copyright
* 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: Use mkfs.xfs to create files (#1101112)Brian C. Lane2014-05-271-2/+1
| | | | | | | | | | On s390 there is a bug with mkfs.xfs and pre-existing files. Work around it by creating the file directly with mkfs.xfs. This also works on other arches. * tests/t1700-probe-fs.sh: Check for xfs and use direct file creation * tests/t4100-dvh-partition-limits.sh: Use mkfs.xfs -dfile * tests/t4100-msdos-partition-limits.sh: Use mkfs.xfs -dfile
* 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/+4
| | | | | | | | | | | | | | | | | | | * 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-6/+6
| | | | | | | | | | | | | | 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: 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: convert t4100-dvh-partition-limits.sh to use init.shJim Meyering2010-11-201-73/+59
| | | | * tests/t4100-dvh-partition-limits.sh: Convert.
* tests: avoid root-only/XFS limit test failure on 32-bit systemJim Meyering2010-04-301-0/+7
| | | | | | | | | | * tests/t4100-msdos-partition-limits.sh: Due to an inherent XFS limitation on 32-bit systems, this test would fail a set-up file creation step for simulated sector sizes of 4K and up. Skip this test in those cases. Upon dd failure, propagate its diagnostic to output, to make this sort of problem easier to diagnose. * tests/t4100-dvh-partition-limits.sh: Likewise.
* tests: avoid spurious test failure with newer xfsprogsJim Meyering2010-02-041-1/+1
| | | | | * tests/t4100-dvh-partition-limits.sh: Use mkfs.xfs' -f (force) option. It is required at least for xfsprogs-3.1.0.
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-081-1/+1
| | | | Run this command: make update-copyright
* tests: make two partition-related tests work for other sector sizesJim Meyering2009-08-281-2/+3
| | | | | | | These two root-only tests would fail with the PARTED_SECTOR_SIZE envvar set to anything other than 512. Now they also work for multiples. * tests/t4100-dvh-partition-limits.sh: Make sector-size agnostic. * tests/t4100-msdos-partition-limits.sh: Likewise.
* tests: skip xfs-requiring tests when mkfs.xfs is not installedJim Meyering2009-07-241-1/+2
| | | | | | * tests/test-lib.sh (require_xfs_): New function. * tests/t4100-dvh-partition-limits.sh: Use it. * tests/t4100-msdos-partition-limits.sh: Likewise.
* 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.
* Enforce inherent limitations of dos and dvh partition table formats.Jim Meyering2008-02-041-0/+169
* libparted/disk.c (_check_partition): Enforce the 32-bit limitation on a partition's starting sector number and length (in sectors). With the usual 512-byte sector size, this limits the maximum partition size to just under 2TB. (_partition_max_start, _partition_max_len): New functions. (_check_partition): Use them. * tests/t4100-msdos-partition-limits.sh: New file. Test vs. msdos. * tests/t4100-dvh-partition-limits.sh: New file. Test vs. dvh. * tests/Makefile.am (TESTS): Add t4100-msdos-partition-limits.sh and t4100-dvh-partition-limits.sh.