+2001-05-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * mkcheck.in (setup_size_command): Use Berkeley "-B" mode with GNU
+ size. Add hpux case for HP size.
+
2001-05-11 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/*/*.cc: Remove spaces, make sure testcases return zero.
### flags and whatnot, we can take out all those things and source
### that file from here. (Write that file with this in mind...)
-### XXX Note that breaking out of this with ^C will not work. Dunno why.
+### XXX Note that breaking out of this with ^C will not work under
+### Solaris (at least). Dunno why.
# 1: variables
function size_command()
{
case $1 in
- TEXT) TEXT=$(size -A $EXENAME | grep ^.text | awk '{print $2}') ;;
- DATA) DATA=$(size -A $EXENAME | awk '/^\.data[ ]/{print $2}') ;;
- SIZE) SIZE=$(size -A $EXENAME | grep otal | awk '{print $2}') ;;
+ TEXT) TEXT=$(size -B $EXENAME | tail -1 | awk '{print $1}') ;;
+ DATA) DATA=$(size -B $EXENAME | tail -1 | awk '{print $2}') ;;
+ SIZE) SIZE=$(size -B $EXENAME | tail -1 | awk '{print $4}') ;;
esac
}
else
esac
}
;;
+ *hpux*)
+ function size_command()
+ {
+ case $1 in
+ TEXT) TEXT=$(size $EXENAME | awk '{print $1}') ;;
+ DATA) DATA=$(size $EXENAME | awk '{print $3}') ;;
+ SIZE) SIZE=$(size $EXENAME | awk '{print $7}') ;;
+ esac
+ }
+ ;;
*irix*)
function size_command()
{