From e4ec8b1f51b7a0c793297eb41f3bbc41165933be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 30 Jul 2020 16:03:53 +0200 Subject: [PATCH] test-repart: also print json output This doesn't really "test" anything, but a human can look at it. --- src/partition/test-repart.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/partition/test-repart.sh b/src/partition/test-repart.sh index bfb9bcb4c9b..730f9cc9c3f 100755 --- a/src/partition/test-repart.sh +++ b/src/partition/test-repart.sh @@ -10,6 +10,8 @@ mkdir -p $D/definitions SEED=e2a40bf9-73f1-4278-9160-49c031e7aef8 +echo "### Testing systemd-repart --empty=create ###" + $repart $D/zzz --empty=create --size=1G --seed=$SEED sfdisk -d $D/zzz | grep -v -e 'sector-size' -e '^$' >$D/empty @@ -23,6 +25,8 @@ first-lba: 2048 last-lba: 2097118 EOF +echo "### Testing with root, root2, home, & swap ###" + cat >$D/definitions/root.conf <$D/definitions/swap.conf <$D/populated3 @@ -115,6 +123,8 @@ EOF dd if=/dev/urandom of=$D/block-copy bs=4096 count=10240 +echo "### Testing with root, root2, home, swap, another partition, & partition copy ###" + cat >$D/definitions/extra2.conf <