Human immunodeficiency virus (HIV) testing determines whether you're infected with HIV, a virus that weakens your immune system and can lead to acquired immunodeficiency syndrome (AIDS). Some HIV tests check for antibodies that your immune system produces in reaction to HIV infection.