[Skiboot] [PATCH] add a build directory test

Cedric Le Goater clg at fr.ibm.com
Mon Jun 1 23:10:15 AEST 2015


On 06/01/2015 12:10 PM, Cedric Le Goater wrote:
> On 06/01/2015 10:07 AM, Stewart Smith wrote:
>> Cédric Le Goater <clg at fr.ibm.com> writes:
>>> Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
>>> ---
>>>  test/Makefile.check |    4 ++++
>>>  1 file changed, 4 insertions(+)
>>>
>>> Index: skiboot.git/test/Makefile.check
>>> ===================================================================
>>> --- skiboot.git.orig/test/Makefile.check
>>> +++ skiboot.git/test/Makefile.check
>>> @@ -2,3 +2,7 @@ check: boot-check
>>>
>>>  boot-check: skiboot.lid
>>>  	./test/run_boot_test.sh
>>> +
>>> +build-check:
>>> +	rm -rf buildtest && mkdir buildtest
>>> +	make SRC=$(PWD) -f ../Makefile -C buildtest
>>
>> Could you instead add to .travis.yaml so that it's just built by
>> travis-ci ?
> 
> Sure. I will give it a try also.

Is that what you want ? I tested it on travis.

C.
 

From: Cédric Le Goater <clg at fr.ibm.com>
Subject: [PATCH] add a build directory test

Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
 .travis.yml         |    2 +-
 test/Makefile.check |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

Index: skiboot.git/test/Makefile.check
===================================================================
--- skiboot.git.orig/test/Makefile.check
+++ skiboot.git/test/Makefile.check
@@ -3,6 +3,10 @@ check: boot-check
 boot-check: skiboot.lid
 	./test/run_boot_test.sh
 
+build-check:
+	rm -rf buildtest && mkdir buildtest
+	make SRC=$(PWD) -f ../Makefile -C buildtest
+
 OP_BUILD_BOOT_CHECK=op-build-v1.0 op-build-v1.1 op-build-v1.2 op-build-v1.2.1
 
 boot-check-%: skiboot.lid skiboot.map
Index: skiboot.git/.travis.yml
===================================================================
--- skiboot.git.orig/.travis.yml
+++ skiboot.git/.travis.yml
@@ -17,4 +17,4 @@ env:
         - HOSTCC=gcc-4.8
 
 script:
-    - make && make check
+    - make && make check && make clean build-check



More information about the Skiboot mailing list