x86, cpufeature: If we disable CLFLUSH, we should disable CLFLUSHOPT
[linux/fpc-iii.git] / tools / testing / selftests / powerpc / subunit.h
blob98a22920792d812b931fe7c5e7b86af58ba4ccec
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_success(char *name)
31 printf("success: %s\n", name);
34 static inline void test_finish(char *name, int status)
36 if (status)
37 test_failure(name);
38 else
39 test_success(name);
42 static inline void test_set_git_version(char *value)
44 printf("tags: git_version:%s\n", value);
47 #endif /* _SELFTESTS_POWERPC_SUBUNIT_H */