testc_helpers.h 707 B

1234567891011121314151617181920212223242526
  1. /** @file testc_helpers.h
  2. * @brief Testc helper functions.
  3. */
  4. #ifndef _faux_testc_helpers_h
  5. #define _faux_testc_helpers_h
  6. #include <stddef.h>
  7. #include <faux/faux.h>
  8. #define FAUX_TESTC_TMPDIR_ENV "TESTC_TMPDIR"
  9. C_DECL_BEGIN
  10. ssize_t faux_testc_file_deploy(const char *fn, const void *buf, size_t len);
  11. ssize_t faux_testc_file_deploy_str(const char *fn, const char *str);
  12. char *faux_testc_tmpfile_deploy(const void *buf, size_t len);
  13. char *faux_testc_tmpfile_deploy_str(const char *str);
  14. int faux_testc_file_cmp(const char *first_file, const char *second_file);
  15. bool_t faux_testc_fill_rnd(void *buf, size_t len);
  16. char *faux_testc_rnd_buf(size_t len);
  17. C_DECL_END
  18. #endif /* _faux_testc_helpers_h */