summaryrefslogtreecommitdiff
path: root/tests/test-profile.t
diff options
context:
space:
mode:
authorLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
committerLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
commita498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch)
treedaf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-profile.t
downloadmercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz
Tarball conversion
Diffstat (limited to 'tests/test-profile.t')
-rw-r--r--tests/test-profile.t31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/test-profile.t b/tests/test-profile.t
new file mode 100644
index 0000000..f05a8dd
--- /dev/null
+++ b/tests/test-profile.t
@@ -0,0 +1,31 @@
+test --time
+
+ $ hg --time help -q help 2>&1 | grep time > /dev/null
+ $ hg init a
+ $ cd a
+
+#if lsprof
+
+test --profile
+
+ $ hg --profile st 2>../out
+ $ grep CallCount ../out > /dev/null || cat ../out
+
+ $ hg --profile --config profiling.output=../out st
+ $ grep CallCount ../out > /dev/null || cat ../out
+
+ $ hg --profile --config profiling.format=text st 2>../out
+ $ grep CallCount ../out > /dev/null || cat ../out
+
+ $ echo "[profiling]" >> $HGRCPATH
+ $ echo "format=kcachegrind" >> $HGRCPATH
+
+ $ hg --profile st 2>../out
+ $ grep 'events: Ticks' ../out > /dev/null || cat ../out
+
+ $ hg --profile --config profiling.output=../out st
+ $ grep 'events: Ticks' ../out > /dev/null || cat ../out
+
+#endif
+
+ $ cd ..