Closed liangchenye closed 8 years ago
the output when running duf_test.sh
:
./duf_test.sh
start test, killing the exist 'dus' server
creating tmp storage dir: /tmp/tmp.xqo2vNY9V4/storage
creating tmp keymanager dir: /tmp/tmp.xqo2vNY9V4/km
start to compile server
go build -tags "" -o dus .
start the updater server
start to compile client
go build -tags "" -o duc .
Start listen to :0.0.0.0:1234
set enviornment and start to run tests
? github.com/containerops/dockyard/updater/client [no test files]
=== RUN TestInitConfig
--- PASS: TestInitConfig (0.00s)
=== RUN TestLoadConfig
--- PASS: TestLoadConfig (0.00s)
=== RUN TestAddRemoveConfig
--- PASS: TestAddRemoveConfig (0.00s)
PASS
ok github.com/containerops/dockyard/updater/client/utils 0.012s
=== RUN TestInitConfig
--- PASS: TestInitConfig (0.00s)
=== RUN TestOper
--- PASS: TestOper (0.53s)
PASS
ok github.com/containerops/dockyard/updater/client/utils/repo/appV1 0.536s
? github.com/containerops/dockyard/updater/server [no test files]
? github.com/containerops/dockyard/updater/server/handler [no test files]
=== RUN TestRSAGenerateEnDe
--- PASS: TestRSAGenerateEnDe (0.03s)
=== RUN TestSHA256Sign
--- PASS: TestSHA256Sign (0.00s)
=== RUN TestSHA256Verify
--- PASS: TestSHA256Verify (0.00s)
=== RUN TestGenerate
--- PASS: TestGenerate (0.00s)
=== RUN TestTime
--- PASS: TestTime (0.00s)
=== RUN TestSetting
--- PASS: TestSetting (0.00s)
=== RUN TestStorageKey
--- PASS: TestStorageKey (0.00s)
PASS
ok github.com/containerops/dockyard/updater/server/utils 0.034s
=== RUN TestLocalBasic
--- PASS: TestLocalBasic (0.00s)
=== RUN TestLocalGetPublicKey
--- PASS: TestLocalGetPublicKey (0.47s)
=== RUN TestLocalSign
--- PASS: TestLocalSign (0.01s)
PASS
ok github.com/containerops/dockyard/updater/server/utils/km/local 0.490s
=== RUN TestBasic
--- PASS: TestBasic (0.00s)
PASS
ok github.com/containerops/dockyard/updater/server/utils/protocal/appV1 0.006s
=== RUN TestLocalBasic
--- PASS: TestLocalBasic (0.00s)
=== RUN TestLocalList
--- PASS: TestLocalList (0.00s)
=== RUN TestLocalPut
--- PASS: TestLocalPut (0.00s)
=== RUN TestLocalGet
--- PASS: TestLocalGet (0.15s)
=== RUN TestRepoBasic
--- PASS: TestRepoBasic (0.24s)
PASS
ok github.com/containerops/dockyard/updater/server/utils/storage/local 0.387s
killing the testing 'dus' server
clean all the generated data
end of test
duf_test.sh
fileTODO:
Signed-off-by: liang chenye liangchenye@huawei.com