# HG changeset patch # User Deepa Srinivasan <[EMAIL PROTECTED]> # Date 1227381016 21600 # Node ID 47c2e401b8e2c995da56dad4a167f6f59352f94e # Parent c589fc26f12804e5f5758503dbbd833bf1a2c359 kvm-userspace: ppc: Add "hello world" test for libcflat
From: Deepa Srinivasan <[EMAIL PROTECTED]> Add a test program ("hello world") to exercise printf() in libcflat. Signed-off-by: Deepa Srinivasan <[EMAIL PROTECTED]> --- [diffstat] b/user/test/powerpc/helloworld.c | 27 +++++++++++++++++++++++++++ user/config-powerpc.mak | 3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) [diff] diff -r c589fc26f128 -r 47c2e401b8e2 user/config-powerpc.mak --- a/user/config-powerpc.mak Sat Nov 22 13:10:16 2008 -0600 +++ b/user/config-powerpc.mak Sat Nov 22 13:10:16 2008 -0600 @@ -17,7 +17,8 @@ # theses tests use cstart.o, libcflat, and libgcc tests := \ - test/powerpc/exit.bin + test/powerpc/exit.bin \ + test/powerpc/helloworld.bin include config-powerpc-$(PROCESSOR).mak diff -r c589fc26f128 -r 47c2e401b8e2 user/test/powerpc/helloworld.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/user/test/powerpc/helloworld.c Sat Nov 22 13:10:16 2008 -0600 @@ -0,0 +1,27 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Copyright IBM Corp. 2008 + * + * Authors: Deepa Srinivasan <[EMAIL PROTECTED]> + */ + +#include "libcflat.h" + +int main() +{ + printf("Hello World\n"); + + return 1; +} -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html