summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorStefan Krah2007-11-07 12:37:30 +0100
committerKarel Zak2007-11-07 12:37:30 +0100
commit3738a48e0889cf5d99353432bc9d425258e8e350 (patch)
tree06aeb8b6c5ec32fcc43c643805c8231c2f39c073 /tests/helpers
parentmkswap: linux_version() code consolidation (diff)
downloadkernel-qcow2-util-linux-3738a48e0889cf5d99353432bc9d425258e8e350.tar.gz
kernel-qcow2-util-linux-3738a48e0889cf5d99353432bc9d425258e8e350.tar.xz
kernel-qcow2-util-linux-3738a48e0889cf5d99353432bc9d425258e8e350.zip
lib: add blkdev.{c,h}
Now we duplicate BLK* ioctls on many places... This patch also fix BLKGETSIZE64 usage in dependence on kernel version. Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Stefan Krah <stefan@bytereef.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/helpers/Makefile.am b/tests/helpers/Makefile.am
index b6f0557f4..0f28a7f8a 100644
--- a/tests/helpers/Makefile.am
+++ b/tests/helpers/Makefile.am
@@ -1,5 +1,9 @@
include $(top_srcdir)/config/include-Makefile.am
-noinst_PROGRAMS = mnt_test_sysinfo
+noinst_PROGRAMS = mnt_test_sysinfo test_blkdev
mnt_test_sysinfo_SOURCES = mnt_test_sysinfo.c
+test_blkdev_SOURCES = $(top_srcdir)/lib/blkdev.c \
+ $(top_srcdir)/lib/linux_version.c
+test_blkdev_CFLAGS = -DMAIN_TEST_BLKDEV
+