public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Ruediger Meier <sweet_f_a@gmx.de>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: bugs on exotic archs
Date: Thu, 29 May 2014 17:01:54 +0200	[thread overview]
Message-ID: <201405291701.55218.sweet_f_a@gmx.de> (raw)
In-Reply-To: <20140513082349.GL8951@x2.net.home>

On Tuesday 13 May 2014, Karel Zak wrote:
> On Mon, May 12, 2014 at 08:45:18PM +0200, Ruediger Meier wrote:

> > Failing test on certain archs:
> >
> > %ifarch ppc ppc64
> >   hexdump
>
>  this is not a bug, but the hexdump test disadvantage -- the output
>  may be different on big-endian if the output is composed from more
> input bytes.
>
> >   fdisk/bsd
>
>  BSD disklabel location depends on arch

I'am going to fix these fdisk/bsd test md5sums for big endian.
Below I've added md5sum and hex diff of LE and BE images if
somebody want to check:

md5sum diff:
-------------------
 rudi@gcc1-power7:~/devel/util-linux/build$ cat tests/diff/fdisk/bsd
--- /home/rudi/devel/util-linux/tests/expected/fdisk/bsd        2014-05-17 04:22:07.140999802 -0700
+++ /home/rudi/devel/util-linux/build/tests/output/fdisk/bsd    2014-05-29 07:39:26.715585544 -0700
@@ -50,7 +50,7 @@
 -------------------

 Create default BSD
-2e1cee529cb59c9341afef0443f196a1 bsd.img
+c2273b52976351db75596c47c10b0725 bsd.img

 ---layout----------
 Welcome to fdisk <removed>.
@@ -79,7 +79,7 @@
 Command (m for help):
 -------------------

-b5c121c2091b2ff26b880551feac7112 bsd.img
+9a234a5b99e37d2ce0d92b65437b93cd bsd.img

 ---layout----------
 Welcome to fdisk <removed>.
--------------------


hexdump diff 1, "2e1cee529cb59c9341afef0443f196a1 vs c2273b52976351db75596c47c10b0725":
-----------------------------
--- /tmp/bsd-le-1.img_  2014-05-29 16:47:54.110684041 +0200
+++ /tmp/bsd-be-1.img_  2014-05-29 16:47:54.040685344 +0200
@@ -7,19 +7,19 @@
 000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
 00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
-00200200  57 45 56 82 06 00 00 00  00 00 00 00 00 00 00 00  |WEV.............|
-00200210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
-00200220  00 00 00 00 00 00 00 00  00 02 00 00 3f 00 00 00  |............?...|
-00200230  ff 00 00 00 01 00 00 00  c1 3e 00 00 c1 3e 00 00  |.........>...>..|
-00200240  00 00 00 00 00 00 00 00  10 0e 01 00 00 00 00 00  |................|
-00200250  00 00 00 00 00 00 00 00  20 00 00 00 00 00 00 00  |........ .......|
-00200260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+00200040  82 56 45 57 00 06 00 00  00 00 00 00 00 00 00 00  |.VEW............|
+00200050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+00200060  00 00 00 00 00 00 00 00  00 00 02 00 00 00 00 3f  |...............?|
+00200070  00 00 00 ff 00 00 00 01  00 00 3e c1 00 00 3e c1  |..........>...>.|
+00200080  00 00 00 00 00 00 00 00  0e 10 00 01 00 00 00 00  |................|
+00200090  00 00 00 00 00 00 00 00  00 00 00 20 00 00 00 00  |........... ....|
+002000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
-00200280  00 00 00 00 57 45 56 82  33 62 04 00 00 20 00 00  |....WEV.3b... ..|
-00200290  00 20 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |. ..............|
-002002a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
-002002b0  00 00 00 00 00 40 00 00  00 10 00 00 00 00 00 00  |.....@..........|
-002002c0  00 00 00 00 c1 3e 00 00  00 00 00 00 00 00 00 00  |.....>..........|
-002002d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+002000c0  00 00 00 00 82 56 45 57  62 33 00 04 00 00 20 00  |.....VEWb3.... .|
+002000d0  00 00 20 00 00 00 00 00  00 00 00 00 00 00 00 00  |.. .............|
+002000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+002000f0  00 00 00 00 00 00 40 00  00 00 10 00 00 00 00 00  |......@.........|
+00200100  00 00 00 00 00 00 3e c1  00 00 00 00 00 00 00 00  |......>.........|
+00200110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
 00a00000
--------------------------


hexdump diff 1, "b5c121c2091b2ff26b880551feac7112 vs 9a234a5b99e37d2ce0d92b65437b93cd":
-----------------------------
--- /tmp/bsd-le-2.img_  2014-05-29 16:47:54.147683353 +0200
+++ /tmp/bsd-be-2.img_  2014-05-29 16:47:54.075684693 +0200
@@ -7,19 +7,19 @@
 000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
 00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
-00200200  57 45 56 82 06 00 00 00  00 00 00 00 00 00 00 00  |WEV.............|
-00200210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
-00200220  00 00 00 00 00 00 00 00  00 02 00 00 3f 00 00 00  |............?...|
-00200230  ff 00 00 00 01 00 00 00  c1 3e 00 00 c1 3e 00 00  |.........>...>..|
-00200240  00 00 00 00 00 00 00 00  10 0e 01 00 00 00 00 00  |................|
-00200250  00 00 00 00 00 00 00 00  20 00 00 00 00 00 00 00  |........ .......|
-00200260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+00200040  82 56 45 57 00 06 00 00  00 00 00 00 00 00 00 00  |.VEW............|
+00200050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+00200060  00 00 00 00 00 00 00 00  00 00 02 00 00 00 00 3f  |...............?|
+00200070  00 00 00 ff 00 00 00 01  00 00 3e c1 00 00 3e c1  |..........>...>.|
+00200080  00 00 00 00 00 00 00 00  0e 10 00 01 00 00 00 00  |................|
+00200090  00 00 00 00 00 00 00 00  00 00 00 20 00 00 00 00  |........... ....|
+002000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
-00200280  00 00 00 00 57 45 56 82  35 7a 04 00 00 20 00 00  |....WEV.5z... ..|
-00200290  00 20 00 00 01 08 00 00  00 10 00 00 00 00 00 00  |. ..............|
-002002a0  07 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
-002002b0  00 00 00 00 00 40 00 00  00 10 00 00 00 00 00 00  |.....@..........|
-002002c0  00 00 00 00 c1 3e 00 00  00 00 00 00 00 00 00 00  |.....>..........|
-002002d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+002000c0  00 00 00 00 82 56 45 57  7d 32 00 04 00 00 20 00  |.....VEW}2.... .|
+002000d0  00 00 20 00 00 00 08 01  00 00 10 00 00 00 00 00  |.. .............|
+002000e0  07 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+002000f0  00 00 00 00 00 00 40 00  00 00 10 00 00 00 00 00  |......@.........|
+00200100  00 00 00 00 00 00 3e c1  00 00 00 00 00 00 00 00  |......>.........|
+00200110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
 00a00000
-------------------------

cu,
Rudi

  parent reply	other threads:[~2014-05-29 15:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12 18:45 bugs on exotic archs Ruediger Meier
2014-05-13  8:23 ` Karel Zak
2014-05-13 13:36   ` Ruediger Meier
2014-05-29 15:01   ` Ruediger Meier [this message]
2014-05-29 15:25     ` [PATCH] tests: fix fdisk/bsd for big endian systems Ruediger Meier
2014-05-29 17:32       ` Ruediger Meier
2014-05-29 17:52       ` Ruediger Meier
2014-06-09 11:02         ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201405291701.55218.sweet_f_a@gmx.de \
    --to=sweet_f_a@gmx.de \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox