nc_tests.h 851 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /** \internal
  2. \file
  3. Common includes, defines, etc., for test code in the libsrc4 and
  4. nc_test4 directories.
  5. This is part of the netCDF package. Copyright 2005 University
  6. Corporation for Atmospheric Research/Unidata. See \ref copyright file
  7. for conditions of use.
  8. */
  9. #ifndef _NC_TESTS_H
  10. #define _NC_TESTS_H
  11. #include <config.h>
  12. #include <assert.h>
  13. #include <stdio.h>
  14. #include <string.h>
  15. #include <stdlib.h>
  16. #ifdef USE_PARALLEL
  17. #include "netcdf_par.h"
  18. #endif
  19. #include "netcdf.h"
  20. #include "err_macros.h"
  21. /** Useful define for tests. */
  22. /** \{ */
  23. #define MEGABYTE 1048576
  24. #define HALF_MEG (MEGABYTE/2)
  25. #define MILLION 1000000
  26. #define SIXTEEN_MEG 16777216
  27. #define FOUR_MEG (SIXTEEN_MEG/4)
  28. #define THIRTY_TWO_MEG (SIXTEEN_MEG * 2)
  29. #define SIXTY_FOUR_MEG (SIXTEEN_MEG * 4)
  30. #define ONE_TWENTY_EIGHT_MEG (SIXTEEN_MEG * 8)
  31. /** \} */
  32. #endif /* _NC_TESTS_H */