Page MenuHomeFreeBSD

skip geom_uzip test on big-endian systems
ClosedPublic

Authored by br on Sep 29 2016, 1:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 9, 10:31 PM
Unknown Object (File)
Wed, May 1, 3:00 PM
Unknown Object (File)
Wed, May 1, 11:50 AM
Unknown Object (File)
Mon, Apr 29, 3:52 AM
Unknown Object (File)
Sun, Apr 28, 9:34 AM
Unknown Object (File)
Sat, Apr 27, 11:01 AM
Unknown Object (File)
Sat, Apr 27, 12:25 AM
Unknown Object (File)
Fri, Apr 26, 5:15 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

br retitled this revision from to skip geom_uzip test on big-endian systems.
br updated this object.
br edited the test plan for this revision. (Show Details)
br added a reviewer: ngie.

alternatively we can add pre-generated big-endian uzip image, like this.

jmmv requested changes to this revision.Oct 10 2016, 7:34 PM
jmmv added a reviewer: jmmv.
jmmv added a subscriber: jmmv.
jmmv added inline comments.
tests/sys/geom/class/uzip/1_test.sh
9 ↗(On Diff #21229)

$endian -eq 0 means nothing and the line above is pretty much magic. Please find a better name for this variable and consider extending the comment to explain what you are doing in some detail.

Also, test the three possible cases for the variable value: 0, whatever the "else" branch currently expects, and the case where the command above produces a failure.

10 ↗(On Diff #21229)

1_eb is cryptic... and it's not orthogonal with the other file name. 1_big_endian... would be better, and then rename the other file to 1_little_endian.

This revision now requires changes to proceed.Oct 10 2016, 7:34 PM
ngie requested changes to this revision.Oct 10 2016, 7:57 PM
ngie edited edge metadata.
ngie added inline comments.
tests/sys/geom/class/uzip/1_test.sh
9 ↗(On Diff #21229)

Agreed... This variable should likely be called "big_endian" and should be either "true" or "false", then tested like:

if $big_endian; then
    # Use big endian file.
else
    # Use little endian file.
fi

It seems like this should be a general purpose program usable for all tests.

10 ↗(On Diff #21229)

+1

br edited edge metadata.

change filenames, parameter names, etc

br edited edge metadata.

add context

ngie edited edge metadata.

Looks good minus my recommendation about using "=" instead of "==" in conditionals.

tests/sys/geom/class/uzip/1_test.sh
9 ↗(On Diff #21476)

Please use "=" instead of "==". It doesn't matter for FreeBSD 10+, but it does matter for code cleanliness (just in case someone tried to run these tests on FreeBSD 9 and below), and is POSIX conformant.

br edited edge metadata.

use = instead of ==

br edited edge metadata.

forgot file

This revision was automatically updated to reflect the committed changes.