The idea behind the ramps test is no matter how badly you have may have stuffed up marlin configuration.h this test will work and verify your hardware.
1) it only work on ramps. To extend it to support multiple boards would break its very simple nature.
2) you run this once... why would you put this in your firmware
3) you can emulate most of this test on the real marlin with a few simple gcodes. (except ignoring some safety features)
4) this would be dangerous, it moves the steppers without looking at endstops, and it turns on the heaters on full with no temperature monitoring.
This is a really really bad idea.