You can download all the data files needed for running the tests from here:

eccodes_test_data.tar.gz

Untar this into the top-level of the CMake build directory