If your asking on how to do it:
All you'll need is the system discs, i think its usually on disc one with the OS installer. Just boot the computer insert the disc, restart and hold the option key down while the computer boots. Once you get the gray screen with the buttons on it [if booted correctly, you should have your OS, the OS X installer disc, and the Hardware Test].
All you should have to do is boot the Hardware Test. Click on that button. Once, up and running you will have the option to do the Quick Test, or the Long Test.