UCL / openqcd-oneapi

GNU General Public License v2.0
0 stars 0 forks source link

Return a non-zero value when spinor values are incorrect #33

Closed tkoskela closed 2 years ago

tkoskela commented 2 years ago

Closes #30

A simple change to main.c to return 1 when spinor values are incorrect and print a message to stderr.

A slightly more complex update to the GitHub Actions workflow to check that an error is produced when the code output does not match the reference data. For this purpose I uploaded another data set 8-8-8-8, one of the ones we generated with gdb. The workflow allows that step to fail, and then checks in another step that the outcome was a failure.

tkoskela commented 2 years ago

Do you mean in the GitHub Actions workflow, or in general? It was the simplest way I could think of. Using a proper testing framework would be better but I don't think it's within the scope of things we want to focus on this month.