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 (by running the UT script against this repo).
15UNIT_TEST_PKG=openbmc-build-scripts \
16    "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"
17
18# Now run some of our most used CI scripts
19./scripts/build-unit-test-docker
20./scripts/clean-unit-test-docker
21./scripts/build-qemu-robot-docker.sh
22
23# Run a simple CI against 'sdbusplus' to ensure the run-unit-test script works.
24cd "${WORKSPACE}"
25git clone https://github.com/openbmc/sdbusplus
26UNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"
27