diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2013-01-13 03:00:25 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2013-01-13 03:00:25 +0000 |
commit | fef661e814a2c60c11e0a343fdb9846f7313f99a (patch) | |
tree | 9a4e4a14029a4f68bd9e8a4365d28f558f87c2fa /cmakescripts | |
parent | ebff887323d48e743a5de98471adac656f0de15a (diff) |
Modify 'make test' so that it uses MD5 sums instead of reference images. This eliminates the need to check most of the test images into the repository, which keeps the source tarball to a reasonable size.
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@900 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'cmakescripts')
-rw-r--r-- | cmakescripts/md5cmp.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmakescripts/md5cmp.cmake b/cmakescripts/md5cmp.cmake new file mode 100644 index 0000000..c315aa8 --- /dev/null +++ b/cmakescripts/md5cmp.cmake @@ -0,0 +1,15 @@ +if(NOT MD5) + message(FATAL_ERROR "MD5 not specified") +endif() + +if(NOT FILE) + message(FATAL_ERROR "FILE not specified") +endif() + +file(MD5 ${FILE} MD5FILE) + +if(NOT MD5 STREQUAL MD5FILE) + message(FATAL_ERROR "MD5 of ${FILE} should be ${MD5}, not ${MD5FILE}.") +else() + message(STATUS "${MD5}: OK") +endif() |