-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
51 lines (43 loc) · 1.41 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using Kros.KORM.PerformanceTests.TestData;
using System.Diagnostics;
using System.IO;
namespace Kros.KORM.PerformanceTests
{
class Program
{
/// <summary>
/// Mains the specified arguments.
/// </summary>
static void Main(string[] args)
{
// Start run.bat to run performance tests
// If you want see example how can use KORM, you can see this performance tests.
// See classes BigDataPerformanceTest and NormalDataSizePerformanceTest
Process process = Process.Start("run.bat");
process.WaitForExit();
DeleteInsertUpdateTestTempFolder();
OpenFolder();
}
private static void DeleteInsertUpdateTestTempFolder()
{
string tempFolder = Path.Combine(LocationFolder(), Helper.InsertUpdateTestTempFolder);
if (Directory.Exists(tempFolder))
{
try
{
Directory.Delete(tempFolder, true);
}
catch { }
}
}
private static void OpenFolder()
{
Process.Start(Path.Combine(LocationFolder(), "Report"));
}
private static string LocationFolder()
{
var location = System.Reflection.Assembly.GetExecutingAssembly().Location;
return Path.GetDirectoryName(location);
}
}
}