I am writing some tests to test the processor on an embedded device (running on Linux). The device shell supports Ash, python and I can even run C code after compilation in scratchbox.

Can you give me some ideas as to what tests I could write to test the processor?

link|improve this question

infinite loops are always fun – kobaltz Jan 4 at 23:08
What do you want to test exactly? – haimg Jan 4 at 23:08
@haimg I want to stress test the CPU. I want to take the CPU utilization to close to 100% for say 10 mins and then stop my test. – abc Jan 4 at 23:17
What other kinds of testing I could do? Any ideas would be appreciated as well. – abc Jan 4 at 23:20
feedback

closed as off topic by ultrasawblade, Nifle, Mokubai, ChrisF, Sathya Jan 14 at 10:04

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

1 Answer

up vote 1 down vote accepted

Stress-testing CPU is a bit complicated. If you're just interested in thermal testing, compile something like this simple C program, which will load a CPU with infinite loop doing simple math calculation. If you need further help with writing/compiling such a program, you'd better take this to StackOverflow.

However, if you're interested in testing a specific CPU component (ALU, FPU, cache, etc.), then this is much more complicated and requires an intimate knowledge of the architecture/CPU and serious programming skills. You can ask the embedded board vendor, maybe they already have such software. If not, you're pretty much out of luck.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.