OpenCores
URL https://opencores.org/ocsvn/amber/amber/trunk

Subversion Repositories amber

[/] [amber/] [trunk/] [hw/] [tools/] [set_timeout.sh] - Diff between revs 15 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 15 Rev 56
Line 44... Line 44...
TOFILE=../tests/timeouts.txt
TOFILE=../tests/timeouts.txt
TEST=$1
TEST=$1
TICKS=$2
TICKS=$2
 
 
# is test already in list ?
# is test already in list ?
 
if [ -e $TOFILE ]; then
egrep "^${TEST} " $TOFILE > /dev/null
egrep "^${TEST} " $TOFILE > /dev/null
TEST_LISTED=$?
TEST_LISTED=$?
 
 
# If the test is already in the list
# If the test is already in the list
if [ $TEST_LISTED == 0 ]; then
if [ $TEST_LISTED == 0 ]; then
    egrep -v "^${TEST} " $TOFILE > ${TOFILE}1
    egrep -v "^${TEST} " $TOFILE > ${TOFILE}1
    mv ${TOFILE}1 $TOFILE
    mv ${TOFILE}1 $TOFILE
fi
fi
 
else
 
    echo "Creating $TOFILE"
 
fi
echo "${TEST} ${TICKS}" >> ${TOFILE}
echo "${TEST} ${TICKS}" >> ${TOFILE}
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.