An embodiment of the invention provides an integrated circuit. The integrated circuit has an analog device-under-test (DUT), a memory receiving and storing a test program and a processor. The processor tests the analog DUT and outputs a test result in digital format by executing the test program, wherein the test result indicates whether the analog DUT workable according to a specification.