github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/plugin/rpcplugin/sandbox/sandbox_test.go (about) 1 // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 4 package sandbox 5 6 import ( 7 "testing" 8 ) 9 10 // TestCheckSupport is here for debugging purposes and has no assertions. You can quickly test 11 // sandboxing support with various systems by compiling the test executable and running this test on 12 // your target systems. For example, with docker, executed from the root of the repo: 13 // 14 // docker run --rm -it -w /go/src/github.com/mattermost/mattermost-server 15 // -v $(pwd):/go/src/github.com/mattermost/mattermost-server golang:1.9 16 // go test -c ./plugin/rpcplugin 17 // 18 // docker run --rm -it --privileged -w /opt/mattermost 19 // -v $(pwd):/opt/mattermost centos:6 20 // ./rpcplugin.test --test.v --test.run TestCheckSupport 21 func TestCheckSupport(t *testing.T) { 22 if err := CheckSupport(); err != nil { 23 t.Log(err.Error()) 24 } 25 }