A sweat test is recommended for children and infants who exhibit symptoms of cystic fibrosis, such as chronic lung infections, persistent cough, poor growth, and frequent greasy stools. It is also suggested for newborns who have had a positive newborn screening test for CF.