-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_on_windows_pc_votefair_ranking_test_cases.bat
80 lines (70 loc) · 7.23 KB
/
run_on_windows_pc_votefair_ranking_test_cases.bat
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
rem note: can get MinGW libraries from https://sourceforge.net/projects/mingw-w64/
path=C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\
set TestCasePath=C:\whatever_path\VoteFair-ranking-cpp\test_cases\
del votefair_ranking.exe
g++ votefair_ranking.cpp -o votefair_ranking
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_101.txt > %TestCasePath%output_votefair_ranking_test_case_101.txt
copy output_votefair_ranking_log.txt %TestCasePath%output_log_test_case_101.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_102.txt > %TestCasePath%output_votefair_ranking_test_case_102.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_103.txt > %TestCasePath%output_votefair_ranking_test_case_103.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_104.txt > %TestCasePath%output_votefair_ranking_test_case_104.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_105.txt > %TestCasePath%output_votefair_ranking_test_case_105.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_106.txt > %TestCasePath%output_votefair_ranking_test_case_106.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_107.txt > %TestCasePath%output_votefair_ranking_test_case_107.txt
copy output_votefair_ranking_log.txt %TestCasePath%output_log_test_case_107.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_108.txt > %TestCasePath%output_votefair_ranking_test_case_108.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_109.txt > %TestCasePath%output_votefair_ranking_test_case_109.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_110.txt > %TestCasePath%output_votefair_ranking_test_case_110.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_111.txt > %TestCasePath%output_votefair_ranking_test_case_111.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_112.txt > %TestCasePath%output_votefair_ranking_test_case_112.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_113.txt > %TestCasePath%output_votefair_ranking_test_case_113.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_114.txt > %TestCasePath%output_votefair_ranking_test_case_114.txt
copy output_votefair_ranking_log.txt %TestCasePath%output_log_test_case_114.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_115.txt > %TestCasePath%output_votefair_ranking_test_case_115.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_116.txt > %TestCasePath%output_votefair_ranking_test_case_116.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_117.txt > %TestCasePath%output_votefair_ranking_test_case_117.txt
copy output_votefair_ranking_log.txt %TestCasePath%output_log_test_case_117.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_118.txt > %TestCasePath%output_votefair_ranking_test_case_118.txt
.\votefair_ranking < %TestCasePath%input_votefair_ranking_test_case_119.txt > %TestCasePath%output_votefair_ranking_test_case_119.txt
type %TestCasePath%output_votefair_ranking_test_case_101.txt > %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_102.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_103.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_104.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_105.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_106.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_107.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_108.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_109.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_110.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_111.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_112.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_113.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_114.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_115.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_116.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_117.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_118.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%output_votefair_ranking_test_case_119.txt >> %TestCasePath%combined_output_all_cases.txt
type %TestCasePath%answer_expected_for_case_101.txt > %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_102.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_103.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_104.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_105.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_106.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_107.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_108.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_109.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_110.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_111.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_112.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_113.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_114.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_115.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_116.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_117.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_118.txt >> %TestCasePath%answers_expected_all_cases.txt
type %TestCasePath%answer_expected_for_case_119.txt >> %TestCasePath%answers_expected_all_cases.txt
rem note: instead of kdiff3 you can use any of the tools listed at:
rem https://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools
"C:/Program Files (x86)/KDiff3/kdiff3.exe" %TestCasePath%combined_output_all_cases.txt %TestCasePath%answers_expected_all_cases.txt
pause