test_runner.h 480 B

1234567891011121314151617181920212223242526
  1. #ifndef TEST_RUNNER_H
  2. #define TEST_RUNNER_H
  3. #include "lfs.h"
  4. struct test_case {
  5. const char *id;
  6. const char *name;
  7. const char *path;
  8. uint32_t permutations;
  9. void (*run)(struct lfs_config *cfg, uint32_t perm);
  10. };
  11. struct test_suite {
  12. const char *id;
  13. const char *name;
  14. const char *path;
  15. const struct test_case *const *cases;
  16. size_t case_count;
  17. };
  18. extern const struct test_suite *test_suites[];
  19. extern const size_t test_suite_count;
  20. #endif