Skip to contentSkip to conversation

kvm-userspace: ppc: Add "hello world" test for libcflat

PATCH New Deepa Srinivasan 1 participant 1 message Nov 22, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-userspace: ppc: Add "hello world" test for libcflat

# 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.

---

[diffstat]

 b/user/test/powerpc/helloworld.c |   27 +++++++++++++++++++++++++++
 user/config-powerpc.mak          |    3 ++-
 2 files changed, 29 insertions(+), 1 deletion(-)

[diff]

user/config-powerpc.mak +2 -1
diff -r c589fc26f128 -r 47c2e401b8e2 user/config-powerpc.mak
@@ -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
 
user/test/powerpc/helloworld.c new file +27 -0
diff -r c589fc26f128 -r 47c2e401b8e2 user/test/powerpc/helloworld.c
@@ -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;
+}