Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/27/11 19:31
Read: times


 
#180856 - sw test harness
Responding to: ???'s previous message
Richard Erlacher said:
Try attaching your logic analyzer to the outputs and its pattern-generator to the inputs. Given that you know what the requirements are, you can easily test your system in that way, and without any additional "fancy" hardware. A test harness is, of course, very useful. That way you don't have to spend the two days attaching inputs and outputs on a circuit that you're likely to revisit many times.

It does require that the attachment for the test harness be designed in at the outset, though.

RE

No, a test harness in this case is not just a hardware thingy to stimulate different I/O.

No, you can't just test a complex state machine with a logic analyzer and a pattern generator.

Why? Because the state length of the state machines may take the pattern generator a billion years to try to swing through 2^128 alternatives.

So what do you do? In some situations, you create a software test harness where you can basically intersect different parts inside the software and perform module tests on modules that do have a manageable number of bits of state information.

A test vector machine have a hard time to step an int variable counter to "just before turn-over" before applying the different test patterns to see what happens at the turn-over time. What happens at overflow time if button 1 is pressed? What happens at overflow time if button 2 is pressed? What happens at overflow time if button 1 + 2 +3 + 4+ 5+ 6+ 7+ 8... 15 is pressed but not button 16? Let's say that this integer is 16 bits long and ticks at 1Hz. Then it takes 65536 seconds between each turn-around. Let's say that you want to test 2^16 different input stimuli at the time of turn-around. With a sw test harness you may do it in 2^16 quick tests. Without a test harness you would need to wait 2^32 seconds. Not fun to do such a test before every firmware release.

So the term test harness is very often used for test constructs for sw module testing. Many tools exists that can automatically generate both test patterns and the helper functions for such module testing. At least when using C and C++. Assembler can't really be machine-read to deduce the loop constructs, making it virtually impossible to auto-generate test setups.

List of 58 messages in thread
TopicAuthorDate
"standard syntax" of '51 assemblers            01/01/70 00:00      
   Use C            01/01/70 00:00      
      Use C - prudently            01/01/70 00:00      
         I hate C            01/01/70 00:00      
            Fight!            01/01/70 00:00      
            Time in the Trade            01/01/70 00:00      
               I'd submit that there are "gotcha's"            01/01/70 00:00      
                  The tools are better for HLL            01/01/70 00:00      
                  Gotchas!            01/01/70 00:00      
               Yes. Fight.            01/01/70 00:00      
                  why fight?            01/01/70 00:00      
                     that are still language-agnostic issues            01/01/70 00:00      
                        to Jan and others            01/01/70 00:00      
                           personal experience            01/01/70 00:00      
                  HLL productivity            01/01/70 00:00      
                     show me the proof            01/01/70 00:00      
                        Productivity article            01/01/70 00:00      
                           Tautologies!            01/01/70 00:00      
                              What's up with that???            01/01/70 00:00      
                           interesting but irrelevant            01/01/70 00:00      
                              Why is that irrelevant?            01/01/70 00:00      
                                 I think part of the confusion stems from this ...            01/01/70 00:00      
                                    which packages have you seen????            01/01/70 00:00      
                                       not those in recent history            01/01/70 00:00      
                                          I don't think that's true?            01/01/70 00:00      
                                             Common that consultants have commercial compilers            01/01/70 00:00      
                                                Who benefits?            01/01/70 00:00      
                                             Why would they buy that product at all?            01/01/70 00:00      
                                                So You are Niche            01/01/70 00:00      
                                          look at the link in my post above            01/01/70 00:00      
                                             Technology front            01/01/70 00:00      
                                                Richard doesn't exactly follow the technology front....            01/01/70 00:00      
                                                   and doesn't let that stop him ....            01/01/70 00:00      
                                                      Just because the paint is dry doesn't mean it won't work            01/01/70 00:00      
                                                   Perhaps not ...            01/01/70 00:00      
                                                Technology front? In '51 asm?            01/01/70 00:00      
                              again ... I have to agree            01/01/70 00:00      
                                 as usual, Richard            01/01/70 00:00      
                                    all you have to do is to read the whole message            01/01/70 00:00      
                        Do you test your code?            01/01/70 00:00      
                           sure I do            01/01/70 00:00      
                              What you can do ...            01/01/70 00:00      
                                 sw test harness            01/01/70 00:00      
                                    I don't know about yours, but mine can do that ...            01/01/70 00:00      
                                       Why didn't you read?            01/01/70 00:00      
                                          Well, I have to admit ...            01/01/70 00:00      
                                             You are forgetting memory variables in state machines            01/01/70 00:00      
                                                I think you're going over the top.            01/01/70 00:00      
                                                   Stop and think before you write            01/01/70 00:00      
                                                      Footnote about code coverage            01/01/70 00:00      
                                                         I agree with the principle, but not with the range            01/01/70 00:00      
                                                            Lucky you            01/01/70 00:00      
                                                               where you sit determines what you see            01/01/70 00:00      
                                                                  when seeing too little - get a chair to stand on            01/01/70 00:00      
                                                                     I'm not on board with all of that            01/01/70 00:00      
                                                                        I know, lifebuoy needed            01/01/70 00:00      
                  I have to agree            01/01/70 00:00      
            As I've often said ...            01/01/70 00:00      

Back to Subject List