Ferenc Wagner wferi@afavant.elte.hu writes:
What about this:
makename="$BINDIR/`dirname $test`/Makefile.in" [...] sed -n '/^CTESTS =/,/[^\]$/{s/^CTESTS =//;s/\\$//;s/\([0-9a-zA-Z_]*\)\.c/"\1",/g;p;}' $makename
that is, extracting the subtest names from the corresponding Makefile.in?
It's still fairly ugly IMO. Doing this at run time would be a lot cleaner.