2 Star 0 Fork 1

OpenSharperSync/UA-.NETStandard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
testmonoclientserver.sh 1019 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/OpenSharperSync/UA-.NETStandard.git
git@gitee.com:OpenSharperSync/UA-.NETStandard.git
OpenSharperSync
UA-.NETStandard
UA-.NETStandard
master

搜索帮助