sim: added run subcommand
And a nice sim of random preferred content expressions.
This commit is contained in:
parent
9571162057
commit
540bd5e1ab
4 changed files with 53 additions and 17 deletions
13
doc/sims/randomwanted.mdwn
Normal file
13
doc/sims/randomwanted.mdwn
Normal file
|
@ -0,0 +1,13 @@
|
|||
# This is a simulation of random preferred content expressions.
|
||||
# git-annex sim run this in a loop to explore if an expression can fail to
|
||||
# stabilize
|
||||
init foo
|
||||
init bar
|
||||
connect foo <-> bar
|
||||
addmulti 10 .x 100.0kB 10.0MB foo
|
||||
addmulti 10 .y 100.0kB 10.0MB foo
|
||||
randomwanted bar largerthan=1MB include=*.x anything present
|
||||
randomwanted foo largerthan=1MB include=*.x anything present
|
||||
# 40 is the maximum possible steps, in case bar wants to get all 20 files,
|
||||
# and foo wants to drop them all
|
||||
stepstable 40
|
Loading…
Add table
Add a link
Reference in a new issue