summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Add Debian Jessie installer boot testStewart Smith2015-11-262-1/+71
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* hello_world: don't link with libgccStewart Smith2015-11-181-1/+1
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Support PowerNV Qemu for running testsStewart Smith2015-10-266-7/+118
| | | | | | | | | | | | | | | | | | We now run tests under both Mambo and QEMU PowerNV model. Also added are scripts in opal-ci/ for building powernv model qemu. Currently, this is not yet in upstream qemu, so we build from Ben's branch. You can start using qemu along with/instead of Mambo by: 1) (cd ./opal-ci; sudo ./install-deps-qemu-powernv.sh; ./build-qemu-powernv.sh) 2) Pointing QEMU_PATH and QEMU_BINARY environment variables to appropriate qemu binary with powernv model When building qemu ourselves, we build a *specific* known good tag from the open-power tree. This should ensure that into the future existing test scripts should continue to function. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* fix boot-coverage-report target for updated boot_test.shStewart Smith2015-08-131-4/+4
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* test/hello_world: Remove include fileMichael Neuling2015-06-012-24/+1
| | | | | Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* test/hello_world: Cleanup codeMichael Neuling2015-06-011-17/+15
| | | | | | | | | | | Document it a lot more. Remove magic numbers. Remove include file. Make it more flexible. ... and most importantly remove the horrendous bloat. From 17 instructions down to 10! Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* test/hello_world: Add linker script to dependenciesMichael Neuling2015-06-011-1/+1
| | | | | Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* test/hello_world: Fix cleaning dependencies fileMichael Neuling2015-06-011-1/+1
| | | | | Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Ensure skiboot is built before running boot testsStewart Smith2015-05-281-2/+2
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Simplify boot-tests makefileStewart Smith2015-05-281-12/+5
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Support doing physical machine boot tests with gcovStewart Smith2015-05-272-4/+11
| | | | | | | We can boot FSP machines and extract GCOV coverage report from them combining with Mambo reports Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Enable multiple boot tests based on op-build verisonsStewart Smith2015-05-264-13/+45
| | | | | | We also add a makefile to help people re-create the images. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add boot-coverage-report targetStewart Smith2015-05-255-3/+30
| | | | | | | | | | | This target will run the (two) current boot tests and produce lcov coverage of skiboot from running them in Mambo. Everything is pretty hard coded at this stage and should most certainly be improved upon, especially if we want input from real hardware or to have more boot tests. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Refactor mambo test runningStewart Smith2015-05-254-9/+27
| | | | | | | | we now properly control the simulation rather than just killing off Mambo. For boot test, we wait for petitboot and actually shut down the simulation properly with 'halt'. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add Makefile and shell to run a boot test if zImage.epapr is presentStewart Smith2015-01-272-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>
* test/hello_world: Fix makefile ruleJoel Stanley2014-12-181-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>
* test/hello_world: Fix some corner cases in test scriptJoel Stanley2014-12-181-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>
* Fix makefile dependency generation, especially for HOSTCCStewart Smith2014-12-151-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>
* Fix flub in hello_world Makefile.checkStewart Smith2014-12-151-3/+0
| | | | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add hello_world tiny payload to test with mambo (if available)Stewart Smith2014-12-155-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>
OpenPOWER on IntegriCloud