US inflation data due on Wednesday will test the US stock market in the coming week and potentially prompt a policy response from president Donald Trump, who campaigned on a cost-of-living platform.