I usually use vttest to test my terminals, but this could be considered overkill for some things, and would also probably be a pain to compile for every Unix system I have.
So, I wrote a simple script (originally for AT&T SVR3) to exercise various terminal stuff.
The script itself has two parts. The first part is a screen alignment test (DECALN) that I decided to add for physical terminals (should I get more), and the second part is an exercise of some text attributes.
This won't exercise some of the more advanced things that vttest
exercises.