aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2015-01-27Add Makefile and shell to run a boot test if zImage.epapr is presentStewart Smith2-0/+59
If you've built a zImage.epapr using op-build, you can now drop it in the top level skiboot source tree, run 'make check' and these test files will pick it up and run a boot test using it. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-12-18test/hello_world: Fix makefile ruleJoel Stanley1-1/+1
powerpc-linux-gnu-gcc -m64 -c -MMD -Itest/hello_world/hello_kernel/ -o test/hello_world/hello_kernel/hello_kernel.o test/hello_world/hello_kernel/hello_kernel.S test/hello_world/hello_kernel/asm-utils.h powerpc-linux-gnu-gcc: fatal error: cannot specify -o with -c, -S or -E with multiple files GCC barfed as we were passing the header and the c file while compiling with -c. Fix the rule to just build source file. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-12-18test/hello_world: Fix some corner cases in test scriptJoel Stanley1-1/+6
The test for expect would always return true. This change makes it do the correct thing in the presence and absence of expect on my Ubuntu machine. Also, skip the test if the user has KERNEL set. With this set skiboot contains an embedded kernel, and will load that before falling back to our hello_world test kernel, causing all kinds of confusion. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-12-15Fix makefile dependency generation, especially for HOSTCCStewart Smith1-2/+4
Instead of having individual rules to generate .d, add -MMD to HOSTCC parameters, and just include the generated .d files. This fixes a few weird dependency issues. Also, make the mambo hello_kernel test depend on skiboot.lid Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-12-15Fix flub in hello_world Makefile.checkStewart Smith1-3/+0
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-12-15Add hello_world tiny payload to test with mambo (if available)Stewart Smith5-0/+170
Just calls OPAL_CONSOLE_WRITE with "Hello World!" and with mambo we can execute this tiny boot test in not much time at all. Good little sanity check. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>