summaryrefslogtreecommitdiff
path: root/tests/t9020-alignment.sh
Commit message (Collapse)AuthorAgeFilesLines
* 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: fix t9020-alignment.shv3.1.90Phillip Susi2014-06-151-1/+1
| | | | | | This test was refering to print-alignment by absolute path, which broke building with a different object directory, causing make distcheck to fail.
* 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".
* 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-1/+1
| | | | | | | | | | | | | | 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".
* default to 1MiB alignment when possibleBrian C. Lane2010-12-151-1/+1
| | | | | | | | | | | | | | Change the linux_get_optimum_alignment() function to prefer aligning partitions to PED_DEFAULT_ALIGNMENT (1MiB), if possible. This helps tools like anaconda better support 4k sector drives. * include/parted/parted.h (PED_DEFAULT_ALIGNMENT): Define. * libparted/arch/linux.c (linux_get_optimum_alignment): Adjust. See comments for details. * libparted/device.c (ped_device_get_optimum_alignment): Use PED_DEFAULT_ALIGNMENT rather than hard-coded 1048576. * tests/t9020-alignment.sh: Adjust expectations to match new behavior. See http://bugzilla.redhat.com/618255 for details.
* 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_/'
* tests: rely on require_scsi_debug_module_ to modprobe scsi_debug moduleOtavio Salvador2010-06-301-4/+0
| | | | | | | | | * t2310-dos-extended-2-sector-min-offset.sh: remove explicit modprobe since it is done by require_scsi_debug_module_. * t3200-type-change.sh: likewise. * t9020-alignment.sh: likewise. * t9030-align-check.sh: likewise. * t9040-many-partitions.sh: likewise.
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-081-1/+1
| | | | Run this command: make update-copyright
* tests: correct a commentJim Meyering2009-11-301-1/+1
| | | | * tests/t9020-alignment.sh: Correct a comment.
* tests: do not invoke scsi_debug_setup_ in a subshellJim Meyering2009-11-031-1/+2
| | | | | | | * tests/t9010-big-sector.sh: Do not invoke scsi_debug_setup_ in a subshell, since it sets a variable that cleanup machinery expects to see. * tests/t9020-alignment.sh: Likewise.
* tests: print and check partition alignment info, tooJim Meyering2009-11-031-0/+1
| | | | | * tests/print-align.c: Print partition alignment info, too * tests/t9020-alignment.sh: Check partition alignment too.
* tests: test the new alignment functionsJim Meyering2009-11-031-0/+53
* tests/t9020-alignment.sh: New test. * tests/Makefile.am (TESTS): Add it to the list.