~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to testsuite/xxd.tests

  • Committer: Denys Vlasenko
  • Author(s): Roger Knecht
  • Date: 2022-06-30 15:18:12 UTC
  • Revision ID: git-v1:20a4f70ecaad79bb932af09b7317a058872cd867
tree: new applet

Adds the tree program to list directories and files in a tree structure.

function                                             old     new   delta
tree_print                                             -     343    +343
scandir64                                              -     330    +330
scandir                                                -     330    +330
tree_main                                              -      86     +86
.rodata                                           105150  105228     +78
packed_usage                                       34511   34557     +46
alphasort64                                            -      31     +31
alphasort                                              -      31     +31
strcoll                                                -       5      +5
applet_names                                        2801    2806      +5
applet_main                                         1616    1620      +4
applet_suid                                          101     102      +1
applet_install_loc                                   202     203      +1
------------------------------------------------------------------------------
(add/remove: 11/0 grow/shrink: 6/0 up/down: 1291/0)          Total: 1291 bytes

Signed-off-by: Roger Knecht <rknecht@pm.me>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        '' \
38
38
        '30313233343536373736353433323130 30313233343536373736353433323130'
39
39
 
40
 
testing 'xxd -r skips leading whitespace and truncates at two spaces' \
41
 
        'xxd -r' \
42
 
        '0123456789:;<=>?@' \
43
 
        '' "\
44
 
   00000000: 3031 3233 3435 3637 3839 3a3b 3c3d 3e3f  0123456789:;<=>?
45
 
        00000010: 40                                       @
46
 
"
47
 
 
48
 
testing 'xxd -p -r skips one bad char, truncates at two bad chars' \
49
 
        'xxd -p -r' \
50
 
        '01' \
51
 
        '' "\
52
 
30 !31 !!32
53
 
"
54
 
 
55
 
testing 'xxd -p -r ignores the nibble with 2nd char bad' \
56
 
        'xxd -p -r' \
57
 
        '3C6' \
58
 
        '' "\
59
 
33 3!4 3!!5
60
 
36
61
 
"
62
 
 
63
40
exit $FAILCOUNT