Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/testing.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 36  Line 36 
36  export FAILCOUNT=0  export FAILCOUNT=0
37  export SKIP=  export SKIP=
38    
39    # Helper for helpers. Oh my...
40    
41    test x"$ECHO" != x"" || {
42     ECHO="echo"
43     test x"`echo -ne`" = x"" || {
44     # Compile and use a replacement 'echo' which understands -e -n
45     ECHO="$PWD/echo-ne"
46     test -x "$ECHO" || {
47     gcc -Os -o "$ECHO" ../scripts/echo.c || exit 1
48     }
49     }
50     export ECHO
51    }
52    
53  # Helper functions  # Helper functions
54    
55  optional()  optional()
# Line 73  testing() Line 87  testing()
87    
88    $ECHO -ne "$3" > expected    $ECHO -ne "$3" > expected
89    $ECHO -ne "$4" > input    $ECHO -ne "$4" > input
90    [ -z "$VERBOSE" ] || echo "echo '$5' | $2"    [ -z "$VERBOSE" ] || echo "echo -ne '$5' | $2"
91    $ECHO -ne "$5" | eval "$2" > actual    $ECHO -ne "$5" | eval "$2" > actual
92    RETVAL=$?    RETVAL=$?
93    

Legend:
Removed from v.983  
changed lines
  Added in v.984