blob: 8128c05da1037b7a99547ac60d29d2862050a248 [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 Williams0b6b53c2021-03-15 14:59:17 -050014# Check code formatting.
15./scripts/format-code.sh .
16
Andrew Geissler8eef9752020-11-11 12:07:01 -060017# Now run some of our most used CI scripts
Patrick Williams02871c92021-02-01 20:57:19 -060018./scripts/build-unit-test-docker
Patrick Williamsb8fecba2021-02-11 14:33:23 -060019./scripts/clean-unit-test-docker
Andrew Geissler8eef9752020-11-11 12:07:01 -060020./scripts/build-qemu-robot-docker.sh
Patrick Williamse667f992021-02-16 12:13:02 -060021
22# Run a simple CI against 'sdbusplus' to ensure the run-unit-test script works.
23cd "${WORKSPACE}"
24git clone https://github.com/openbmc/sdbusplus
25UNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh"