Commit 16b87bba authored by Marc Gravell's avatar Marc Gravell

Linux/mono build script done

parent c270d6bb
......@@ -9,15 +9,21 @@ namespace BasicTest
{
class Program
{
static void Main()
static void Main(string[] args)
{
MassiveBulkOpsAsync(true, true);
MassiveBulkOpsAsync(true, false);
MassiveBulkOpsAsync(false, true);
MassiveBulkOpsAsync(false, false);
int AsyncOpsQty = 10000;
if(args.Length == 1)
{
int tmp;
if(int.TryParse(args[0], out tmp))
AsyncOpsQty = tmp;
}
MassiveBulkOpsAsync(AsyncOpsQty, true, true);
MassiveBulkOpsAsync(AsyncOpsQty, true, false);
MassiveBulkOpsAsync(AsyncOpsQty, false, true);
MassiveBulkOpsAsync(AsyncOpsQty, false, false);
}
const int AsyncOpsQty = 100000;
static void MassiveBulkOpsAsync(bool preserveOrder, bool withContinuation)
static void MassiveBulkOpsAsync(int AsyncOpsQty, bool preserveOrder, bool withContinuation)
{
using (var muxer = ConnectionMultiplexer.Connect("127.0.0.1"))
{
......
rm -rf StackExchange.Redis/bin/mono
rm -rf BasicTest/bin/mono
mkdir StackExchange.Redis/bin/mono
mkdir BasicTest/bin/mono
mkdir -p StackExchange.Redis/bin/mono
mkdir -p BasicTest/bin/mono
echo -e "Building StackExchange.Redis.dll ..."
mcs -recurse:StackExchange.Redis/*.cs -out:StackExchange.Redis/bin/mono/StackExchange.Redis.dll -target:library -unsafe+ -o+ -r:System.IO.Compression.dll -d:MONO
echo -e "Building BasicTest.exe ..."
mcs BasicTest/Program.cs -out:BasicTest/bin/mono/BasicTest.exe -target:exe -o+ -r:StackExchange.Redis/bin/mono/StackExchange.Redis.dll
cp StackExchange.Redis/bin/mono/*.* BasicTest/bin/mono/
echo -e "Running basic test ..."
mono BasicTest/bin/mono/BasicTest.exe 10000
......@@ -7,4 +7,5 @@
@echo Building BasicTest.exe ...
@call mcs BasicTest\Program.cs -out:BasicTest\bin\mono\BasicTest.exe -target:exe -o+ -r:StackExchange.Redis\bin\mono\StackExchange.Redis.dll
@copy StackExchange.Redis\bin\mono\*.* BasicTest\bin\mono > nul
@call BasicTest\bin\mono\BasicTest.exe
\ No newline at end of file
@echo Running basic test ...
@call BasicTest\bin\mono\BasicTest.exe 100000
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment