TS_CMD_LSCPU=${TS_CMD_LSCPU-"$TOPDIR/sys-utils/lscpu"}
TS_CMD_BLKID=${TS_CMD_BLKID-"$TOPDIR/misc-utils/blkid"}
+TS_CMD_PARTX=${TS_CMD_PARTX-"$TOPDIR/partx/partx"}
TS_CMD_FDISK=${TS_CMD_FDISK-"$TOPDIR/fdisk/fdisk"}
--- /dev/null
+# 1: 32- 7679 ( 7648 sectors, 3 MB)
+# 2: 7680- 16383 ( 8704 sectors, 4 MB)
+# 5: 7936- 12799 ( 4864 sectors, 2 MB)
+# 6: 12544- 16127 ( 3584 sectors, 1 MB)
--- /dev/null
+# 1: 34- 2047 ( 2014 sectors, 1 MB)
+# 2: 2048- 4095 ( 2048 sectors, 1 MB)
+# 3: 4096- 6143 ( 2048 sectors, 1 MB)
+# 4: 6144- 8191 ( 2048 sectors, 1 MB)
+# 5: 8192- 10239 ( 2048 sectors, 1 MB)
--- /dev/null
+#!/bin/bash
+
+#
+# Copyright (C) 2010 Davidlohr Bueso <dave@gnu.org>
+#
+# This file is part of util-linux-ng.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="partitions probing"
+TS_IMGDIR="$TS_TOPDIR/ts/blkid/images-pt"
+
+. $TS_TOPDIR/functions.sh
+
+ts_init "$*"
+
+if [ ! -x "$TS_CMD_PARTX" ]; then
+ ts_skip "partx disabled"
+fi
+
+mkdir -p $TS_OUTDIR/images-pt
+
+for img in $(ls $TS_IMGDIR/*.img.bz2 | sort); do
+ name=$(basename $img .img.bz2)
+ outimg=$TS_OUTDIR/images-pt/${name}.img
+
+ ts_init_subtest $name
+
+ bunzip2 < $img > $outimg
+
+ $TS_CMD_PARTX $outimg &> $TS_OUTPUT
+ ts_finalize_subtest
+done
+
+ts_finalize