A Spitzer/IRAC survey of massive star-forming regions