@@ -39,15 +39,23 @@ jobs:
3939 run : |
4040 cd build
4141 cmake .. -DBUILD_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
42- make -j$(nproc) toy lock_test
42+ make -j$(nproc) toy lock_test kmeans
4343
4444 - name : Verify build artifacts
4545 run : |
4646 test -f build/libcoz/libcoz.so
4747 test -x build/benchmarks/toy/toy
4848 test -x build/benchmarks/lock_test/lock_test
49+ test -x build/benchmarks/kmeans/kmeans
4950 echo "Build artifacts verified"
5051
52+ - name : Run unit tests
53+ run : |
54+ cd build
55+ ctest --output-on-failure -j$(nproc)
56+ rm -f profile.jsonl
57+ echo "Unit tests passed"
58+
5159 - name : Run toy benchmark with coz
5260 run : |
5361 cd build
@@ -115,7 +123,7 @@ jobs:
115123 obj = json.loads(line)
116124 if obj.get('type') == 'experiment':
117125 current_exp = obj
118- elif obj.get('type') == 'throughput_point ' and current_exp:
126+ elif obj.get('type') == 'throughput-point ' and current_exp:
119127 current_exp['delta'] = float(obj['delta'])
120128 experiments.append(current_exp)
121129 current_exp = None
@@ -192,7 +200,7 @@ jobs:
192200 obj = json.loads(line)
193201 if obj.get('type') == 'experiment':
194202 current_exp = obj
195- elif obj.get('type') == 'throughput_point ' and current_exp:
203+ elif obj.get('type') == 'throughput-point ' and current_exp:
196204 current_exp['delta'] = float(obj['delta'])
197205 experiments.append(current_exp)
198206 current_exp = None
0 commit comments