Changeset 1c79996 in mainline for uspace/dist/src/bithenge/test.sh


Ignore:
Timestamp:
2012-08-18T23:20:48Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a42d7d8
Parents:
1f9c9a4
Message:

Bithenge: fix issues and expand coverage for test.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/bithenge/test.sh

    r1f9c9a4 r1c79996  
    1212fi
    1313
     14test_file() {
     15        echo "Testing $1 on $2..."
     16        ${BITHENGE} $1 $2 2>&1|diff $3 -
     17}
     18
    1419for BH in *.bh
    1520do
     
    1924                [ -e ${DAT} ] || continue
    2025                [ -e ${OUT} ] || continue
    21                 echo "Testing ${BH} on ${DAT}..."
    22                 ${BITHENGE} ${BH} ${DAT} 2>&1|diff ${OUT} -
     26                test_file ${BH} ${DAT} ${OUT}
    2327        done
    2428done
    2529
     30test_file trip.bh file:trip.dat trip.out
     31test_file repeat.bh hex:7f07020305070b0D11020004000800102040010101040009 repeat.out
     32
    2633echo "Done!"
Note: See TracChangeset for help on using the changeset viewer.