3 @@ -2,4 +2,4 @@ bin_PROGRAMS = genext2fs
4 genext2fs_SOURCES = genext2fs.c
6 EXTRA_DIST = $(man_MANS) test-gen.lib test-mount.sh test.sh device_table.txt
8 +TESTS = test-mount.sh test.sh
11 @@ -52,3 +52,14 @@ calc_digest () {
15 +if [ "x$NEED_ROOT" = "xyes" ] ; then
17 + if [ $? != 0 ] ; then
18 + echo "Failed to run 'id -u'" 1>&2
21 + if [ "x$my_uid" != "x0" ] ; then
22 + echo "Skipping test as this requires root access"
45 # md5cmp - Calculate MD5 digest and compare it to an expected value.