summaryrefslogtreecommitdiffstats
path: root/sanity/system_light/scripts/bonnie_test.sh
blob: 70bc2bde6b75f459cd3c15f32aa2b5493b81690b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

function main()
{
    echo "start:`date +%T`" >>$LOG_FILE
    time bonnie++ -u $USER_NAME -d $WD 2>&1 1>>$LOG_FILE 1>>/tmp/bonnie  #creates files of double the ram size and tests the performance


    if [ $? -ne 0 ]; then
	echo "end:`date +%T`" >>$LOG_FILE
	return 11;
    else
	echo "end:`date +%T`" >>$LOG_FILE
	return 0;
    fi
}

main "$@"