Pulmonary function testing is useful for the diagnosis and management of chronic lung conditions such as asthma and emphysema.