feat: add support for OpenBSD (#703)

Closes https://github.com/ooni/probe/issues/2052
This commit is contained in:
Dionysis Grigoropoulos 2022-03-08 13:25:33 +02:00 committed by GitHub
commit 07f8db9dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 310 additions and 4 deletions

View file

@ -173,7 +173,7 @@ var Specs = []*ErrorSpec{
// of the related golang.org/x/sys/$name library.
func mapSystemToLibrary(system string) string {
switch system {
case "darwin", "freebsd", "linux":
case "darwin", "freebsd", "openbsd", "linux":
return "unix"
case "windows":
return "windows"
@ -364,6 +364,7 @@ func writeSystemSpecificTestFile(system string) {
var SupportedSystems = []string{
"darwin",
"freebsd",
"openbsd",
"linux",
"windows",
}