From 1e6d0ad00a91b26384dc1bd496d65956cc70e80d Mon Sep 17 00:00:00 2001 From: Glauber Costa <glommer@cloudius-systems.com> Date: Mon, 27 Jan 2014 15:12:09 +0400 Subject: [PATCH] tests: add a C++ Hello World test This is useful to measure OSv boot speed, IOW, how fast are we without CLI, Java, etc. Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com> Signed-off-by: Glauber Costa <glommer@cloudius-systems.com> Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com> --- build.mk | 1 + tests/tst-hello.cc | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/tst-hello.cc diff --git a/build.mk b/build.mk index f295e6f97..0067b4c91 100644 --- a/build.mk +++ b/build.mk @@ -207,6 +207,7 @@ tests += tests/tst-memmove.so tests += tests/tst-pthread-clock.so tests += tests/misc-procfs.so tests += tests/tst-chdir.so +tests += tests/tst-hello.so tests/hello/Hello.class: javabase=tests/hello diff --git a/tests/tst-hello.cc b/tests/tst-hello.cc new file mode 100644 index 000000000..1e941a894 --- /dev/null +++ b/tests/tst-hello.cc @@ -0,0 +1,14 @@ +/* + * Copyright (C) 2014 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + +#include <iostream> + +int main(int ac, char** av) +{ + std::cout << "Hello World\n"; + return 0; +} -- GitLab