Upcoming economic data and corporate earnings will test the resilient U.S. stock market. Major banks begin second-quarter earnings season, which is expected to be strong. Key economic reports, including the consumer price index, are due next week. Oil prices jumped amid concerns over renewed attacks on shipping and global supplies. Investors seek rate-path signs from inflation data and geopolitical developments.

Market optimism is being tested by corporate earnings expectations, geopolitical risks and key economic data expected this week.

Wall Street today: US stocks and oil prices were largely flat on Friday, heading toward a subdued end to the week after the sharp swings seen earlier as investors assessed the…