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/sort.tests

    r1765 r2725  
    1 #!/bin/bash
     1#!/bin/sh
    22
    33# SUSv3 compliant sort 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
    7 . testing.sh
     7. ./testing.sh
    88
    99# The basic tests.  These should work even with the small busybox.
     
    2828"
    2929
     30# testing "description" "command(s)" "result" "infile" "stdin"
     31
    3032# Sorting with keys
    3133
     
    4648" "$data" ""
    4749
    48 # Busybox is definitely doing this one wrong just now.  FIXME
    49 
     50test x"$SKIP_KNOWN_BUGS" = x"" && {
     51# Busybox is definitely doing these wrong.  FIXME
    5052testing "sort key range with numeric option and global reverse" \
    5153"sort -k2,3n -r input" \
     
    5759" "$data" ""
    5860
    59 #
    60 
    6161testing "sort key range with multiple options" "sort -k2,3rn input" \
    6262"7  3   42  soup
     
    6666egg 1   2   papyrus
    6767" "$data" ""
     68}
    6869
    6970testing "sort key range with two -k options" "sort -k 2,2n -k 1,1r input" "\
     
    108109" ""
    109110
     111testing "sort -z outputs NUL terminated lines" "sort -z input" "\
     112one\0three\0two\0\
     113" "\
     114one\0two\0three\0\
     115" ""
     116
    110117testing "sort key doesn't strip leading blanks, disables fallback global sort" \
    111118"sort -n -k2 -t ' '" " a \n 1 \n 2 \n" "" " 2 \n 1 \n a \n"
    112119
     120testing "sort file in place" \
     121"sort -o input input && cat input" "\
     122111
     123222
     124" "\
     125222
     126111
     127" ""
     128
     129# testing "description" "command(s)" "result" "infile" "stdin"
     130
    113131exit $FAILCOUNT
Note: See TracChangeset for help on using the changeset viewer.