testsuite: Stop requiring diff
Unify the many copies of diff_with_file in one source file, and patch it to detect diff at runtime and fall back to a simple strcmp if we don't have it. Make all tests use this new testutils.c, and stop requiring diff for building the tests. This should let us allow to build on Windows with the default value for -Dbuild-tests.
Showing with 116 additions and 254 deletions