Perform a DDR memory test by c commands through linux on the cyclone V board

Hello everyone,
i would like to know how can i Perform a DDR memory test by c commands through linux on the cyclone V board .

Thanks