##// END OF EJS Templates
worker: add basic test to ensure child processes are managed well...
Yuya Nishihara -
r31117:92bca123 stable
parent child Browse files
Show More
@@ -56,3 +56,37 b' update to rev 0 with a date'
56 [255]
56 [255]
57
57
58 $ cd ..
58 $ cd ..
59
60 update with worker processes
61
62 #if no-windows
63
64 $ cat <<EOF > forceworker.py
65 > from mercurial import extensions, worker
66 > def nocost(orig, ui, costperop, nops):
67 > return worker._numworkers(ui) > 1
68 > def uisetup(ui):
69 > extensions.wrapfunction(worker, 'worthwhile', nocost)
70 > EOF
71
72 $ hg init worker
73 $ cd worker
74 $ cat <<EOF >> .hg/hgrc
75 > [extensions]
76 > forceworker = $TESTTMP/forceworker.py
77 > [worker]
78 > numcpus = 4
79 > EOF
80 $ for i in `python $TESTDIR/seq.py 1 100`; do
81 > echo $i > $i
82 > done
83 $ hg ci -qAm 'add 100 files'
84
85 $ hg update null
86 0 files updated, 0 files merged, 100 files removed, 0 files unresolved
87 $ hg update
88 100 files updated, 0 files merged, 0 files removed, 0 files unresolved
89
90 $ cd ..
91
92 #endif
General Comments 0
You need to be logged in to leave comments. Login now