Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (16 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/testsuite/sed.tests

    r902 r1765  
    117117    "woo" "woo"
    118118testing "sed empty file plus cat" "sed -e 's/nohit//' input -" "one\ntwo" \
    119     "" "one\ntwo" 
     119    "" "one\ntwo"
    120120testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \
    121121    "one\ntwo" ""
     
    139139testing "sed clusternewline" \
    140140    "sed -e '/one/a 111' -e '/two/i 222' -e p input -" \
    141     "one\none\n111\n222\ntwo\ntwo" "one" "two"
     141    "one\none\n111\n222\ntwo\ntwo" "one" "two"
     142testing "sed subst+write" \
     143    "sed -e 's/i/z/' -e 'woutputw' input -; echo -n X; cat outputw" \
     144    "thzngy\nagaznXthzngy\nagazn" "thingy" "again"
     145rm outputw
     146testing "sed trailing NUL" \
     147    "sed 's/i/z/' input -" \
     148    "a\0b\0\nc" "a\0b\0" "c"
     149testing "sed escaped newline in command" \
     150    "sed 's/a/z\\
     151z/' input" \
     152    "z\nz" "a" ""
    142153
    143154# Test end-of-file matching behavior
     
    147158testing "sed match EOF two files" "sed -e '"'$p'"' input -" \
    148159    "one\ntwo\nthree\nfour\nfour" "one\ntwo" "three\nfour"
     160# sed match EOF inline: gnu sed 4.1.5 outputs this:
     161#00000000  6f 6e 65 0a 6f 6f 6b 0a  6f 6f 6b 0a 74 77 6f 0a  |one.ook.ook.two.|
     162#00000010  0a 74 68 72 65 65 0a 6f  6f 6b 0a 6f 6f 6b 0a 66  |.three.ook.ook.f|
     163#00000020  6f 75 72                                          |our|
     164# which looks buggy to me.
    149165echo -ne "three\nfour" > input2
    150166testing "sed match EOF inline" \
Note: See TracChangeset for help on using the changeset viewer.