metadata:
  format: Lava-Test Test Definition 1.0
  name: secure-boot-enabled
  description: |
    Validate UEFI SecureBoot is enabled by checking the value of variable
    8be4df61-93ca-11d2-aa0d-00e098032b8c-SecureBoot. This long variable is
    predefined in the UEFI standard and it will never change. Refer to
    https://uefi.org/specs/UEFI/2.10/03_Boot_Manager.html#globally-defined-variables
  maintainer:
    - javier.tia@linaro.org
  os:
    - debian
    - ubuntu
    - centos
    - fedora
    - archlinux
  devices:
    - all
  scope:
    - functional

params:
    SKIP_INSTALL: "False"

run:
  steps:
    - cd ./automated/linux/secure-boot/
    - ./secure-boot-enabled.sh -s "${SKIP_INSTALL}"
    - ../../utils/send-to-lava.sh ./output/result.txt
