summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2020-03-15 14:45:32 -0400
committerRyan Geary <rtgnj42@gmail.com>2020-03-15 14:45:32 -0400
commitdfc95865d4801f106268585f00982963dac84c13 (patch)
treef356e7ed704a3dd3faed09de9d8e5b72726d0b09
parentb6d3e4ba5a4e714405cca6f66d9b0433abf74654 (diff)
Add test and bench rules to Makefile
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5dea5a3..4c8198a 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,16 @@ flamegraph_commit: release
perf record --call-graph dwarf,16384 -e cpu-clock -F 997 target/release/choose -i test/long_long_long_long.txt 3:5
perf script | stackcollapse-perf.pl | stackcollapse-recursive.pl | c++filt | flamegraph.pl > flamegraphs/`git log -n 1 --pretty=format:"%h"`.svg
+.PHONY: test
+test:
+ test/e2e_test.sh
+
+bench: release
+ test/bench.sh working
+
+bench_commit: release
+ test/bench.sh `git log -n 1 --pretty=format:"%h"`
+
.PHONY: release
release:
cargo build --release