fpm: add configtest support (cherry-pick 9e6915b)