Netscape security services

I am working on accelerating AES and AES-GCM in Netscape Security Services on POWER. However the code is very difficult to build, and most critically, I cannot figure out how to run the test suite so that it even remotely passes. The Debian packaging does not run the test suite and there is no way to modify NSS without being able to run tests.