This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: How to use Dejagnu for gcc-3.0?
- From: Ritu Sabharwal <ritu at csa dot iisc dot ernet dot in>
- To: "Naveen Sharma, Noida" <naveens at noida dot hcltech dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 12 Oct 2002 16:48:33 +0530 (IST)
- Subject: RE: How to use Dejagnu for gcc-3.0?
We have RUNTEST set like this in Makefile and also runtest is set in
PATH.We tried using make check to test the testcase but it gave the
following output.
--------------------------------------------------------------------------
make check-gcc RUNTESTFLAGS="dg.exp=loop-1.c"
OUTPUT->
make[1]: Entering directory `/home/deepakbn/pr_papers/gcc-3.0/objdir/gcc'
(rootme=`pwd`; export rootme; \
srcdir=`cd ../../gcc; pwd` ; export srcdir ;\
cd testsuite; \
EXPECT=expect ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then \
TCL_LIBRARY=`cd .. ; cd ../../gcc/../tcl/library ; pwd` ; \
export TCL_LIBRARY ; fi ; \
runtest --tool gcc dg.exp=loop-1.c)
WARNING: Couldn't find the global config file.
Test Run By deepakbn on Sat Oct 12 13:40:26 2002
Native configuration is ia64-unknown-linux-gnu
=== gcc tests ===
Schedule of variations:
unix
Running target unix
Using /home/deepakbn/pr_papers/gcc-3.0/share/dejagnu/baseboards/unix.exp
as board description file for target.
Using /home/deepakbn/pr_papers/gcc-3.0/share/dejagnu/config/unix.exp as
generic interface file for target.
Using /home/deepakbn/pr_papers/gcc-3.0/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /home/deepakbn/pr_papers/gcc-3.0/gcc/testsuite/gcc.dg/dg.exp ...
FAIL: gcc.dg/loop-1.c (test for excess errors)
=== gcc Summary ===
# of unexpected failures 1
/home/deepakbn/pr_papers/gcc-3.0/objdir/gcc/xgcc version 3.0
-----------------------------------------------------------------
What is the problem,the loop-1.c file is a simple file ,also we have done
all the things for dejagnu and gcc-3.0 installation. Now what is the
problem,why is it showing FAIL status.something more is to be done or the
way in which we are checking is wrong.
regards,
Ritu.
On Sat, 12 Oct 2002, Naveen Sharma, Noida wrote:
> > We have already installed gcc-3.0 but installed dejagnu later.
> > now we have problem of accessing runtest as gcc3.0 was
> > installed first..
> >
> > make check is not able to use runtest in the dejagnu1.4.3/bin
> > it is searching in srcdir/dejagnu/runtest
> >
> > then how to solve this problem...
>
> This shouldn't be problem if runtest is in your PATH environment variable.
> This is how it is set in Makefile
>
> RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
> then echo $$s/dejagnu/runtest ; \
> else echo runtest ; fi`
>
> Does that solve your problem.
>
> Naveen.
>