The vet can test for pneumonia using a simple blood test that can identify the presence of certain pathogens in the blood, or they can use a chest x-ray. If the infection is viral, there are no medications to specifically help the pneumonia. However, your vet can provide an antibiotic that will help with the complications of the viral infection. A bacterial infection can be treated using antibiotic.