From: Joel Rosdahl Date: Sat, 14 Aug 2010 19:56:57 +0000 (+0200) Subject: test: Avoid using "echo -n" for portability reasons X-Git-Tag: v3.1~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3550e0a15e03db122ee5f31f8b71cc97d41fb29;p=thirdparty%2Fccache.git test: Avoid using "echo -n" for portability reasons --- diff --git a/test.sh b/test.sh index da521d692..e3594e40f 100755 --- a/test.sh +++ b/test.sh @@ -398,10 +398,16 @@ EOF CCACHE_COMPILERCHECK="echo ./compiler.sh" $CCACHE ./compiler.sh -c test1.c checkstat 'cache hit (preprocessed)' 1 checkstat 'cache miss' 1 - CCACHE_COMPILERCHECK='echo bar' $CCACHE ./compiler.sh -c test1.c + cat <foobar.sh +#!/bin/sh +echo foo +echo bar +EOF + chmod +x foobar.sh + CCACHE_COMPILERCHECK='./foobar.sh' $CCACHE ./compiler.sh -c test1.c checkstat 'cache hit (preprocessed)' 1 checkstat 'cache miss' 2 - CCACHE_COMPILERCHECK='echo -n b; echo ar' $CCACHE ./compiler.sh -c test1.c + CCACHE_COMPILERCHECK='echo foo; echo bar' $CCACHE ./compiler.sh -c test1.c checkstat 'cache hit (preprocessed)' 2 checkstat 'cache miss' 2