blob: ba2f2a9f08c7184e4aeb284ab131dfa2e6af0f9b [file] [log] [blame]
Andrew Geissler8eef9752020-11-11 12:07:01 -06001#!/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
Patrick Williamse667f992021-02-16 12:13:02 -060012cd "${WORKSPACE}/openbmc-build-scripts"
Andrew Geissler8eef9752020-11-11 12:07:01 -060013
Patrick Williams256ed5d2021-03-30 11:35:03 -050014# 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"
Patrick Williams0b6b53c2021-03-15 14:59:17 -050017
Andrew Geissler8eef9752020-11-11 12:07:01 -060018# Now run some of our most used CI scripts
Patrick Williams02871c92021-02-01 20:57:19 -060019./scripts/build-unit-test-docker
Patrick Williamsb8fecba2021-02-11 14:33:23 -060020./scripts/clean-unit-test-docker
Andrew Geissler8eef9752020-11-11 12:07:01 -060021./scripts/build-qemu-robot-docker.sh
Patrick Williamse667f992021-02-16 12:13:02 -060022
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"