代码拉取完成,页面将自动刷新
同步操作将从 OpenSharperSync/UA-.NETStandard 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
echo Test the Mono console server and console client
workdir=$(pwd)
testresult=0
cd SampleApplications/Samples/NetCoreConsoleServer
echo build server
rm -r obj
msbuild /p:configuration=Debug /t:restore,build MonoConsoleServer.csproj
echo start server
cd bin/Debug/net46
mono MonoConsoleServer.exe -t 60 -a &
serverpid="$!"
cd "$workdir"
cd SampleApplications/Samples/NetCoreConsoleClient
echo build client
rm -r obj
msbuild /p:configuration=Debug /t:restore,build MonoConsoleClient.csproj
echo start client
cd bin/Debug/net46
mono MonoConsoleClient.exe -t 20 -a &
clientpid="$!"
cd "$workdir"
echo wait for client
wait $clientpid
if [ $? -eq 0 ]; then
echo "SUCCESS - Client test passed"
else
testresult=$?
echo "FAILED - Client test failed with a status of $testresult"
fi
echo wait for server
wait $serverpid
serverresult=$?
if [ $? -eq 0 ]; then
echo "SUCCESS - Server test passed"
else
serverresult=$?
echo "FAILED - Server test failed with a status of $serverresult"
fi
exit $testresult
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。