From d446cfc104c07cf616e4afabf08765b024026013 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Tue, 31 Aug 2021 11:01:40 +0200 Subject: [PATCH] Add smoke gating test --- .fmf/version | 1 + plans/runtest.sh | 15 +++++++++++++++ plans/smoke.fmf | 6 ++++++ 3 files changed, 22 insertions(+) create mode 100644 .fmf/version create mode 100755 plans/runtest.sh create mode 100644 plans/smoke.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/runtest.sh b/plans/runtest.sh new file mode 100755 index 0000000..1f2f20e --- /dev/null +++ b/plans/runtest.sh @@ -0,0 +1,15 @@ +#!/bin/sh -eux + +# Create testing iso image +rm -rf ./isocontent +mkdir isocontent +dd if=/dev/zero of=isocontent/big_enough_file bs=500K count=1 +mkisofs -o test.iso isocontent + +# Implant and check md5 sum +implantisomd5 test.iso +checkisomd5 --verbose test.iso + +# Destroy testing iso image +rm -rf ./isocontent +rm test.iso diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..b1d4a16 --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,6 @@ +summary: Basic smoke test +prepare: + how: install + package: [genisoimage, coreutils, isomd5sum] +execute: + script: plans/runtest.sh