A frustule is the hard shell of a diatom .