running unit test CI framework on a mac

Andrew Geissler geissonator at gmail.com
Fri Sep 13 04:08:59 AEST 2019


A patch series was merged today that allows our CI unit test infrastructure
to be run on a mac computer.
https://gerrit.openbmc-project.xyz/c/openbmc/openbmc-build-scripts/+/24923

I didn't take the best of notes but I believe this is all I had to do to
get it working:

# install docker
(just internet search install directions)

# Install flock
https://github.com/discoteq/flock
brew tap discoteq/discoteq
brew install flock

# install newer bash and set as default
https://itnext.io/upgrading-bash-on-macos-7138bd1066ba

$ sw_vers
ProductName:    Mac OS X
ProductVersion:    10.14.6
BuildVersion:    18G95
$ ./openbmc-build-scripts/build-unit-test-docker.sh
...
Successfully built 10229cd01923
Successfully tagged openbmc/ubuntu-unit-test:latest
+ cleanup
+ local status=0
+ [[ -n /var/folders/d5/xkfh741n1vbg4khjdtwzw1gw0000gn/T/tmp.CptHYwFh ]]
+ rm -f /var/folders/d5/xkfh741n1vbg4khjdtwzw1gw0000gn/T/tmp.CptHYwFh
+ trap - EXIT ERR
+ exit 0

Let me know if you run into any issues.

Andrew


More information about the openbmc mailing list