blob: 8128c05da1037b7a99547ac60d29d2862050a248 [file] [log] [blame]
#!/bin/bash -xe
#
# Purpose:
# This script is responsible for testing the openbmc-build-scripts repository
#
# Required Inputs:
# WORKSPACE: Directory which contains the extracted openbmc-build-scripts
# directory
export LANG=en_US.UTF8
cd "${WORKSPACE}/openbmc-build-scripts"
# Check code formatting.
./scripts/format-code.sh .
# Now run some of our most used CI scripts
./scripts/build-unit-test-docker
./scripts/clean-unit-test-docker
./scripts/build-qemu-robot-docker.sh
# Run a simple CI against 'sdbusplus' to ensure the run-unit-test script works.
cd "${WORKSPACE}"
git clone https://github.com/openbmc/sdbusplus
UNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"