1#!/bin/bash -xe 2# 3# Purpose: 4# This script is responsible for testing the openbmc-build-scripts repository 5# 6# Required Inputs: 7# WORKSPACE: Directory which contains the extracted openbmc-build-scripts 8# directory 9 10export LANG=en_US.UTF8 11 12cd "${WORKSPACE}/openbmc-build-scripts" 13 14# Check code formatting. 15./scripts/format-code.sh . 16 17# Now run some of our most used CI scripts 18./scripts/build-unit-test-docker 19./scripts/clean-unit-test-docker 20./scripts/build-qemu-robot-docker.sh 21 22# Run a simple CI against 'sdbusplus' to ensure the run-unit-test script works. 23cd "${WORKSPACE}" 24git clone https://github.com/openbmc/sdbusplus 25UNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh" 26