Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/testsuite/uniq.tests

    r1765 r2725  
    33# SUSv3 compliant uniq tests.
    44# Copyright 2005 by Rob Landley <rob@landley.net>
    5 # Licensed under GPL v2, see file LICENSE for details.
     5# Licensed under GPLv2, see file LICENSE in this source tree.
    66
    77# AUDIT: Full SUSv3 coverage (except internationalization).
    88
    9 . testing.sh
     9. ./testing.sh
    1010
    1111# testing "test name" "options" "expected result" "file input" "stdin"
     
    4242#-d dups only
    4343#-u
     44#-w max chars
    4445
    4546# Test various command line options
     
    5051    "1 one\n2 two\n3 three\n" "" \
    5152    "one\ntwo\ntwo\nthree\nthree\nthree\n"
    52 testing "uniq -d (dups only) " "uniq -d" "two\nthree\n" "" \
     53testing "uniq -d (dups only)" "uniq -d" "two\nthree\n" "" \
    5354    "one\ntwo\ntwo\nthree\nthree\nthree\n"
    5455
     
    6162aa  bb  cc9
    6263"
     64testing "uniq -w (compare max characters)" "uniq -w 2" \
     65"cc1
     66" "" \
     67"cc1
     68cc2
     69cc3
     70"
     71
     72testing "uniq -s -w (skip fields and compare max chars)" \
     73"uniq -s 2 -w 2" \
     74"aaccaa
     75" "" \
     76"aaccaa
     77aaccbb
     78bbccaa
     79"
    6380
    6481# -d is "Suppress the writing fo lines that are not repeated in the input."
Note: See TracChangeset for help on using the changeset viewer.