1 /* 2 * Copyright 2024 Google LLC 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6 #ifndef TESTS_DRIVERS_BBRAM_GENERIC_INCLUDE_FIXTURE_H_ 7 #define TESTS_DRIVERS_BBRAM_GENERIC_INCLUDE_FIXTURE_H_ 8 9 #define BBRAM_TEST_IMPL(name, inst) \ 10 ZTEST(generic, test_##name##_##inst) \ 11 { \ 12 const struct device *dev = DEVICE_DT_GET(inst); \ 13 run_test_##name(dev, get_and_check_emul(dev)); \ 14 } 15 16 #define BBRAM_FOR_EACH(fn) \ 17 fn(DT_NODELABEL(mcp7940n)) fn(DT_NODELABEL(ite8xxx2)) fn(DT_NODELABEL(npcx)) 18 19 const struct emul *get_and_check_emul(const struct device *dev); 20 21 #endif /* TESTS_DRIVERS_BBRAM_GENERIC_INCLUDE_FIXTURE_H_ */ 22