[LLVMdev] How to write a regression test case?

Changcheng Wang changcheng at multicorewareinc.com
Tue Aug 28 01:18:03 PDT 2012


hi,
I put below command line on head of my test case,it run pass.
i think it can check the output result of my test case.
; RUN: lli -force-interpreter=true %s | grep helloworld

Regards,
changcheng

On Tue, Aug 28, 2012 at 3:22 PM, Changcheng Wang
<changcheng at multicorewareinc.com> wrote:
> thank yang,thank Wei-Ren!
>
> i feel i am a question boy,because i has another question now.
> i want to check if a program output right result,which example in
> llvm/test/* can give me some idea?
> suppose i have a helloworld program if it run well,it can give me a
> result "helloworld",so i want to check if the result is "helloworld".
>
> best wishes!
>
> changcheng
>
>
>
>
> On Tue, Aug 28, 2012 at 2:58 PM, 陳韋任 (Wei-Ren Chen)
> <chenwj at iis.sinica.edu.tw> wrote:
>>> still a question:
>>>  what does "; PR1028" means?
>>
>>   I believe it means this test case addresses bug report (pr, problem
>> report) 1028 [1]. In other words, this test case guarantee that pr1028
>> will not back again. If so, it will fail.
>>
>> Regards,
>> chenwj
>>
>> [1] http://llvm.org/bugs/show_bug.cgi?id=1028
>>
>> --
>> Wei-Ren Chen (陳韋任)
>> Computer Systems Lab, Institute of Information Science,
>> Academia Sinica, Taiwan (R.O.C.)
>> Tel:886-2-2788-3799 #1667
>> Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list