Refactor t/porting/checkcase.t to use test.pl instead of making TAP by hand.