In developing/testing OSS libraries I can replicate a clean Linux fs using containers. However, if I want to test oss libs for MacOS end users, I seem to be in a bit of a quandary. Is there any way to create a clean fs on MacOS that I can test libraries with? Perhaps using chroot? Can someone explain exactly instead of just saying "use chroot"?
Asked
Active
Viewed 34 times
0
Alexander Mills
- 395
- 1
- 3
- 11
2 Answers
2
I don't think you can containerize MacOS, but you could create a Mac OS VM and snapshot it, that way you can easily restore to the same exact Mac OS version for each test.
Brandon Helwig
- 121
- 1
0
From what I can tell so far, the best way to replicate a clean MacOS fs on Linux is to use a VM. These instructions should suffice:
https://www.raywenderlich.com/1448-introduction-to-open-source-swift-on-linux
Alexander Mills
- 395
- 1
- 3
- 11