[cfe-dev] add a valgrind option to "make test"

Sam Bishop sam at bishop.dhs.org
Thu Mar 20 14:37:07 PDT 2008


Hi, Gabor.

On Thu, March 20, 2008 9:59 am, Gabor Greif wrote:
> Sam Bishop wrote:
>> ...
> In the last days I have tweaked a lot on "make test", but now it should
> be stable enough for you to get this in. My apologies not coming back to
> you earlier.

No problem.  And thank you for the review!

>>  SCRIPT=$OUTPUT.script
>> -grep 'RUN:' $FILENAME | sed
>> "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g;s|%llvmgcc|llvm-gcc
>> -emit-llvm|g;s|%llvmgxx|llvm-g++
>> -emit-llvm|g;s|%prcontext|prcontext.tcl|g" > $SCRIPT
>> +grep 'RUN:' $FILENAME | \
>> +  sed -e "s|^.*RUN:\(.*\)$|\1|g" \
>> +      -e "s|%s|$SUBST|g" \
>> +      -e "s|%llvmgcc|llvm-gcc -emit-llvm|g" \
>> +      -e "s|%llvmgxx|llvm-g++ -emit-llvm|g" \
>> +      -e "s|%prcontext|prcontext.tcl|g" \
>> +      -e "s|clang|$CLANG|g" > $SCRIPT
>
> nice cleanup. meanwhile I have added a new %t substitution, please add
> that too.

I made a %t1 -> %t substitution in a TestRunner.sh comment.  I'm not
100% sure about it, though.  Feel free to back that out if it's wrong.

>> -	PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts \
>> +	PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts VG=${VG} \
>
> Why do you use wiggly brackets in ${VG}. The file uses parentheses,
> let's stick to them.

Oops.  Personal habit.  Fixed.

> Btw. test/Makefile is obsolete and will go away soon. Please apply the
> change to test/Makefile.parallel too.

Yeah, I thought I'd wait 'til things settled down.  Done.

Thanks again!

Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind-make-test-v3.patch
Type: application/octet-stream
Size: 2914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080320/9f7ad5d6/attachment.obj>


More information about the cfe-dev mailing list