seahag/test/store_file_md5.c

19 lines
352 B
C
Raw Normal View History

#include "haggis_private.h"
#include <assert.h>
#include <md5.h>
#include <stdio.h>
int main() {
haggis_file hf;
char *f = "load_device.c";
FILE *fd;
assert(haggis_file_init(f, &hf, md5) == 0);
fd = fopen("output/store_file_md5", "w");
assert(haggis_store_file(fd, &hf) == 0);
fflush(fd);
fclose(fd);
return 0;
}