Andrew Geissler | 8eef975 | 2020-11-11 12:07:01 -0600 | [diff] [blame] | 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 | |
| 10 | export LANG=en_US.UTF8 |
| 11 | |
Patrick Williams | e667f99 | 2021-02-16 12:13:02 -0600 | [diff] [blame] | 12 | cd "${WORKSPACE}/openbmc-build-scripts" |
Andrew Geissler | 8eef975 | 2020-11-11 12:07:01 -0600 | [diff] [blame] | 13 | |
Patrick Williams | 256ed5d | 2021-03-30 11:35:03 -0500 | [diff] [blame] | 14 | # Check code formatting (by running the UT script against this repo). |
| 15 | UNIT_TEST_PKG=openbmc-build-scripts \ |
| 16 | "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh" |
Patrick Williams | 0b6b53c | 2021-03-15 14:59:17 -0500 | [diff] [blame] | 17 | |
Andrew Geissler | 8eef975 | 2020-11-11 12:07:01 -0600 | [diff] [blame] | 18 | # Now run some of our most used CI scripts |
Patrick Williams | 02871c9 | 2021-02-01 20:57:19 -0600 | [diff] [blame] | 19 | ./scripts/build-unit-test-docker |
Patrick Williams | b8fecba | 2021-02-11 14:33:23 -0600 | [diff] [blame] | 20 | ./scripts/clean-unit-test-docker |
Andrew Geissler | 8eef975 | 2020-11-11 12:07:01 -0600 | [diff] [blame] | 21 | ./scripts/build-qemu-robot-docker.sh |
Patrick Williams | e667f99 | 2021-02-16 12:13:02 -0600 | [diff] [blame] | 22 | |
| 23 | # Run a simple CI against 'sdbusplus' to ensure the run-unit-test script works. |
| 24 | cd "${WORKSPACE}" |
| 25 | git clone https://github.com/openbmc/sdbusplus |
| 26 | UNIT_TEST_PKG=sdbusplus "${WORKSPACE}/openbmc-build-scripts/run-unit-test-docker.sh" |