Text this: Thermal-safe system-on-chip test scheduling using dynamic voltage and frequency scaling