source:
trunk/packages/xen-3.1/xen-3.1/tools/libaio/harness/runtests.sh
@
34
| Last change on this file since 34 was 34, checked in by hartmans, 18 years ago | |
|---|---|
| File size: 389 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | passes=0 |
| 4 | fails=0 |
| 5 | |
| 6 | echo "Test run starting at" `date` |
| 7 | |
| 8 | while [ $# -ge 1 ] ; do |
| 9 | this_test=$1 |
| 10 | shift |
| 11 | echo "Starting $this_test" |
| 12 | $this_test 2>&1 |
| 13 | res=$? |
| 14 | if [ $res -eq 0 ] ; then str="" ; passes=$[passes + 1] ; else str=" -- FAILED" ; fails=$[fails + 1] ; fi |
| 15 | echo "Completed $this_test with $res$str". |
| 16 | done |
| 17 | |
| 18 | echo "Pass: $passes Fail: $fails" |
| 19 | echo "Test run complete at" `date` |
Note: See TracBrowser
for help on using the repository browser.
