This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

committed: ada test suite updates


2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>

	* ada/acats/run_all.sh: Avoid non pure sh syntax. Add more logging.

	* ada/acats/norun.lst: Disable cdd2a03, since it is expected to
	fail.
--
Index: norun.lst
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/ada/acats/norun.lst,v
retrieving revision 1.1
diff -u -c -3 -p -r1.1 norun.lst
*** norun.lst	27 Oct 2003 11:28:49 -0000	1.1
--- norun.lst	29 Oct 2003 16:57:18 -0000
***************
*** 1,2 ****
--- 1,4 ----
+ cdd2a03
  templat
  # Tests must be sorted in alphabetical order
+ # cdd2a03: new Ada ruling not supported yet.
Index: run_all.sh
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/ada/acats/run_all.sh,v
retrieving revision 1.4
diff -u -c -3 -p -r1.4 run_all.sh
*** run_all.sh	29 Oct 2003 13:48:35 -0000	1.4
--- run_all.sh	29 Oct 2003 16:57:18 -0000
*************** rm -rf $dir/support
*** 76,82 ****
  mkdir -p $dir/support
  cd $dir/support
  
! cp $testdir/support/{*.ada,*.a,*.tst} $dir/support
  
  sed -e "s,ACATS4GNATDIR,$dir,g" \
    < $testdir/support/impdef.a > $dir/support/impdef.a
--- 76,82 ----
  mkdir -p $dir/support
  cd $dir/support
  
! cp $testdir/support/*.ada $testdir/support/*.a $testdir/support/*.tst $dir/support
  
  sed -e "s,ACATS4GNATDIR,$dir,g" \
    < $testdir/support/impdef.a > $dir/support/impdef.a
*************** mkdir -p $dir/run
*** 95,108 ****
  
  cp -pr $testdir/tests $dir/
  
! for i in $dir/support/{*.ada,*.a}; do 
!    gnatchop $i > /dev/null 2>&1
  done
  
  # These tools are used to preprocess some ACATS sources
  # they need to be compiled native on the host.
  
! host_gnatmake -q -gnatws macrosub
  if [ $? -ne 0 ]; then
     display "**** Failed to compile macrosub"
     exit 1
--- 95,108 ----
  
  cp -pr $testdir/tests $dir/
  
! for i in $dir/support/*.ada $dir/support/*.a; do 
!    gnatchop $i >> $dir/acats.log 2>&1
  done
  
  # These tools are used to preprocess some ACATS sources
  # they need to be compiled native on the host.
  
! host_gnatmake -q -gnatws macrosub.adb
  if [ $? -ne 0 ]; then
     display "**** Failed to compile macrosub"
     exit 1
*************** fi
*** 110,123 ****
  ./macrosub > macrosub.out 2>&1
  
  host_gcc -c cd300051.c
! host_gnatmake -q -gnatws widechr
  if [ $? -ne 0 ]; then
     display "**** Failed to compile widechr"
     exit 1
  fi
  ./widechr > widechr.out 2>&1
  
! rm -f $dir/support/{macrosub,widechr,*.ali,*.o}
  
  display " done."
  
--- 110,126 ----
  ./macrosub > macrosub.out 2>&1
  
  host_gcc -c cd300051.c
! host_gnatmake -q -gnatws widechr.adb
  if [ $? -ne 0 ]; then
     display "**** Failed to compile widechr"
     exit 1
  fi
  ./widechr > widechr.out 2>&1
  
! rm -f $dir/support/macrosub
! rm -f $dir/support/widechr
! rm -f $dir/support/*.ali
! rm -f $dir/support/*.o
  
  display " done."
  
*************** if [ $? -ne 0 ]; then
*** 131,137 ****
     exit 1
  fi
  
! gnatchop *.adt > gnatchop.out 2>&1
  
  target_gnatmake -c -gnato -gnatE *.ads > /dev/null 2>&1
  target_gnatmake -c -gnato -gnatE *.adb
--- 134,140 ----
     exit 1
  fi
  
! gnatchop *.adt >> $dir/acats.log 2>&1
  
  target_gnatmake -c -gnato -gnatE *.ads > /dev/null 2>&1
  target_gnatmake -c -gnato -gnatE *.adb
*************** for chapter in $chapters; do
*** 159,165 ****
     fi
  
     cd $dir/tests/$chapter
!    ls *.{a,ada,adt,am,dep} 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
     cut -c1-7 | sort | uniq | comm -23 - $testdir/norun.lst \
       > $dir/tests/$chapter/${chapter}.lst 
     countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
--- 162,168 ----
     fi
  
     cd $dir/tests/$chapter
!    ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
     cut -c1-7 | sort | uniq | comm -23 - $testdir/norun.lst \
       > $dir/tests/$chapter/${chapter}.lst 
     countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
*************** for chapter in $chapters; do
*** 176,184 ****
        if [ $? -eq 0 ]; then
           extraflags="$extraflags -gnatE"
        fi
!       mkdir $dir/tests/$chapter/$i
!       cd $dir/tests/$chapter/$i
!       gnatchop -c -w `ls $dir/tests/${chapter}/${i}*.{a,ada,adt,am,dep} 2> /dev/null` > /dev/null 2>&1
        ls ${i}?.adb > ${i}.lst 2> /dev/null
        ls ${i}*m.adb >> ${i}.lst 2> /dev/null
        ls ${i}.adb >> ${i}.lst 2> /dev/null
--- 179,188 ----
        if [ $? -eq 0 ]; then
           extraflags="$extraflags -gnatE"
        fi
!       test=$dir/tests/$chapter/$i
!       mkdir $test
!       cd $test
!       gnatchop -c -w `ls ${test}*.a ${test}*.ada ${test}*.adt ${test}*.am ${test}*.dep 2> /dev/null` >> $dir/acats.log 2>&1
        ls ${i}?.adb > ${i}.lst 2> /dev/null
        ls ${i}*m.adb >> ${i}.lst 2> /dev/null
        ls ${i}.adb >> ${i}.lst 2> /dev/null


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]