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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [contrib/] [reghunt/] [bin/] [gcc-test-wrong-code] - Blame information for rev 294

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 265 jeremybenn
#! /bin/sh
2
 
3
# Test a "wrong-code" GCC bug, using environment variables set in
4
# several reghunt scripts and configuration files.
5
#
6
# Copyright (C) 2007 Free Software Foundation.
7
#
8
# This file is free software; you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation; either version 3 of the License, or
11
# (at your option) any later version.
12
#
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
# GNU General Public License for more details.
17
#
18
# For a copy of the GNU General Public License, write the the
19
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
# Boston, MA 02111-1301, USA.
21
 
22
ID=$1
23
 
24
LOGID=`printf "%04d" ${ID}`
25
LOG=${BUGID}.${LOGID}.out
26
MSGID="bug ${BUGID}, id ${ID}"
27
 
28
$REG_TEST_COMPILER $REG_OPTS $REG_TESTCASE > ${LOG} 2>&1
29
 
30
if [ $? -ne 0 ]; then
31
    echo "`date`  unexpected failure: test compilation failed for ${MSGID}"
32
    exit $REG_ERROR
33
fi
34
 
35
./a.out >> ${LOG} 2>&1
36
if [ $? -ne 0 ]; then
37
    echo "`date`  test run aborted for ${MSGID}"
38
    exit $REG_FAIL
39
fi
40
 
41
echo "`date`  test ran successfully for ${MSGID}"
42
exit $REG_PASS

powered by: WebSVN 2.1.0

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