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

function main ()
{
    echo "start:`date +%T`" 
    time dd if=/dev/zero of=$PWD/$OF bs=$BS_SIZE count=$DD_CNT 2>>$LOG_FILE #copies specified amount of data from the input file to the output file


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

}

main "$@";