Allow testcases to be automated with a command line argument.

(This is to support test_all.py.)