Re: [PATCH v3 13/14] tracing/selftest: Add selftests to test trace_marker histogram triggers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Steve,

On Fri, 25 May 2018 17:13:53 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Fri, 25 May 2018 17:12:29 -0400
> Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> 
>  
> > #!/bin/sh
> 
> Hmm, I think I need to make this #!/bin/bash
> 
> > test_trace() {
> >     file=$1
> >     x=$2
> > 
> >     cat $file | while read line; do
> > 	if [ "$line" != "${line/\#/}" ]; then
> > 	    continue
> > 	fi
> > 	echo "testing $line for >$x<"
> > 	if [ "$line" == "${line/>$x</}" ]; then
> 
> The ${line/>$x</} is unique to bash I believe.

Hmm, could you try to use only posix-shell based test ?
Since I would like to keep this can run on small 
environment, like busybox, etc.

Thank you,

> 
> -- Steve
> 
> > 	    fail "$line does not have >$x< in it"
> > 	fi
> > 	let x=$x+2
> >     done
> > }
> > 


-- 
Masami Hiramatsu <mhiramat@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux