18eef975fSAndrew Geissler#!/bin/bash -xe 28eef975fSAndrew Geissler# 38eef975fSAndrew Geissler# Purpose: 48eef975fSAndrew Geissler# This script is responsible for testing the openbmc-build-scripts repository 58eef975fSAndrew Geissler# 68eef975fSAndrew Geissler# Required Inputs: 78eef975fSAndrew Geissler# WORKSPACE: Directory which contains the extracted openbmc-build-scripts 88eef975fSAndrew Geissler# directory 98eef975fSAndrew Geissler 108eef975fSAndrew Geisslerexport LANG=en_US.UTF8 118eef975fSAndrew Geissler 12e667f998SPatrick Williamscd "${WORKSPACE}/openbmc-build-scripts" 138eef975fSAndrew Geissler 14*0b6b53cbSPatrick Williams# Check code formatting. 15*0b6b53cbSPatrick Williams./scripts/format-code.sh . 16*0b6b53cbSPatrick Williams 178eef975fSAndrew Geissler# Now run some of our most used CI scripts 1802871c91SPatrick Williams./scripts/build-unit-test-docker 19b8fecba8SPatrick Williams./scripts/clean-unit-test-docker 208eef975fSAndrew Geissler./scripts/build-qemu-robot-docker.sh 21e667f998SPatrick Williams 22e667f998SPatrick Williams# Run a simple CI against 'sdbusplus' to ensure the run-unit-test script works. 23e667f998SPatrick Williamscd "${WORKSPACE}" 24e667f998SPatrick Williamsgit clone https://github.com/openbmc/sdbusplus 25e667f998SPatrick WilliamsUNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh" 26