[Fuego] [PATCH 10/10] kernel_build: add test.yaml

Tim.Bird at sony.com Tim.Bird at sony.com
Tue Mar 27 23:27:39 UTC 2018



> -----Original Message-----
> From: Daniel Sangorrin
> I have added two more parameters:
> - host_dependencies: packages that need to be installed for the build.
> Please feel free to change its name (eg sdk_dependencies..)
> - default: for optional parameters that have a default value
> 
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
> ---
>  engine/tests/Functional.kernel_build/test.yaml | 50
> ++++++++++++++++++++++++++
>  1 file changed, 50 insertions(+)
>  create mode 100644 engine/tests/Functional.kernel_build/test.yaml
> 
> diff --git a/engine/tests/Functional.kernel_build/test.yaml
> b/engine/tests/Functional.kernel_build/test.yaml
> new file mode 100644
> index 0000000..d4922c7
> --- /dev/null
> +++ b/engine/tests/Functional.kernel_build/test.yaml
> @@ -0,0 +1,50 @@
> +fuego_package_version: 1
> +name: Functional.kernel_build
> +description: |
> +    Build the Linux kernel using various configurations, architectures and
> +    versions. You must add the job to the docker node (e.g. ftc add-job
> +    -b docker -t Functional.kernel_build -s arm64) and preinstall the
> +    SDK/toolchain requirements in docker.
> +license: GPL-2.0
> +author: Linus Torvalds and thousands of collaborators
> +maintainer: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
> +version: 4.x
> +fuego_release: 1
> +type: Functional
> +tags: ['linux', 'build']
> +gitrepo: https://github.com/torvalds/linux.git
> +host_dependencies: bison flex libelf-dev libssl-dev
Looks OK.  I think I'd remove bison and flex.   Those are,
IMHO, standard tools like make, ar, git, that should always
be sent in the Fuego host distribution.

host_dependencies is an OK name.

 Thanks,
 -- Tim

> +params:
> +    - platform:
> +        description: sdk/toolchain platform. Check <platform>-tools.sh in
> fuego-ro/toolchains
> +        example: aarch64
> +        optional: yes
> +        default: docker board file's platform (x86_64)
> +    - arch:
> +        description: computer architecture
> +        example: arm64
> +        optional: yes
> +        default: x86_64
> +    - config:
> +        description: configuration file/command
> +        example: defconfig
> +        optional: yes
> +        default: defconfig
> +    - params:
> +        description: build parameters
> +        example: "-j8 uImage"
> +        optional: yes
> +        default: "-j$(nproc) bzImage modules"
> +    - deploy:
> +        description: folder to deploy the kernel after build
> +        example: "/var/lib/tftp/"
> +        optional: yes
> +        default: $LOGDIR
> +    - regex_p:
> +        description: regular expression to confirm a build was succesful
> +        example: "^  OBJCOPY arch/arm64/boot/Image"
> +        optional: yes
> +data_files:
> +    - fuego_test.sh
> +    - spec.json
> +    - test.yaml
> --
> 2.7.4
> 
> 
> _______________________________________________
> Fuego mailing list
> Fuego at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego


More information about the Fuego mailing list