summaryrefslogtreecommitdiff
path: root/tests/j_long_revoke_trans_mcsum_64bit
Commit message (Collapse)AuthorAgeFilesLines
* tests: don't run sed multiple times on test outputAndreas Dilger2018-06-221-19/+9
| | | | | | | | | | | | Don't call sed multiple times on the output, and avoid the use of temporary files, or if possible. It would be convenient to use "sed -i" to only update the output file once, but this is not portable to all platforms. [ Fixed a few test regression failures --tytso ] Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: clean up $DEBUGFS_EXE usage in scriptsAndreas Dilger2018-06-221-8/+7
| | | | | | | | | | | | | | | | Instead of putting the entire test script under an implicit "if test -x $DEBUGFS_EXE" conditional (sometimes indenting the code, and sometimes not), rather check for the reverse and exit the test script early if $DEBUGFS_EXE is missing. In some places, tests were running $DEBUGFS_EXE directly, when they should be running $DEBUGFS (which will run with Fortify, or other options). [ Fixed up missing exit statement in f_detect_junk. --tytso ] Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: shorten test descriptions to fit in 80 columnsAndreas Dilger2017-10-151-1/+1
| | | | | | | | | While not critical to functionality, it is easier to see the pass/fail status of each test if they are not wrapped onto the next line. Shorten test descriptions so the name+description fit in 80 columns. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: fix test scripts that don't work on non-Linux systems.Darrick J. Wong2014-11-071-2/+2
| | | | | | | | | Fix various tests that break on non-Linux systems; in particular, sed -i doesn't work the same on all platforms; and try to keep the GNU getopt-isms out. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* tests: test writing and recovering 64bit csum_v3 journalsDarrick J. Wong2014-09-113-0/+200
Simple tests for the 64bit journal transaction creation code when journal and metadata_csum are enabled. We test writing (bad) block bitmaps out through the journal and replaying them via fsck, with a few twists: (a) All bitmaps are committed (fs errors reported) (b) All the bitmap blocks are revoked (no errors) (c) The transaction is never committed (no errors) (d) Same as (a), but debugfs gets to do the replay. We also test: (a) writing and replaying transactions with multiple descriptor blocks (b) same, but with multiple revoke blocks. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>