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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [insight/] [dejagnu/] [contrib/] [test-g++] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
#!/bin/sh
2
 
3
# Default DEVOSRCDIR
4
if [ "$DEVOSRCDIR" = "" ]; then
5
        DEVOSRCDIR=$HOME/devo ; export DEVOSRCDIR
6
fi
7
 
8
# Check DEVOSRCDIR
9
if [ ! -d "$DEVOSRCDIR" ]; then
10
        echo "$0: no directory $DEVOSRCDIR" >&2
11
        exit 2
12
fi
13
 
14
# Default DEVOBINDIR
15
if [ "$DEVOBINDIR" = "" ]; then
16
        CPU=`$DEVOSRCDIR/config.guess`
17
        if [ $? != 0 ]; then
18
                echo "$0: cannot run config.guess" >&2
19
                exit 2
20
        fi
21
        DEVOBINDIR=$HOME/$CPU ; export DEVOBINDIR
22
fi
23
 
24
# Check DEVOBINDIR
25
if [ ! -d "$DEVOBINDIR" ]; then
26
        echo "$0: no directory $DEVOBINDIR" >&2
27
        exit 2
28
fi
29
 
30
# Default LOGDIR
31
if [ "$LOGDIR" = "" ]; then
32
        LOGDIR=$HOME/logs ; export LOGDIR
33
fi
34
 
35
# Check LOGDIR
36
if [ ! -d "$LOGDIR" ]; then
37
        echo "$0: no directory $LOGDIR" >&2
38
        exit 2
39
fi
40
 
41
cd $LOGDIR || exit 2
42
 
43
sum=g++-`date '+%y%m%d'`
44
 
45
$DEVOSRCDIR/dejagnu/contrib/test-tool g++ > $sum 2>&1
46
status=$?
47
 
48
if [ -d $DEVOBINDIR/libg++ ]; then
49
 
50
cd $DEVOBINDIR/libg++
51
make check >/tmp/clgpp$$ 2>&1
52
if [ $? != 0 ]; then
53
        cd $LOGDIR
54
        echo "" >> $sum
55
        echo "libg++ fails to make check:" >> $sum
56
        tail -20 /tmp/clgpp$$ >> $sum
57
        if [ $status = 0 ]; then
58
                status=1
59
        fi
60
fi
61
 
62
# libg++?
63
fi
64
 
65
cd $DEVOBINDIR/libio
66
make check >/tmp/clgpp$$ 2>&1
67
if [ $? != 0 ]; then
68
        cd $LOGDIR
69
        echo "" >> $sum
70
        echo "libio fails to make check:" >> $sum
71
        tail -20 /tmp/clgpp$$ >> $sum
72
        if [ $status = 0 ]; then
73
                status=1
74
        fi
75
fi
76
 
77
cd $DEVOBINDIR/libstdc++
78
make check >/tmp/clgpp$$ 2>&1
79
if [ $? != 0 ]; then
80
        cd $LOGDIR
81
        echo "" >> $sum
82
        echo "libstdc++ fails to make check:" >> $sum
83
        tail -20 /tmp/clgpp$$ >> $sum
84
        if [ $status = 0 ]; then
85
                status=1
86
        fi
87
fi
88
 
89
exit $status

powered by: WebSVN 2.1.0

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