1#!/bin/bash
2
3# Copyright (C) 2004 Dan Carpenter
4# This software is released under the terms of the GPL
5
6test_percent=20
7[[ $1 == "" ]] || test_percent=$1
8
9while 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
14done
15