Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a.out (nonexistent) @@ -1,2 +0,0 @@ -0000000 6554 7473 000a -0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 6854 2065 7571 6369 206b 7262 776f 206e -0000010 6f66 2078 756a 706d 6465 6f20 6576 2072 -0000020 6874 2065 6c62 6575 6820 756f 6573 0a0a -0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 4141 4141 4141 4141 4141 4141 4141 4141 -* -0000020 4141 4141 4141 0a41 -0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a.out (nonexistent) @@ -1,2 +0,0 @@ -0000000 25940 29811 00010 -0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 26708 08293 30065 25449 08299 29282 30575 08302 -0000010 28518 08312 30058 28781 25701 28448 25974 08306 -0000020 26740 08293 27746 25973 26656 30063 25971 02570 -0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 16705 16705 16705 16705 16705 16705 16705 16705 -* -0000020 16705 16705 16705 02625 -0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a.out (nonexistent) @@ -1,2 +0,0 @@ -0000000 062524 072163 000012 -0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 064124 020145 072561 061551 020153 071142 073557 020156 -0000010 067546 020170 072552 070155 062145 067440 062566 020162 -0000020 064164 020145 066142 062565 064040 072557 062563 005012 -0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c.out (revision 359289) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 040501 040501 040501 040501 040501 040501 040501 040501 -* -0000020 040501 040501 040501 005101 -0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/Makefile =================================================================== --- stable/11/usr.bin/hexdump/tests/Makefile (revision 359289) +++ stable/11/usr.bin/hexdump/tests/Makefile (revision 359290) @@ -1,33 +1,42 @@ # $FreeBSD$ PACKAGE= tests ATF_TESTS_SH= hexdump_test od_test ${PACKAGE}FILES+= d_hexdump_a.in ${PACKAGE}FILES+= d_hexdump_b.in ${PACKAGE}FILES+= d_hexdump_c.in ${PACKAGE}FILES+= d_hexdump_bflag_a.out ${PACKAGE}FILES+= d_hexdump_bflag_b.out ${PACKAGE}FILES+= d_hexdump_bflag_c.out ${PACKAGE}FILES+= d_hexdump_cflag_a.out ${PACKAGE}FILES+= d_hexdump_cflag_b.out ${PACKAGE}FILES+= d_hexdump_cflag_c.out -${PACKAGE}FILES+= d_hexdump_dflag_a.out -${PACKAGE}FILES+= d_hexdump_dflag_b.out -${PACKAGE}FILES+= d_hexdump_dflag_c.out +${PACKAGE}FILES+= d_hexdump_dflag_a_el.out +${PACKAGE}FILES+= d_hexdump_dflag_b_el.out +${PACKAGE}FILES+= d_hexdump_dflag_c_el.out +${PACKAGE}FILES+= d_hexdump_dflag_a_eb.out +${PACKAGE}FILES+= d_hexdump_dflag_b_eb.out +${PACKAGE}FILES+= d_hexdump_dflag_c_eb.out ${PACKAGE}FILES+= d_hexdump_nflag_a.out -${PACKAGE}FILES+= d_hexdump_oflag_a.out -${PACKAGE}FILES+= d_hexdump_oflag_b.out -${PACKAGE}FILES+= d_hexdump_oflag_c.out +${PACKAGE}FILES+= d_hexdump_oflag_a_el.out +${PACKAGE}FILES+= d_hexdump_oflag_b_el.out +${PACKAGE}FILES+= d_hexdump_oflag_c_el.out +${PACKAGE}FILES+= d_hexdump_oflag_a_eb.out +${PACKAGE}FILES+= d_hexdump_oflag_b_eb.out +${PACKAGE}FILES+= d_hexdump_oflag_c_eb.out ${PACKAGE}FILES+= d_hexdump_sflag_a.out ${PACKAGE}FILES+= d_hexdump_UCflag_a.out ${PACKAGE}FILES+= d_hexdump_UCflag_b.out ${PACKAGE}FILES+= d_hexdump_UCflag_c.out -${PACKAGE}FILES+= d_hexdump_xflag_a.out -${PACKAGE}FILES+= d_hexdump_xflag_b.out -${PACKAGE}FILES+= d_hexdump_xflag_c.out +${PACKAGE}FILES+= d_hexdump_xflag_a_el.out +${PACKAGE}FILES+= d_hexdump_xflag_b_el.out +${PACKAGE}FILES+= d_hexdump_xflag_c_el.out +${PACKAGE}FILES+= d_hexdump_xflag_a_eb.out +${PACKAGE}FILES+= d_hexdump_xflag_b_eb.out +${PACKAGE}FILES+= d_hexdump_xflag_c_eb.out ${PACKAGE}FILES+= d_od_cflag_a.out ${PACKAGE}FILES+= d_od_cflag_b.out .include Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 21605 29556 02560 +0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 25940 29811 00010 +0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 21608 25888 29045 26979 27424 25202 28535 28192 +0000010 26223 30752 27253 28016 25956 08303 30309 29216 +0000020 29800 25888 25196 30053 08296 28533 29541 02570 +0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 26708 08293 30065 25449 08299 29282 30575 08302 +0000010 28518 08312 30058 28781 25701 28448 25974 08306 +0000020 26740 08293 27746 25973 26656 30063 25971 02570 +0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 16705 16705 16705 16705 16705 16705 16705 16705 +* +0000020 16705 16705 16705 16650 +0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 16705 16705 16705 16705 16705 16705 16705 16705 +* +0000020 16705 16705 16705 02625 +0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 052145 071564 005000 +0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 062524 072163 000012 +0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 052150 062440 070565 064543 065440 061162 067567 067040 +0000010 063157 074040 065165 066560 062544 020157 073145 071040 +0000020 072150 062440 061154 072545 020150 067565 071545 005012 +0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 064124 020145 072561 061551 020153 071142 073557 020156 +0000010 067546 020170 072552 070155 062145 067440 062566 020162 +0000020 064164 020145 066142 062565 064040 072557 062563 005012 +0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 040501 040501 040501 040501 040501 040501 040501 040501 +* +0000020 040501 040501 040501 040412 +0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 040501 040501 040501 040501 040501 040501 040501 040501 +* +0000020 040501 040501 040501 005101 +0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 5465 7374 0a00 +0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 6554 7473 000a +0000005 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 5468 6520 7175 6963 6b20 6272 6f77 6e20 +0000010 666f 7820 6a75 6d70 6564 206f 7665 7220 +0000020 7468 6520 626c 7565 2068 6f75 7365 0a0a +0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 6854 2065 7571 6369 206b 7262 776f 206e +0000010 6f66 2078 756a 706d 6465 6f20 6576 2072 +0000020 6874 2065 6c62 6575 6820 756f 6573 0a0a +0000030 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 4141 4141 4141 4141 4141 4141 4141 4141 +* +0000020 4141 4141 4141 410a +0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out =================================================================== --- stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out (nonexistent) +++ stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 4141 4141 4141 4141 4141 4141 4141 4141 +* +0000020 4141 4141 4141 0a41 +0000028 Property changes on: stable/11/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/11/usr.bin/hexdump/tests/hexdump_test.sh =================================================================== --- stable/11/usr.bin/hexdump/tests/hexdump_test.sh (revision 359289) +++ stable/11/usr.bin/hexdump/tests/hexdump_test.sh (revision 359290) @@ -1,190 +1,196 @@ # # Copyright (c) 2017 Kyle Evans # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # $FreeBSD$ +ENDIAN=el +ret=$(echo I | tr -d "[:space:]" | od -to2 | head -n1 | awk '{print $2}' | cut -c6) +if [ "$ret" = "0" ]; then + ENDIAN=eb +fi + atf_test_case b_flag b_flag_head() { atf_set "descr" "Verify -b output" } b_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_a.out" \ hexdump -b "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_b.out" \ hexdump -b "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_c.out" \ hexdump -b "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case c_flag c_flag_head() { atf_set "descr" "Verify -c output" } c_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_a.out" \ hexdump -c "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_b.out" \ hexdump -c "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_c.out" \ hexdump -c "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case C_flag C_flag_head() { atf_set "descr" "Verify -C output" } C_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_a.out" \ hexdump -C "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_b.out" \ hexdump -C "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_c.out" \ hexdump -C "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case hd_name hd_name_head() { atf_set "descr" "Verify hd output matching -C output" } hd_name_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_a.out" \ hd "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_b.out" \ hd "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_c.out" \ hd "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case d_flag d_flag_head() { atf_set "descr" "Verify -d output" } d_flag_body() { - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_a.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_a_$ENDIAN.out" \ hexdump -d "$(atf_get_srcdir)/d_hexdump_a.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_b.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_b_$ENDIAN.out" \ hexdump -d "$(atf_get_srcdir)/d_hexdump_b.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_c.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_c_$ENDIAN.out" \ hexdump -d "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case n_flag n_flag_head() { atf_set "descr" "Check -n functionality" } n_flag_body() { atf_check -o empty hexdump -bn 0 "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_nflag_a.out" \ hexdump -bn 1 "$(atf_get_srcdir)/d_hexdump_a.in" } atf_test_case o_flag o_flag_head() { atf_set "descr" "Verify -o output" } o_flag_body() { - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_a.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_a_$ENDIAN.out" \ hexdump -o "$(atf_get_srcdir)/d_hexdump_a.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_b.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_b_$ENDIAN.out" \ hexdump -o "$(atf_get_srcdir)/d_hexdump_b.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_c.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_c_$ENDIAN.out" \ hexdump -o "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case s_flag s_flag_head() { atf_set "descr" "Verify -s output" } s_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_sflag_a.out" \ hexdump -bs 4 "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o not-empty hexdump -n 100 -s 1024 /dev/random } atf_test_case v_flag v_flag_head() { atf_set "descr" "Verify -v functionality" } v_flag_body() { for i in $(seq 0 7); do atf_check -o match:"^\*$" \ hexdump -s ${i} "$(atf_get_srcdir)/d_hexdump_c.in" atf_check -o not-match:"^\*$" \ hexdump -vs ${i} "$(atf_get_srcdir)/d_hexdump_c.in" done atf_check -o not-match:"^\*$" \ hexdump -s 8 "$(atf_get_srcdir)/d_hexdump_c.in" atf_check -o not-match:"^\*$" \ hexdump -vs 8 "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case x_flag x_flag_head() { atf_set "descr" "Verify -x output" } x_flag_body() { - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_a.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_a_$ENDIAN.out" \ hexdump -x "$(atf_get_srcdir)/d_hexdump_a.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_b.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_b_$ENDIAN.out" \ hexdump -x "$(atf_get_srcdir)/d_hexdump_b.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_c.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_c_$ENDIAN.out" \ hexdump -x "$(atf_get_srcdir)/d_hexdump_c.in" } atf_init_test_cases() { atf_add_test_case b_flag atf_add_test_case c_flag atf_add_test_case C_flag atf_add_test_case hd_name atf_add_test_case d_flag atf_add_test_case n_flag atf_add_test_case o_flag atf_add_test_case s_flag atf_add_test_case v_flag atf_add_test_case x_flag } Index: stable/11 =================================================================== --- stable/11 (revision 359289) +++ stable/11 (revision 359290) Property changes on: stable/11 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r358553 Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a.out (nonexistent) @@ -1,2 +0,0 @@ -0000000 6554 7473 000a -0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 6854 2065 7571 6369 206b 7262 776f 206e -0000010 6f66 2078 756a 706d 6465 6f20 6576 2072 -0000020 6874 2065 6c62 6575 6820 756f 6573 0a0a -0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 4141 4141 4141 4141 4141 4141 4141 4141 -* -0000020 4141 4141 4141 0a41 -0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a.out (nonexistent) @@ -1,2 +0,0 @@ -0000000 25940 29811 00010 -0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 26708 08293 30065 25449 08299 29282 30575 08302 -0000010 28518 08312 30058 28781 25701 28448 25974 08306 -0000020 26740 08293 27746 25973 26656 30063 25971 02570 -0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 16705 16705 16705 16705 16705 16705 16705 16705 -* -0000020 16705 16705 16705 02625 -0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a.out (nonexistent) @@ -1,2 +0,0 @@ -0000000 062524 072163 000012 -0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 064124 020145 072561 061551 020153 071142 073557 020156 -0000010 067546 020170 072552 070155 062145 067440 062566 020162 -0000020 064164 020145 066142 062565 064040 072557 062563 005012 -0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c.out (revision 359289) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c.out (nonexistent) @@ -1,4 +0,0 @@ -0000000 040501 040501 040501 040501 040501 040501 040501 040501 -* -0000020 040501 040501 040501 005101 -0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c.out ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/Makefile =================================================================== --- stable/12/usr.bin/hexdump/tests/Makefile (revision 359289) +++ stable/12/usr.bin/hexdump/tests/Makefile (revision 359290) @@ -1,33 +1,42 @@ # $FreeBSD$ PACKAGE= tests ATF_TESTS_SH= hexdump_test od_test ${PACKAGE}FILES+= d_hexdump_a.in ${PACKAGE}FILES+= d_hexdump_b.in ${PACKAGE}FILES+= d_hexdump_c.in ${PACKAGE}FILES+= d_hexdump_bflag_a.out ${PACKAGE}FILES+= d_hexdump_bflag_b.out ${PACKAGE}FILES+= d_hexdump_bflag_c.out ${PACKAGE}FILES+= d_hexdump_cflag_a.out ${PACKAGE}FILES+= d_hexdump_cflag_b.out ${PACKAGE}FILES+= d_hexdump_cflag_c.out -${PACKAGE}FILES+= d_hexdump_dflag_a.out -${PACKAGE}FILES+= d_hexdump_dflag_b.out -${PACKAGE}FILES+= d_hexdump_dflag_c.out +${PACKAGE}FILES+= d_hexdump_dflag_a_el.out +${PACKAGE}FILES+= d_hexdump_dflag_b_el.out +${PACKAGE}FILES+= d_hexdump_dflag_c_el.out +${PACKAGE}FILES+= d_hexdump_dflag_a_eb.out +${PACKAGE}FILES+= d_hexdump_dflag_b_eb.out +${PACKAGE}FILES+= d_hexdump_dflag_c_eb.out ${PACKAGE}FILES+= d_hexdump_nflag_a.out -${PACKAGE}FILES+= d_hexdump_oflag_a.out -${PACKAGE}FILES+= d_hexdump_oflag_b.out -${PACKAGE}FILES+= d_hexdump_oflag_c.out +${PACKAGE}FILES+= d_hexdump_oflag_a_el.out +${PACKAGE}FILES+= d_hexdump_oflag_b_el.out +${PACKAGE}FILES+= d_hexdump_oflag_c_el.out +${PACKAGE}FILES+= d_hexdump_oflag_a_eb.out +${PACKAGE}FILES+= d_hexdump_oflag_b_eb.out +${PACKAGE}FILES+= d_hexdump_oflag_c_eb.out ${PACKAGE}FILES+= d_hexdump_sflag_a.out ${PACKAGE}FILES+= d_hexdump_UCflag_a.out ${PACKAGE}FILES+= d_hexdump_UCflag_b.out ${PACKAGE}FILES+= d_hexdump_UCflag_c.out -${PACKAGE}FILES+= d_hexdump_xflag_a.out -${PACKAGE}FILES+= d_hexdump_xflag_b.out -${PACKAGE}FILES+= d_hexdump_xflag_c.out +${PACKAGE}FILES+= d_hexdump_xflag_a_el.out +${PACKAGE}FILES+= d_hexdump_xflag_b_el.out +${PACKAGE}FILES+= d_hexdump_xflag_c_el.out +${PACKAGE}FILES+= d_hexdump_xflag_a_eb.out +${PACKAGE}FILES+= d_hexdump_xflag_b_eb.out +${PACKAGE}FILES+= d_hexdump_xflag_c_eb.out ${PACKAGE}FILES+= d_od_cflag_a.out ${PACKAGE}FILES+= d_od_cflag_b.out .include Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 21605 29556 02560 +0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 25940 29811 00010 +0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_a_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 21608 25888 29045 26979 27424 25202 28535 28192 +0000010 26223 30752 27253 28016 25956 08303 30309 29216 +0000020 29800 25888 25196 30053 08296 28533 29541 02570 +0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 26708 08293 30065 25449 08299 29282 30575 08302 +0000010 28518 08312 30058 28781 25701 28448 25974 08306 +0000020 26740 08293 27746 25973 26656 30063 25971 02570 +0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_b_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 16705 16705 16705 16705 16705 16705 16705 16705 +* +0000020 16705 16705 16705 16650 +0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 16705 16705 16705 16705 16705 16705 16705 16705 +* +0000020 16705 16705 16705 02625 +0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_dflag_c_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 052145 071564 005000 +0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 062524 072163 000012 +0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_a_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 052150 062440 070565 064543 065440 061162 067567 067040 +0000010 063157 074040 065165 066560 062544 020157 073145 071040 +0000020 072150 062440 061154 072545 020150 067565 071545 005012 +0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 064124 020145 072561 061551 020153 071142 073557 020156 +0000010 067546 020170 072552 070155 062145 067440 062566 020162 +0000020 064164 020145 066142 062565 064040 072557 062563 005012 +0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_b_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 040501 040501 040501 040501 040501 040501 040501 040501 +* +0000020 040501 040501 040501 040412 +0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 040501 040501 040501 040501 040501 040501 040501 040501 +* +0000020 040501 040501 040501 005101 +0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_oflag_c_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 5465 7374 0a00 +0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out (revision 359290) @@ -0,0 +1,2 @@ +0000000 6554 7473 000a +0000005 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_a_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 5468 6520 7175 6963 6b20 6272 6f77 6e20 +0000010 666f 7820 6a75 6d70 6564 206f 7665 7220 +0000020 7468 6520 626c 7565 2068 6f75 7365 0a0a +0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 6854 2065 7571 6369 206b 7262 776f 206e +0000010 6f66 2078 756a 706d 6465 6f20 6576 2072 +0000020 6874 2065 6c62 6575 6820 756f 6573 0a0a +0000030 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_b_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 4141 4141 4141 4141 4141 4141 4141 4141 +* +0000020 4141 4141 4141 410a +0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_eb.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out =================================================================== --- stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out (nonexistent) +++ stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out (revision 359290) @@ -0,0 +1,4 @@ +0000000 4141 4141 4141 4141 4141 4141 4141 4141 +* +0000020 4141 4141 4141 0a41 +0000028 Property changes on: stable/12/usr.bin/hexdump/tests/d_hexdump_xflag_c_el.out ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +d_hexdump_bflag_a.out \ No newline at end of property Index: stable/12/usr.bin/hexdump/tests/hexdump_test.sh =================================================================== --- stable/12/usr.bin/hexdump/tests/hexdump_test.sh (revision 359289) +++ stable/12/usr.bin/hexdump/tests/hexdump_test.sh (revision 359290) @@ -1,191 +1,197 @@ # # SPDX-License-Identifier: BSD-2-Clause-FreeBSD # # Copyright (c) 2017 Kyle Evans # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # $FreeBSD$ +ENDIAN=el +ret=$(echo I | tr -d "[:space:]" | od -to2 | head -n1 | awk '{print $2}' | cut -c6) +if [ "$ret" = "0" ]; then + ENDIAN=eb +fi + atf_test_case b_flag b_flag_head() { atf_set "descr" "Verify -b output" } b_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_a.out" \ hexdump -b "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_b.out" \ hexdump -b "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_c.out" \ hexdump -b "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case c_flag c_flag_head() { atf_set "descr" "Verify -c output" } c_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_a.out" \ hexdump -c "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_b.out" \ hexdump -c "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_c.out" \ hexdump -c "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case C_flag C_flag_head() { atf_set "descr" "Verify -C output" } C_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_a.out" \ hexdump -C "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_b.out" \ hexdump -C "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_c.out" \ hexdump -C "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case hd_name hd_name_head() { atf_set "descr" "Verify hd output matching -C output" } hd_name_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_a.out" \ hd "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_b.out" \ hd "$(atf_get_srcdir)/d_hexdump_b.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_c.out" \ hd "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case d_flag d_flag_head() { atf_set "descr" "Verify -d output" } d_flag_body() { - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_a.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_a_$ENDIAN.out" \ hexdump -d "$(atf_get_srcdir)/d_hexdump_a.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_b.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_b_$ENDIAN.out" \ hexdump -d "$(atf_get_srcdir)/d_hexdump_b.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_c.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_dflag_c_$ENDIAN.out" \ hexdump -d "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case n_flag n_flag_head() { atf_set "descr" "Check -n functionality" } n_flag_body() { atf_check -o empty hexdump -bn 0 "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o file:"$(atf_get_srcdir)/d_hexdump_nflag_a.out" \ hexdump -bn 1 "$(atf_get_srcdir)/d_hexdump_a.in" } atf_test_case o_flag o_flag_head() { atf_set "descr" "Verify -o output" } o_flag_body() { - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_a.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_a_$ENDIAN.out" \ hexdump -o "$(atf_get_srcdir)/d_hexdump_a.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_b.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_b_$ENDIAN.out" \ hexdump -o "$(atf_get_srcdir)/d_hexdump_b.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_c.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_oflag_c_$ENDIAN.out" \ hexdump -o "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case s_flag s_flag_head() { atf_set "descr" "Verify -s output" } s_flag_body() { atf_check -o file:"$(atf_get_srcdir)/d_hexdump_sflag_a.out" \ hexdump -bs 4 "$(atf_get_srcdir)/d_hexdump_a.in" atf_check -o not-empty hexdump -n 100 -s 1024 /dev/random } atf_test_case v_flag v_flag_head() { atf_set "descr" "Verify -v functionality" } v_flag_body() { for i in $(seq 0 7); do atf_check -o match:"^\*$" \ hexdump -s ${i} "$(atf_get_srcdir)/d_hexdump_c.in" atf_check -o not-match:"^\*$" \ hexdump -vs ${i} "$(atf_get_srcdir)/d_hexdump_c.in" done atf_check -o not-match:"^\*$" \ hexdump -s 8 "$(atf_get_srcdir)/d_hexdump_c.in" atf_check -o not-match:"^\*$" \ hexdump -vs 8 "$(atf_get_srcdir)/d_hexdump_c.in" } atf_test_case x_flag x_flag_head() { atf_set "descr" "Verify -x output" } x_flag_body() { - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_a.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_a_$ENDIAN.out" \ hexdump -x "$(atf_get_srcdir)/d_hexdump_a.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_b.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_b_$ENDIAN.out" \ hexdump -x "$(atf_get_srcdir)/d_hexdump_b.in" - atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_c.out" \ + atf_check -o file:"$(atf_get_srcdir)/d_hexdump_xflag_c_$ENDIAN.out" \ hexdump -x "$(atf_get_srcdir)/d_hexdump_c.in" } atf_init_test_cases() { atf_add_test_case b_flag atf_add_test_case c_flag atf_add_test_case C_flag atf_add_test_case hd_name atf_add_test_case d_flag atf_add_test_case n_flag atf_add_test_case o_flag atf_add_test_case s_flag atf_add_test_case v_flag atf_add_test_case x_flag } Index: stable/12 =================================================================== --- stable/12 (revision 359289) +++ stable/12 (revision 359290) Property changes on: stable/12 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r358553