Iran has been suppressing nationwide protests seen as one of the gravest tests of clerical rule since the Islamic Revolution in 1979.