forked from chasebroder/SWDevProj
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
124 lines (99 loc) · 5.26 KB
/
Makefile
File metadata and controls
124 lines (99 loc) · 5.26 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
build: buildeau2
g++ --std=c++11 -g -pthread tests/generalTests.cpp -o tests/testGeneral
g++ --std=c++11 -g tests/serializationTests.cpp -o tests/testSerial
g++ --std=c++11 -g tests/mapTest.cpp -o tests/testMap
g++ --std=c++11 -g tests/arrayTest.cpp -o tests/testArray
g++ --std=c++11 -g tests/queueTest.cpp -o tests/testQueue
g++ --std=c++11 -g tests/cacheTest.cpp -o tests/testCache
g++ --std=c++11 -g tests/nodeInfoTest.cpp -o tests/testNodeInfo
g++ --std=c++11 -g tests/messageTest.cpp -o tests/testMessage
g++ --std=c++11 -g tests/blockTest.cpp -o tests/testBlock
g++ --std=c++11 -g tests/storeTest.cpp -o tests/testStore
g++ --std=c++11 -g tests/storeIntegrationTests.cpp -o tests/testIntegrationStore
g++ --std=c++11 -g tests/schemaTest.cpp -o tests/testSchema
g++ --std=c++11 -g tests/keyTest.cpp -o tests/testKey
g++ --std=c++11 -g tests/valueTest.cpp -o tests/testValue
g++ --std=c++11 -g tests/columnTest.cpp -o tests/testColumn
g++ --std=c++11 -g tests/sorerTest.cpp -o tests/testSorer
g++ --std=c++11 -g tests/distributedArrayTest.cpp -o tests/testDistributedArray
test: testTrivial testDemo testWordcount
ourTests:
./tests/testGeneral
./tests/testSerial
./tests/testMap
./tests/testArray
./tests/testQueue
./tests/testCache
./tests/testMessage
./tests/testNodeInfo
./tests/testBlock
./tests/testStore
./tests/testIntegrationStore
./tests/testSchema
./tests/testKey
./tests/testValue
./tests/testColumn
./tests/testDistributedArray
./tests/testSorer data/datafile.sor
memory:
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./tests/testBlock
#use this target if you're trying to debug a specific test in the suite
buildDebug:
g++ --std=c++11 -g tests/blockTest.cpp -o tests/testBlock
# g++ --std=c++11 -g tests/mapTest.cpp -o tests/testMap
#g++ --std=c++11 -g tests/generalTests.cpp -o tests/testGeneral
#g++ --std=c++11 -g tests/blockTest.cpp -o tests/testBlock
testDebug:
./tests/testBlock
buildeau2:
g++ --std=c++11 -g -pthread entry.cpp -o eau2
runeau2:
./eau2 -app demo -num_nodes 3 -pseudo
testTrivial:
valgrind ./eau2 -app trivial -num_nodes 1 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080
#./eau2 -app trivial -num_nodes 1 -pseudo
testDemo:
./eau2 -app demo -num_nodes 3 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 &
./eau2 -app demo -num_nodes 3 -i 1 -ip 127.0.0.2 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 &
./eau2 -app demo -num_nodes 3 -i 2 -ip 127.0.0.3 -port 8080 -serverIp 127.0.0.1 -serverPort 8080
#./eau2 -app demo -num_nodes 3 -pseudo
testDemoLM:
./eau2 -app demoLM -num_nodes 3 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 4096 &
./eau2 -app demoLM -num_nodes 3 -i 1 -ip 127.0.0.2 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 4096 &
./eau2 -app demoLM -num_nodes 3 -i 2 -ip 127.0.0.3 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 4096
testWordcount:
./eau2 -app wordcount -num_nodes 1 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080
#./eau2 -app wordcount -num_nodes 1 -pseudo
testLinus:
# ./eau2 -app linus -num_nodes 1 -pseudo
time ./eau2 -app linus -num_nodes 1 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080
testLinus2:
time ./eau2 -app linus -num_nodes 2 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 4096 &
sleep 2
./eau2 -app linus -num_nodes 2 -i 1 -ip 127.0.0.2 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 4096
testLinus3p:
time ./eau2 -app linus -num_nodes 3 -pseudo -blockSize 32768
testLinus3:
time ./eau2 -app linus -num_nodes 3 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 32768 &
sleep 2
./eau2 -app linus -num_nodes 3 -i 1 -ip 127.0.0.2 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 32768 &
sleep 2
./eau2 -app linus -num_nodes 3 -i 2 -ip 127.0.0.3 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 32768
linA:
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./eau2 -app linus -num_nodes 3 -i 0 -ip 127.0.0.1 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 32768
linB:
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./eau2 -app linus -num_nodes 3 -i 1 -ip 127.0.0.2 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 32768
linC:
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./eau2 -app linus -num_nodes 3 -i 2 -ip 127.0.0.3 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 32768
node0:
time ./eau2 -app linus -num_nodes 2 -i 0 -ip 192.168.1.198 -port 8080 -serverIp 192.168.1.198 -serverPort 8080 -blockSize 16384
node1:
time ./eau2 -app linus -num_nodes 2 -i 1 -ip 192.168.1.198 -port 8080 -serverIp 192.168.1.155 -serverPort 8080 -blockSize 16384
#node1:
# time ./eau2 -app linus -num_nodes 2 -i 1 -ip 127.0.0.2 -port 8080 -serverIp 127.0.0.1 -serverPort 8080 -blockSize 16384
.SILENT: clean
clean:
rm -f tests/testGeneral tests/testCA tests/testMemory tests/testSorer tests/testMap tests/testArray \
tests/testQueue tests/testSerial tests/testCache tests/testMessage tests/testBlock tests/testColumnArray \
tests/testStore tests/testIntegrationStore tests/testSchema tests/testKey tests/testValue \
tests/testColumn tests/testDistributedArray tests/testNodeInfo eau2