summaryrefslogtreecommitdiff
path: root/tests/t9010-big-sector.sh
Commit message (Collapse)AuthorAgeFilesLines
* maint: Update copyright statements to 2022Brian C. Lane2023-03-241-1/+1
| | | | By running make update-copyright
* 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
* 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".
* 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: 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: factor out some moreJim Meyering2009-11-031-4/+1
| | | | | * tests/t-local.sh (require_scsi_debug_module_): New function. * tests/t9010-big-sector.sh: Use it.
* tests: perform scsi_debug cleanup automatically...Jim Meyering2009-11-031-7/+0
| | | | | | | | | | | ...rather than requiring each test to do it. * tests/t-lib.sh ($cleanup_eval): New variable. Initialize. (remove_tmp_): Use it. * tests/t-local.sh: Record whether modprobe succeeded. (cleanup_eval_): Append an invocation of scsi_debug_cleanup_ so that it is always run. (scsi_debug_cleanup_): Run rmmod only if the modprobe succeeded. * tests/t9010-big-sector.sh (cleanup_): Remove.
* tests: move scsi_debug framework into shared scriptJim Meyering2009-11-021-65/+3
| | | | | | * tests/t-local.sh (-scsi_debug_cleanup_, wait_for_dev_to_appear_): (print_sd_names_, scsi_debug_setup_): New functions, factored out of ... * tests/t9010-big-sector.sh: ...this file.
* tests: document and begin to factor out scsi_debug frameworkJim Meyering2009-11-021-11/+35
| | | | | * tests/t9010-big-sector.sh: Add comments, fix a bug in "comm" usage, prepare to factor out scsi_debug framework.
* tests: use scsi_debug to test-for 4k-sector-specific bugJim Meyering2009-10-191-0/+96
* tests/t9010-big-sector.sh: New root-only test. Requires 2.6.31, and the scsi_debug module, /sys/block/... support and an upcoming version of libblkid. * tests/Makefile.am (TESTS): Add t9010-big-sector.sh. Thanks to Mike Snitzer for advice and for pointing me to similar code he wrote to test LVM.