[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1410820442-8774-2-git-send-email-shuahkh@osg.samsung.com>
Date: Mon, 15 Sep 2014 16:33:56 -0600
From: Shuah Khan <shuahkh@....samsung.com>
To: akpm@...ux-foundation.org, gregkh@...uxfoundation.org,
colin.king@...onical.com, dbueso@...e.de, ebiederm@...ssion.com,
serge.hallyn@...ntu.com, thierry@...ux.vnet.ibm.com,
felipensp@...il.com
Cc: Shuah Khan <shuahkh@....samsung.com>, linux-api@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/7] selftests: add header file for test exit code defines
Add a new header file that defines exit codes for individual
tests to use to communicate test results. These defines are
intended to provide a common and uniform way for selftests
to report results. pass/fail/xfail/xpass/skip/unsupported
are defined.
Signed-off-by: Shuah Khan <shuahkh@....samsung.com>
---
tools/testing/selftests/kselftest.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 tools/testing/selftests/kselftest.h
diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h
new file mode 100644
index 0000000..1b1c9cb
--- /dev/null
+++ b/tools/testing/selftests/kselftest.h
@@ -0,0 +1,20 @@
+/*
+ * kselftest.h - kselftest framework return codes to include from
+ * selftests.
+ *
+ * Copyright (c) 2014 Shuah Khan <shuahkh@....samsung.com>
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * This file is released under the GPLv2.
+ */
+#ifndef __KSELFTEST_H
+#define __KSELFTEST_H
+
+#define EXIT_PASS 0
+#define EXIT_FAIL 1
+#define EXIT_XFAIL 2
+#define EXIT_XPASS 3
+#define EXIT_SKIP 4
+#define EXIT_UNSUPPORTED EXIT_SKIP
+
+#endif /* __KSELFTEST_H */
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists