~ubuntu-branches/ubuntu/saucy/rheolef/saucy

« back to all changes in this revision

Viewing changes to skit/ptst/csr_io_tst.sh

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Saramito
  • Date: 2011-02-08 10:00:06 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208100006-jg8rarizvhdm8e82
Tags: 5.92-1
* New upstream release:
  - "rheolef" suffix added to all unix manuals (Closes: #607117)
  - minor source code fixes for g++-4.5 (Closes: #607184)
  - minor reference manual fix (Closes: #607038)
* debian/control: libboost-iostreams-dev dependency added, as required
  by the new upstream version.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
SRCDIR=${SRCDIR-"."} 
3
 
status=0 
4
 
L="asr_tst jgl009 bcspwr01"
5
 
for matrix in $L; do
6
 
    command="${RUN} ./csr_io_tst  < ${SRCDIR}/${matrix}${DD_EXT}.mtx.valid"
7
 
    echo "      $command"
8
 
    eval "$command 2>/dev/null | diff ${SRCDIR}/${matrix}${DD_EXT}.mtx.valid - >/dev/null"
9
 
    if test $? -ne 0; then status=1; echo "        => *NO*"; fi
10
 
done
11
 
 
12
 
i=5;
13
 
while test ${i} -ne 0; do
14
 
    command="echo | awk -v n=${i} -f ${SRCDIR}/gen_mtx.awk > dns-${i}.mtx"
15
 
    echo "      $command"
16
 
    eval $command
17
 
    command="${RUN} ./csr_io_tst  < dns-${i}.mtx"
18
 
    echo "      $command"
19
 
    eval "$command 2>/dev/null | diff dns-${i}.mtx - >/dev/null"
20
 
    if test $? -ne 0; then status=1; echo "        => *NO*"; fi
21
 
    command="rm -f dns-${i}.mtx"
22
 
    echo "      $command"
23
 
    eval $command
24
 
    i=`expr ${i} - 1`
25
 
done
26
 
exit $status