#include <xtf/lib.h>
+#include <xtf/console.h>
#include <xtf/exlog.h>
+#include <xtf/numbers.h>
static bool logging = false;
static unsigned int log_entries;
--- /dev/null
+/**
+ * @file include/xtf.h
+ *
+ * Convenience header for tests.
+ */
+#ifndef XTF_H
+#define XTF_H
+
+/* Primitives */
+#include <xtf/compiler.h>
+#include <xtf/types.h>
+#include <xtf/numbers.h>
+
+#include <xtf/lib.h>
+#include <xtf/libc.h>
+
+/* Core test functionality */
+#include <xtf/report.h>
+#include <xtf/test.h>
+
+/* Optional functionality */
+#include <xtf/console.h>
+#include <xtf/exlog.h>
+#include <xtf/hypercall.h>
+#include <xtf/traps.h>
+
+#endif /* XTF_H */
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
#ifndef XTF_LIB_H
#define XTF_LIB_H
-#include <xtf/types.h>
#include <xtf/compiler.h>
-#include <xtf/console.h>
-#include <xtf/exlog.h>
-#include <xtf/hypercall.h>
-#include <xtf/libc.h>
-#include <xtf/numbers.h>
-#include <xtf/report.h>
-#include <xtf/test.h>
-#include <xtf/traps.h>
#include <arch/x86/lib.h>
*
* @sa tests/cpuid/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
static void dump_leaves(
void (*cpuid_fn)(uint32_t leaf, uint32_t subleaf,
*
* @sa tests/example/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
void test_main(void)
{
*
* @sa tests/msr/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
static int rdmsr_safe(uint32_t msr, uint64_t *val)
{
*
* @sa tests/pv-iopl/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
#include <arch/x86/processor.h>
*
* @sa tests/selftest/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
#include <arch/x86/processor.h>
#include <arch/x86/segment.h>
*
* @sa tests/swint-emulation/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
#include <arch/x86/processor.h>
#include <arch/x86/symbolic-const.h>
*
* @sa tests/xsa-122/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
/*
* Check a buffer of a specified size for non-NUL bytes following the string
*
* @sa tests/xsa-123/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
void test_main(void)
{
*
* @sa tests/xsa-167/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
void test_main(void)
{
*
* @sa tests/xsa-168/main.c
*/
-#include <xtf/lib.h>
+#include <xtf.h>
void test_main(void)
{