Is covid test mandatory for boarding USA flight at Bangalore or New Delhi?

Anybody travelled from India to US recently? Is covid test mandatory for boarding the flight? Can we just get a covid test in any local lab and show the result printout at the Indian airport or do we have to get a mandatory test done at the airport itself? Thanks.

I searched online a bit and found these helpful links:

https://www.bengaluruairport.com/corporate/media/news-press-releases/rt-pcr-test-facility-for-covid-19-launched-at-blr-airport.html

Bangalore airport has the facility of rapid rtpcr test. But, it’s not clear if every outgoing traveler is required to get the test at the facility before being allowed to fly.