Commit 7d213ecc by Arnaud Charlet Committed by Arnaud Charlet

run_all.sh: Redirect mv output to /dev/null Avoid non pure sh syntax.

	* ada/acats/run_all.sh: Redirect mv output to /dev/null
	Avoid non pure sh syntax. Add more logging.

	* ada/acats/norun.lst: Disable cdd2a03, since it is expected to
	fail.

From-SVN: r73052
parent 9fcc6bf6
2003-10-29 Arnaud Charlet <charlet@act-europe.fr> 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
* ada/acats/run_all.sh: Redirect mv output to /dev/null * ada/acats/run_all.sh: Redirect mv output to /dev/null
Avoid non pure sh syntax. Add more logging.
* ada/acats/norun.lst: Disable cdd2a03, since it is expected to
fail.
2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
......
cdd2a03
templat templat
# Tests must be sorted in alphabetical order # Tests must be sorted in alphabetical order
# cdd2a03: new Ada ruling not supported yet.
...@@ -76,7 +76,7 @@ rm -rf $dir/support ...@@ -76,7 +76,7 @@ rm -rf $dir/support
mkdir -p $dir/support mkdir -p $dir/support
cd $dir/support cd $dir/support
cp $testdir/support/{*.ada,*.a,*.tst} $dir/support cp $testdir/support/*.ada $testdir/support/*.a $testdir/support/*.tst $dir/support
sed -e "s,ACATS4GNATDIR,$dir,g" \ sed -e "s,ACATS4GNATDIR,$dir,g" \
< $testdir/support/impdef.a > $dir/support/impdef.a < $testdir/support/impdef.a > $dir/support/impdef.a
...@@ -95,14 +95,14 @@ mkdir -p $dir/run ...@@ -95,14 +95,14 @@ mkdir -p $dir/run
cp -pr $testdir/tests $dir/ cp -pr $testdir/tests $dir/
for i in $dir/support/{*.ada,*.a}; do for i in $dir/support/*.ada $dir/support/*.a; do
gnatchop $i > /dev/null 2>&1 gnatchop $i >> $dir/acats.log 2>&1
done done
# These tools are used to preprocess some ACATS sources # These tools are used to preprocess some ACATS sources
# they need to be compiled native on the host. # they need to be compiled native on the host.
host_gnatmake -q -gnatws macrosub host_gnatmake -q -gnatws macrosub.adb
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
display "**** Failed to compile macrosub" display "**** Failed to compile macrosub"
exit 1 exit 1
...@@ -110,14 +110,17 @@ fi ...@@ -110,14 +110,17 @@ fi
./macrosub > macrosub.out 2>&1 ./macrosub > macrosub.out 2>&1
host_gcc -c cd300051.c host_gcc -c cd300051.c
host_gnatmake -q -gnatws widechr host_gnatmake -q -gnatws widechr.adb
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
display "**** Failed to compile widechr" display "**** Failed to compile widechr"
exit 1 exit 1
fi fi
./widechr > widechr.out 2>&1 ./widechr > widechr.out 2>&1
rm -f $dir/support/{macrosub,widechr,*.ali,*.o} rm -f $dir/support/macrosub
rm -f $dir/support/widechr
rm -f $dir/support/*.ali
rm -f $dir/support/*.o
display " done." display " done."
...@@ -131,7 +134,7 @@ if [ $? -ne 0 ]; then ...@@ -131,7 +134,7 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
gnatchop *.adt > gnatchop.out 2>&1 gnatchop *.adt >> $dir/acats.log 2>&1
target_gnatmake -c -gnato -gnatE *.ads > /dev/null 2>&1 target_gnatmake -c -gnato -gnatE *.ads > /dev/null 2>&1
target_gnatmake -c -gnato -gnatE *.adb target_gnatmake -c -gnato -gnatE *.adb
...@@ -159,7 +162,7 @@ for chapter in $chapters; do ...@@ -159,7 +162,7 @@ for chapter in $chapters; do
fi fi
cd $dir/tests/$chapter cd $dir/tests/$chapter
ls *.{a,ada,adt,am,dep} 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \ ls *.a *.ada *.adt *.am *.dep 2> /dev/null | sed -e 's/\(.*\)\..*/\1/g' | \
cut -c1-7 | sort | uniq | comm -23 - $testdir/norun.lst \ cut -c1-7 | sort | uniq | comm -23 - $testdir/norun.lst \
> $dir/tests/$chapter/${chapter}.lst > $dir/tests/$chapter/${chapter}.lst
countn=`wc -l < $dir/tests/$chapter/${chapter}.lst` countn=`wc -l < $dir/tests/$chapter/${chapter}.lst`
...@@ -176,9 +179,10 @@ for chapter in $chapters; do ...@@ -176,9 +179,10 @@ for chapter in $chapters; do
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
extraflags="$extraflags -gnatE" extraflags="$extraflags -gnatE"
fi fi
mkdir $dir/tests/$chapter/$i test=$dir/tests/$chapter/$i
cd $dir/tests/$chapter/$i mkdir $test
gnatchop -c -w `ls $dir/tests/${chapter}/${i}*.{a,ada,adt,am,dep} 2> /dev/null` > /dev/null 2>&1 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}?.adb > ${i}.lst 2> /dev/null
ls ${i}*m.adb >> ${i}.lst 2> /dev/null ls ${i}*m.adb >> ${i}.lst 2> /dev/null
ls ${i}.adb >> ${i}.lst 2> /dev/null ls ${i}.adb >> ${i}.lst 2> /dev/null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment