--- /dev/null
+package scoringmgr_test
+
+import (
+ "testing"
+ "time"
+
+ confdescription "configuremgr/description"
+ scoringmgr "scoringmgr"
+ mockscoringmgr "scoringmgr/mock"
+
+ "gopkg.in/sconf/ini.v0"
+ "gopkg.in/sconf/sconf.v0"
+)
+
+
+func TestBasicMockScoringMgr(t *testing.T){
+
+ scoringHandlers := scoringmgr.Init()
+ scoringHandlers.IloadScoringLibrary = mockscoringmgr.LoadScoringAdd
+ scoringHandlers.Ch = make(chan interface{}, 1024)
+
+ scoringHandlers.Listening()
+
+ time.Sleep(time.Duration(1 * time.Second))
+
+ libPath := "mock/mysum/libmysum.so"
+ confPath := "mock/mysum/mysum.conf"
+
+ cfg := new(confdescription.Doc)
+ sconf.Must(cfg).Read(ini.File(confPath))
+ scoringmgr.PushLibPath(libPath, cfg, scoringHandlers.Ch)
+
+ time.Sleep(time.Duration(5) * time.Second)
+
+
+
+
+}
\ No newline at end of file