From 7ab3699b58176c9affff17ca05c9f4b004cdeb34 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 2 Dec 2007 08:55:34 +0000 Subject: [PATCH] mkfs.minix: add testsuite; disable code which makes images variable --- testsuite/mkfs.minix.tests | 22 ++++++++++++++++++++++ util-linux/mkfs_minix.c | 7 +++---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100755 testsuite/mkfs.minix.tests diff --git a/testsuite/mkfs.minix.tests b/testsuite/mkfs.minix.tests new file mode 100755 index 000000000..90df9316d --- /dev/null +++ b/testsuite/mkfs.minix.tests @@ -0,0 +1,22 @@ +#!/bin/sh + +# mkfs.minix tests. +# Copyright 2007 by Denys Vlasenko +# Licensed under GPL v2, see file LICENSE for details. + +. testing.sh + +# testing "test name" "options" "expected result" "file input" "stdin" + +testing "mkfs.minix" \ + "dd if=/dev/zero of=input bs=1k count=1024 2>/dev/null; mkfs.minix input; md5sum