File: runtests.sh

package info (click to toggle)
libsmbios 2.0.3.dfsg-1.1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 3,768 kB
  • ctags: 2,016
  • sloc: cpp: 14,292; sh: 9,408; xml: 3,820; makefile: 454; ansic: 402; python: 157
file content (22 lines) | stat: -rwxr-xr-x 621 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

#set -x
set -e

DIR=$(cd $(dirname $0); pwd)
TMPDIR=$(mktemp -d  /tmp/unittest-$$-$RANDOM-XXXXXX)
trap "rm -rf $TMPDIR" EXIT QUIT HUP TERM INT

echo -e "\n\nRunning test for RBU"
cppunit/testRbu        $DIR/cppunit $TMPDIR rbu        $DIR/platform/rbu

echo -e "\n\nRunning Standalone tests."
cppunit/testStandalone $DIR/cppunit $TMPDIR standalone $DIR/platform/opti

for i in $DIR/platform/opti ${UNIT_TEST_DATA_DIR}/platform/*; do
    [ -e $i/autotest_flag ] || continue
    echo -e "\n\nRunning test for $i"
    cppunit/testPlatform   $DIR/cppunit $TMPDIR $(basename $i) $i
    [ $? -eq 0 ] || exit 1
done