rtc: rtc-ab-b5ze-s3: add sub-minute alarm support
[linux/fpc-iii.git] / tools / testing / selftests / powerpc / subunit.h
blob9c6c4e901ab617671c669315bcc62280362b9104
1 /*
2 * Copyright 2013, Michael Ellerman, IBM Corp.
3 * Licensed under GPLv2.
4 */
6 #ifndef _SELFTESTS_POWERPC_SUBUNIT_H
7 #define _SELFTESTS_POWERPC_SUBUNIT_H
9 static inline void test_start(char *name)
11 printf("test: %s\n", name);
14 static inline void test_failure_detail(char *name, char *detail)
16 printf("failure: %s [%s]\n", name, detail);
19 static inline void test_failure(char *name)
21 printf("failure: %s\n", name);
24 static inline void test_error(char *name)
26 printf("error: %s\n", name);
29 static inline void test_skip(char *name)
31 printf("skip: %s\n", name);
34 static inline void test_success(char *name)
36 printf("success: %s\n", name);
39 static inline void test_finish(char *name, int status)
41 if (status)
42 test_failure(name);
43 else
44 test_success(name);
47 static inline void test_set_git_version(char *value)
49 printf("tags: git_version:%s\n", value);
52 #endif /* _SELFTESTS_POWERPC_SUBUNIT_H */