Displaying 20 results from an estimated 22 matches for "exampletest".
Did you mean:
exampletests
2009 Jul 08
7
running a unit test over and over in script/console
I started doing this:
$ RAILS_ENV=test script/console
>> load ''test/unit/models/example_test.rb''; r = Test::Unit::TestResult.new; reload!; ExampleTest.new(:test_example1).run(r) { |c,v| }; pp results
and then just hit up arrow and run that same line again over and over in
script/console. That way I can make changes to the test and app code,
and don''t have to wait for rails startup each time.
Does that make sense to others? I''...
2012 Aug 22
2
[LLVMdev] How to write a regression test case?
...emit-llvm -S | FileCheck %s
We can write:
// RUN: clang < %s -emit-llvm -S
in a .c file to test clang.
And if we use FileCheck, like:
// RUN: clang < %s -emit-llvm -S | FileCheck %s
make sure there is some "// CHECK:" in that file, or lit will report a failure.
See utils/lit/lit/ExampleTests/Clang for more details.
>
> Regards.
>
> (PS. When you reply to this email, make sure you send a copy to
> llvmdev at cs.uiuc.edu)
>
>>
>> thanks very much!
>> best wishes
>>
>> changcheng
>>
>> On Tue, Aug 21, 2012 at 10:46 AM, Triple Y...
2012 Aug 22
7
[LLVMdev] How to write a regression test case?
...%s -emit-llvm -S
>> in a .c file to test clang.
>>
>> And if we use FileCheck, like:
>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>
>> See utils/lit/lit/ExampleTests/Clang for more details.
>>
>>>
>>> Regards.
>>>
>>> (PS. When you reply to this email, make sure you send a copy to
>>> llvmdev at cs.uiuc.edu)
>>>
>>>>
>>>> thanks very much!
>>>> best wishes
>>&...
2012 Aug 22
0
[LLVMdev] How to write a regression test case?
...ite:
> // RUN: clang < %s -emit-llvm -S
> in a .c file to test clang.
>
> And if we use FileCheck, like:
> // RUN: clang < %s -emit-llvm -S | FileCheck %s
> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>
> See utils/lit/lit/ExampleTests/Clang for more details.
>
>>
>> Regards.
>>
>> (PS. When you reply to this email, make sure you send a copy to
>> llvmdev at cs.uiuc.edu)
>>
>>>
>>> thanks very much!
>>> best wishes
>>>
>>> changcheng
>>>...
2012 Aug 27
0
[LLVMdev] How to write a regression test case?
...>> And if we use FileCheck, like:
>>>>>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>
>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>
>>>>>>>
>>>>>>> Regards.
>>>>>>>
>>>>>>> (PS. When you reply to this email, make sure you send a copy to
>>>>>>> llvmdev at cs.uiuc.edu)
>>...
2012 Aug 22
0
[LLVMdev] How to write a regression test case?
...t; in a .c file to test clang.
>>>
>>> And if we use FileCheck, like:
>>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>
>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>
>>>>
>>>> Regards.
>>>>
>>>> (PS. When you reply to this email, make sure you send a copy to
>>>> llvmdev at cs.uiuc.edu)
>>>>
>>>>>
>>>>> thanks very much!
&g...
2012 Aug 28
3
[LLVMdev] How to write a regression test case?
...we use FileCheck, like:
>>>>>>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>
>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>
>>>>>>>>
>>>>>>>> Regards.
>>>>>>>>
>>>>>>>> (PS. When you reply to this email, make sure you send a copy to
>>>>>>>> llvmdev...
2007 Aug 29
5
Undefined method stub
When I try to execute the following example, I get an error message:
/usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.4/lib/mocha/object.rb:40:
in `expects'': undefined method `stub'' for nil:NilClass (NoMethodError)
from test8.rb:5
What could be the reason? I tried with the latest Mocha Ruby gem, and I
also tried it with the Rails plugin.
The example:
require
2012 Aug 28
0
[LLVMdev] How to write a regression test case?
...k, like:
>>>>>>>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>
>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Regards.
>>>>>>>>>
>>>>>>>>> (PS. When you reply to this email, make sure you send a copy to
>>>>>...
2012 Aug 28
2
[LLVMdev] How to write a regression test case?
...;>>>>>>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>
>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Regards.
>>>>>>>>>>
>>>>>>>>>> (PS. When you reply to this email, make sure you send a copy to...
2012 Aug 29
2
[LLVMdev] How to write a regression test case?
...;> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>
>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Regards.
>>>>>>>>>>>>
>>>>>>>>>>>> (PS. When you reply to t...
2012 Aug 28
3
[LLVMdev] How to write a regression test case?
...;> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>
>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Regards.
>>>>>>>>>>>>
>>>>>>>>>>>> (PS. When you reply to t...
2012 Aug 29
0
[LLVMdev] How to write a regression test case?
...;>>>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>
>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Regards.
>>>>>>>>>>>
>>>>>>>>>>> (PS. When you reply to this email, make sure...
2012 Aug 29
3
[LLVMdev] How to write a regression test case?
...%s -emit-llvm -S | FileCheck %s
>>>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>>>
>>>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards.
>>>>>>>>>>>>>>
>>>>>>>>>>&...
2012 Aug 28
0
[LLVMdev] How to write a regression test case?
...: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>>
>>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards.
>>>>>>>>>>>>>
>>>>>>>>>>>>> (PS....
2012 Aug 28
0
[LLVMdev] How to write a regression test case?
...;>>>> // RUN: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>
>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Regards.
>>>>>>>>>>>
>>>>>>>>>>> (PS. When you reply to this email, make sure...
2012 Aug 29
0
[LLVMdev] How to write a regression test case?
...: clang < %s -emit-llvm -S | FileCheck %s
>>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>>
>>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards.
>>>>>>>>>>>>>
>>>>>>>>>>>>> (PS....
2012 Aug 29
0
[LLVMdev] How to write a regression test case?
...vm -S | FileCheck %s
>>>>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards.
>>>>>>>>>>>>>>>
>>>>>>&...
2012 Aug 28
4
[LLVMdev] How to write a regression test case?
...%s -emit-llvm -S | FileCheck %s
>>>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>>>
>>>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards.
>>>>>>>>>>>>>>
>>>>>>>>>>&...
2012 Aug 31
2
[LLVMdev] How to write a regression test case?
...Check %s
>>>>>>>>>>>>>>> make sure there is some "// CHECK:" in that file, or lit will report a failure.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> See utils/lit/lit/ExampleTests/Clang for more details.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Regards.
>>>>>>>>>>>>>>>>
>>&...