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