aging test
2013/02/14
#!/bin/sh
#!/bin/sh
count=0
total=0
dir_count=0
date -s "2012-01-01 00:00:00"
df -h > /mnt/mysize
mkdir $count
cd $count
while [ 1 ]
do
mytime=`date +%Y%m%d%H%M`
dd if=/dev/urandom of=$mytime$count bs=8 count=1 > /dev/null 2>&1
echo $total
count=`expr $count + 1`
total=`expr $total + 1`
# sleep 1
if [[ $count -eq 100 ]] ;
then
cd ..
dir_count=`expr $dir_count + 1`
if [[ $dir_count -eq 40 ]];
then
dir_count=0
fi
rm -rf $dir_count
mkdir $dir_count
cd $dir_count
echo $total > /mnt/mylog
count=0
fi
memtotal=`df -h | grep "mtdblock4" | awk '{print $2}'`
# echo $memtotal
if [ $memtotal == "512.0K" ] ;
then;
# echo ok!!!
else
echo not ok!!!
exit;
fi
done
[t:/] is not "technology - root". dawnsea, rss