Search for gamma-ray emission from supernova remnantswith the Fermi /LAT and MAGIC telescopes