blob: ba2f2a9f08c7184e4aeb284ab131dfa2e6af0f9b [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 (by running the UT script against this repo).
UNIT_TEST_PKG=openbmc-build-scripts \
"${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.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"