Added C++ test that includes barrelfish/barrelfish.h
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Mon, 2 Feb 2015 14:40:10 +0000 (15:40 +0100)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Mon, 2 Feb 2015 14:40:10 +0000 (15:40 +0100)
This gives us minimum coverage of the public header files compiling
against C++.

Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>

usr/tests/cxx/Hakefile
usr/tests/cxx/test_inc_barrelfish.cpp [new file with mode: 0644]

index 012df9f..b7d39d1 100644 (file)
         "x86_64",
         "k1om"
     ]
+  },
+  build application {
+    target = "tests/cxxtest_inc_bf",
+    cxxFiles = [
+        "test_inc_barrelfish.cpp"
+    ],
+    architectures = [
+    "x86_64"
+    ]
   }
 ]
diff --git a/usr/tests/cxx/test_inc_barrelfish.cpp b/usr/tests/cxx/test_inc_barrelfish.cpp
new file mode 100644 (file)
index 0000000..7e890be
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2015, ETH Zurich.
+ * All rights reserved.
+ *
+ * This file is distributed under the terms in the attached LICENSE file.
+ * If you do not find this file, copies can be found by writing to:
+ * ETH Zurich D-INFK, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.
+ */
+
+#include <iostream>
+
+#include <barrelfish/barrelfish.h>
+
+#include "cxxtest.hpp"
+
+int main(int argc,
+         char *argv[])
+{
+    std::cout << "Hello World!" << std::endl;
+
+    std::cout << "Tests done: SUCCESS" << std::endl;
+    return 0;
+}