The nice thing about game development (at least back then) is that once you ship the game, you can expunge all that info from your brain. So as long as the game works when you ship it, no need for tests to catch regressions.
In practice it wasn't really possible to reuse code unless the target platform had the same CPU and at least equal graphics features (as was the case with e.g. porting from Atari ST to Amiga). So every port started from scratch.