gfs2-utils/tests/atlocal
Andrew Price bf7f4410a9 * Mon Feb 27 2023 Andrew Price <anprice@redhat.com> - 3.5.0-1
- New upstream version
  Resolves: rhbz#2170017
- Update tests
- Disable LTO to fix unit test breakage in el9
- gfs2_edit: Fix savemeta test failures in 32-bit environments
2023-03-07 17:02:19 +00:00

18 lines
260 B
Plaintext

GFS_TGT="${abs_top_builddir}/tests/testvol"
GFS_TGT_SZ=20
GFS_MKFS="mkfs.gfs2 -O -D"
gfs_max_blocks()
{
printf $((GFS_TGT_SZ*1073741824/$1))
}
gfs_tgt_cleanup()
{
if $1; then
rm -f $GFS_TGT
fi
}
trap 'gfs_tgt_cleanup $at_arg_always_clean_testvol' EXIT