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*256ed5d8SPatrick Williams# Check code formatting (by running the UT script against this repo).
15*256ed5d8SPatrick WilliamsUNIT_TEST_PKG=openbmc-build-scripts \
16*256ed5d8SPatrick Williams    "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"
170b6b53cbSPatrick Williams
188eef975fSAndrew Geissler# Now run some of our most used CI scripts
1902871c91SPatrick Williams./scripts/build-unit-test-docker
20b8fecba8SPatrick Williams./scripts/clean-unit-test-docker
218eef975fSAndrew Geissler./scripts/build-qemu-robot-docker.sh
22e667f998SPatrick Williams
23e667f998SPatrick Williams# Run a simple CI against 'sdbusplus' to ensure the run-unit-test script works.
24e667f998SPatrick Williamscd "${WORKSPACE}"
25e667f998SPatrick Williamsgit clone https://github.com/openbmc/sdbusplus
26e667f998SPatrick WilliamsUNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"
27