sapling/eden/scm/tests/test-hgsql-profiler.t
Jun Wu 75a8173a10 tests: enable chg for 572 tests
Summary:
Add `#chg-compatible` to 572 tests that seem to pass with chg enabled.
This should make them run faster.

Reviewed By: xavierd

Differential Revision: D18870507

fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
2019-12-09 15:26:29 -08:00

46 lines
861 B
Raku

#chg-compatible
$ . "$TESTDIR/hgsql/library.sh"
# Populate the db with an initial commit
$ initclient client
$ cd client
$ echo x > x
$ hg commit -qAm x
$ cd ..
$ initserver master masterrepo
# Test with stat profiler
$ cat >> master/.hg/hgrc <<EOF
> [hgsql]
> profiler=stat
> profileoutput=$TESTTMP/
> EOF
$ cd client
$ hg push -q ssh://user@dummy/master
$ cat $TESTTMP/hgsql-profile* | grep "Total Elapsed Time"
Total Elapsed Time: * (glob)
$ rm -f $TESTTMP/hgsql-profile*
$ cd ..
# Test with ls profiler
$ cat >> master/.hg/hgrc <<EOF
> [hgsql]
> profiler=ls
> profileoutput=$TESTTMP/
> EOF
$ cd client
$ echo x >> x
$ hg commit -qAm x
$ hg push -q ../master
$ cat $TESTTMP/hgsql-profile* | grep "Total Elapsed Time"
Total Elapsed Time: * (glob)
$ rm -f $TESTTMP/hgsql-profile*
$ cd ..