-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_sequence.sh
executable file
·107 lines (92 loc) · 4.05 KB
/
test_sequence.sh
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/bash
clear
return_dir=`pwd`
cd "${0%/*}"
echo "Starting testing sequence, this will take a few hours..."
####GENERATES GENERAL/AVERAGE CASE TESTING FILES####
echo "Generating average case test files."
./setup_words.sh
####TEST SCRIPTS USING WORDS TEXT FILES####
echo "Timing solutions over number of words per file."
./time_num_words.sh
echo "Timing solutions over length of base string."
./time_len_base.sh
echo "Timing hash map solutions over various load factors."
./time_load_factor.sh
####DELETES GENERAL/AVERAGE CASE TESTING FILES####
echo "Removing average case files."
./remove_words.sh
####GENERATES INITIAL WORST CASE TESTING FILES (ALL DIFFERENT CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh z 0
####TEST SCRIPTS FOR INITIAL WORST CASE SCENARIO(ALL DIFFERENT CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh z 0
####DELETES INITIAL WORST CASE TESTING FILES####
echo "Removing initial worst case files."
./remove_worst_case.sh
####GENERATES 2nd WORST CASE TESTING FILES (ALL DIFFERENT CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh z 1
####TEST SCRIPTS FOR 2nd WORST CASE SCENARIO (ALL DIFFERENT CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh z 1
####DELETES 2nd WORST CASE TESTING FILES ####
echo "Removing initial worst case files."
./remove_worst_case.sh
####GENERATES 3rd WORST CASE TESTING FILES (ALL DIFFERENT CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh z 2
####TEST SCRIPTS FOR 3rd WORST CASE SCENARIO (ALL DIFFERENT CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh z 2
####DELETES 3rd WORST CASE TESTING FILES####
echo "Removing initial worst case files."
./remove_worst_case.sh
####GENERATES 4th WORST CASE TESTING FILES (ALL DIFFERENT CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh z 3
####TEST SCRIPTS FOR 4th WORST CASE SCENARIO (ALL DIFFERENT CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh z 3
####DELETES 4th WORST CASE TESTING FILE ####
echo "Removing initial worst case files."
./remove_worst_case.sh
####GENERATES INITIAL WORST CASE TESTING FILE (ALL SAME CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh A 0
####TEST SCRIPTS FOR INITIAL WORST CASE SCENARIO (ALL SAME CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh A 0
####DELETES INITIAL WORST CASE TESTING FILES####
echo "Removing initial worst case files."
./remove_worst_case.sh
####GENERATES 2nd WORST CASE TESTING FILES (ALL SAME CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh A 1
####TEST SCRIPTS FOR 2nd WORST CASE SCENARIO (ALL SAME CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh A 1
####DELETES 2nd WORST CASE TESTING FILES####
echo "Removing initial worst case files."
./remove_worst_case.sh
####GENERATES 3rd WORST CASE TESTING FILES (ALL SAME CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh A 2
####TEST SCRIPTS FOR 3rd WORST CASE SCENARIO (ALL SAME CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh A 2
####DELETES 3rd WORST CASE TESTING FILES####
echo "Removing initial worst case files."
./remove_worst_case.sh
####GENERATES 4th WORST CASE TESTING FILES (ALL SAME CHARS)####
echo "Generating initial worst case test files."
./setup_worst_case.sh A 3
####TEST SCRIPTS FOR 4th WORST CASE SCENARIO (ALL SAME CHARS)####
echo "Timing solutions over length of base string in the initial worst case scenario."
./time_worst_case.sh A 3
####DELETES 4th WORST CASE TESTING FILE####
echo "Removing initial worst case files."
./remove_worst_case.sh
echo "Testing sequence completed."
cd $return_dir