5

guys, I want to know is there any test framework for assembly?

I searched, but seems no relevant topic.

or, I should write my own test case in own code? just like:

http://pastebin.mozilla.org/1093688

thanks!

HaveF
  • 2,995
  • 2
  • 26
  • 36
  • 2
    Which assembler language? Which operating system and version? – John Saunders Feb 24 '11 at 04:28
  • 1
    @John, heh, I highly doubt it no matter what operating system and processor set – Earlz Feb 24 '11 at 04:31
  • 2
    Wow, a gaping hole in the software world, I bet there is no assembly-language web framework either! I can see it now: `.macro activerecord` ... :-) – DigitalRoss Feb 24 '11 at 04:48
  • @Jone, @Earlz, yes, the system version and processor set are unrelated to this problem. I just use Intel Assembly for example. – HaveF Feb 24 '11 at 04:55
  • @dwelch, test some register, because I don't know whether I write the correct code, so I write some test case first. – HaveF Feb 24 '11 at 05:01

1 Answers1

0

You can use one of the C unit test libraries/frameworks, since calling public symbols written directly in assembly is possible. Writing unit tests in assembly, to keep the same language, could be a cumbersome task, and in the end you're interested more about the output/behavior of the tested function.

Community
  • 1
  • 1
Cristik
  • 30,989
  • 25
  • 91
  • 127