Merge pull request #167 from kramermt/check_benchmark

Add -ldl to benchmark build rules
This commit is contained in:
Emery Berger 2020-10-11 19:01:15 -04:00 committed by GitHub
commit d7eeeb549f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -19,3 +19,6 @@ install:: all
bench bench_small bench_large::
@$(MAKE) -C benchmarks $@
check::
@$(MAKE) -C benchmarks check

View File

@ -4,3 +4,13 @@ DIRS := histogram kmeans linear_regression matrix_multiply \
sqlite-modified toy word_count
include $(ROOT)/common.mk
check::
@$(MAKE) -C kmeans
@$(RM) -f profile.coz
../coz run --- kmeans/kmeans
@grep -q "time=" profile.coz || { echo failure: valid profile.coz not generated; exit 1; }
@grep -q "throughput-point" profile.coz || { echo failure: throughput-point not found in profile; exit 1; }
@grep -q -P "samples\tlocation=" profile.coz || { echo failure: samples not found in profile; exit 1; }
@echo success: benchmark generated valid profile.coz
@$(RM) -f profile.coz