Finish initial adaption of profiles

This commit is contained in:
Daniel
2018-10-30 19:13:21 +01:00
parent 247c7dca00
commit 5533203fa1
26 changed files with 1299 additions and 814 deletions

View File

@@ -0,0 +1,25 @@
package matcher
import (
"testing"
"github.com/Safing/portmaster/process"
)
func TestGetIdentifierLinux(t *testing.T) {
p := &process.Process{
Path: "/usr/lib/firefox/firefox",
}
if GetIdentificationPath(p) != "lin:lib/firefox/firefox" {
t.Fatal("mismatch!")
}
p = &process.Process{
Path: "/opt/start",
}
if GetIdentificationPath(p) != "lin:/opt/start" {
t.Fatal("mismatch!")
}
}