intergrated laplace to remotegameplay

This commit is contained in:
2021-07-24 23:21:22 +04:00
parent 8e33c63dbf
commit 90b3a076e0
23 changed files with 1836 additions and 189 deletions

31
core/barrier-kvm_test.go Normal file
View File

@@ -0,0 +1,31 @@
package core
import (
"testing"
"time"
)
// To run this test ensure you have barrier
// installed
func TestDetectBarrier(t *testing.T) {
err := DetectBarrier()
if err != nil {
t.Error()
}
}
func TestBarrier_CreateBarrierSession_DeleteBarrierSession(t *testing.T) {
var testIP Barrier
// Change this with the test machine controlling the
// keyboard and mouse
testIP.IPAddress = "192.168.0.175"
if err := testIP.CreateBarrierSession(); err != nil {
t.Error()
}
// Create delay
time.Sleep(5 * time.Second)
if err := testIP.DeleteBarrierSession(); err != nil {
t.Error()
}
}