Permalink
Browse files

-move: test files to new directory

-add: ignoring more files in .gitignore
  • Loading branch information...
1 parent 0f45545 commit 0ee6095f1c85f984c25009e5e67ddc27ffb73274 @yas4891 committed Oct 13, 2012
Showing with 3,819 additions and 42 deletions.
  1. +3 −0 .gitignore
  2. +17 −12 GSTEvaluation/Program.cs
  3. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/01/Reihe.vcproj
  4. 0 ...1-S01-05-P035/main-01.c → GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/01/main.c
  5. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/02/Reihe.vcproj
  6. +76 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/02/main.c
  7. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/03/Reihe.vcproj
  8. 0 ...1-S03-09-P100/main-03.c → GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/03/main.c
  9. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/04/Reihe.vcproj
  10. +36 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/04/main.c
  11. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/05/Reihe.vcproj
  12. 0 ...1-S01-05-P035/main-05.c → GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/05/main.c
  13. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/06/Reihe.vcproj
  14. +61 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/06/Ticker.cpp
  15. +53 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/06/main.c
  16. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/07/Reihe.vcproj
  17. +34 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/07/main.c
  18. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/08/Praktikum01.vcproj
  19. +82 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/08/main.c
  20. +218 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/09/Reihe.vcproj
  21. 0 ...1-S03-09-P100/main-09.c → GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/09/main.c
  22. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/10/Reihe.vcproj
  23. +46 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/10/main.c
  24. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/11/Reihe.vcproj
  25. +41 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/11/main.c
  26. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/12/Reihe.vcproj
  27. +61 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/12/main.c
  28. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/13/Reihe.vcproj
  29. +54 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/13/main.c
  30. +193 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/14/Projekt1.vcproj
  31. +40 −0 GSTEvaluation/bin/Debug/test/CompleteComparison/sources/01_01/14/main.c
  32. BIN GSTEvaluation/bin/Debug/test/CompleteComparison/template-complete.xlsx
  33. BIN GSTEvaluation/bin/Debug/test/CompleteComparison/template-complete2.xlsx
  34. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/BD03_02-S01-04-P064/main-01.c
  35. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/BD03_02-S01-04-P064/main-03.c
  36. +69 −0 GSTEvaluation/bin/Debug/test/default_set/DupV01-S03-09-P100/main-03.c
  37. +77 −0 GSTEvaluation/bin/Debug/test/default_set/DupV01-S03-09-P100/main-09.c
  38. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/DupV03-S01-04-P062/main-01.c
  39. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/DupV03-S01-04-P062/main-04.c
  40. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/DupV07-S01-03-P091/main-01.c
  41. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/DupV07-S01-03-P091/main-03.c
  42. +58 −0 GSTEvaluation/bin/Debug/test/default_set/NDV01-S01-05-P035/main-01.c
  43. +106 −0 GSTEvaluation/bin/Debug/test/default_set/NDV01-S01-05-P035/main-05.c
  44. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/TPLV04-S01-02/main-01.c
  45. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/TPLV04-S01-02/main-02.c
  46. 0 {bin/Debug/test → GSTEvaluation/bin/Debug/test/default_set}/TPLV04-S01-02/template.c
  47. +121 −0 GSTEvaluation/bin/Debug/test/tokens/main-01.c
  48. +52 −0 GSTEvaluation/bin/Debug/test/tokens/main-03.c
  49. +5 −5 GSTEvaluation/export/CompleteComparisonReport.cs
  50. BIN GSTEvaluation120807(1).vsp
  51. BIN GSTEvaluation120807.vsp
  52. BIN GSTEvaluation120809.vsp
  53. +0 −25 Performance1.psess
View
@@ -21,12 +21,15 @@
/bin/*/*.manifest
/bin/*/*.pdb
+*.psess
+*.vsp
*.log
*.log.*
# ignore user-specific Visual Studio files
GreedyStringTiling.suo
GreedyStringTiling.sln.DotSettings.user
+*.user
# ignore nUnit result file
TestResult.xml
@@ -23,13 +23,14 @@ public class Program
{
private static readonly ILog cLogger = LogManager.GetLogger(typeof(Program));
- public static readonly string TEST_SUITE_DIRECTORY = @"D:\test\MUTEX\tokenizerEval";
+ public static readonly string TEST_SUITE_DIRECTORY = @"test\default_set";
private const int testRuns = 1;
private static string src1;
private static string src2;
private static int[] Length1, Length2, Length3;
- private static readonly List<string> ResultList = new List<string>();
+ private static readonly List<string> ResultList = new List<string>();
+ #region helper for EvaluateSpeed
private static void Calculate(int len)
{
var string1 = src1.Substring(0, len);
@@ -102,15 +103,16 @@ public static void Start3()
Console.WriteLine("finished 3");
}
+ #endregion
/// <summary>
/// compares the two algorithms against each other over a rather large file (~8000 chars)
/// </summary>
private static void EvaluateSpeed()
{
XmlConfigurator.Configure(new FileInfo("log4net.xml"));
- src1 = File.ReadAllText(@"test\TPLV04-S01-02\main-01.c");
- src2 = File.ReadAllText(@"test\TPLV04-S01-02\main-02.c");
+ src1 = File.ReadAllText(@"test\default_set\TPLV04-S01-02\main-01.c");
+ src2 = File.ReadAllText(@"test\default_set\TPLV04-S01-02\main-02.c");
var testRuns = 2;
int len = 100;
@@ -168,13 +170,15 @@ private static void EvaluateSpeed()
t2.Join();
t3.Join();
- File.WriteAllLines(@"test\performance.txt", ResultList);
+ File.WriteAllLines(@"test\default_set\performance.txt", ResultList);
Console.WriteLine("finished all runs");
Console.ReadLine();
}
-
+ /// <summary>
+ /// evaluates a
+ /// </summary>
private static void EvaluateCompleteSetOfSources()
{
LexerHelper.UsedLexer = typeof(MutexCLexer);
@@ -183,7 +187,10 @@ private static void EvaluateCompleteSetOfSources()
Console.ReadLine();
}
- private static void DoStandardRun()
+ /// <summary>
+ /// just the default comparison
+ /// </summary>
+ private static void EvaluateStandardSet()
{
try
{
@@ -193,10 +200,8 @@ private static void DoStandardRun()
cLogger.DebugFormat("evaluation run finished in {0} ms", watch.ElapsedMilliseconds);
new ListResultsExport().Run(evalModel);
- File.WriteAllLines(@"D:\test\testfile.token.txt", LexerHelper.CreateLexer(@"D:\test\test.c").GetDebugTokenStrings());
-
- File.WriteAllLines(@"D:\test\tok1.txt", LexerHelper.CreateLexer(@"D:\test\main-01.c").GetDebugTokenStrings());
- File.WriteAllLines(@"D:\test\tok2.txt", LexerHelper.CreateLexer(@"D:\test\main-03.c").GetDebugTokenStrings());
+ File.WriteAllLines(@"test\tokens\tok1.txt", LexerHelper.CreateLexer(@"test\tokens\main-01.c").GetDebugTokenStrings());
+ File.WriteAllLines(@"test\tokens\tok2.txt", LexerHelper.CreateLexer(@"test\tokens\main-03.c").GetDebugTokenStrings());
}
catch (Exception ex)
{
@@ -229,7 +234,7 @@ public static void Main(string[] args)
//EvaluateCompleteSetOfSources()
- DoStandardRun();
+ EvaluateStandardSet();
/* */
}
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9,00"
+ Name="Reihe"
+ ProjectGUID="{88E9E617-CD28-49B3-950F-887D77E318D8}"
+ RootNamespace="Reihe"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath=".\main.c"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
Oops, something went wrong.

0 comments on commit 0ee6095

Please sign in to comment.