comparison tests/test-contrib-perf.t @ 29571:d1a7d9c279bb

tests: check importing modules in perf.py for historical portability To check importing modules in perf.py for historical portability, this patch lists up files by "hg files" both for "1.2" and tip, and builds up "module whitelist" check from those files. This patch uses "1.2" as earlier side version of "module whitelist", because "mercurial.error" module is a blocker for loading perf.py with Mercurial earlier than 1.2, and just importing "mercurial.error" separately isn't enough.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Fri, 20 May 2016 09:47:35 +0900
parents cbd240188e4e
children 7109d5ddeb0c
comparison
equal deleted inserted replaced
29570:cbd240188e4e 29571:d1a7d9c279bb
150 150
151 Check perf.py for historical portability 151 Check perf.py for historical portability
152 152
153 $ cd "$TESTDIR/.." 153 $ cd "$TESTDIR/.."
154 154
155 $ "$TESTDIR"/check-perf-code.py contrib/perf.py 155 $ (hg files -r 1.2 glob:mercurial/*.c glob:mercurial/*.py;
156 > hg files -r tip glob:mercurial/*.c glob:mercurial/*.py) |
157 > "$TESTDIR"/check-perf-code.py contrib/perf.py