Home | History | Annotate | Download | only in strace_test
      1 #!/bin/bash
      2 
      3 # Copyright (C) 2004 Dan Carpenter
      4 # This software is released under the terms of the GPL
      5 
      6 test_percent=20
      7 [[ $1 == "" ]] || test_percent=$1
      8 
      9 while true ; do
     10 	RAND=$((RANDOM%$(cat test_list.txt | wc -l)))
     11 	test=`cat test_list.txt | head -n $(($RAND + 1)) | tail -n 1`
     12 	[ -f $test ] && ./strace -P $test_percent $test
     13 	#[ -f $test ] && $test
     14 done
     15