Thread overview | |||||
---|---|---|---|---|---|
|
April 06, 2018 dustmite watch shell script (.test vs .lookahead.*) | ||||
---|---|---|---|---|
| ||||
The dustmite wiki[0] lists the following example script for use to monitor the reduction progress: > #!/bin/sh > watch -cn 0.1 "zsh -c 'ls -al $1.reduced/**/*.d ; colordiff -ru $1.reduced $1.test'" This repeatedly compares the $1.reduced directory with a $1.test directory. The dustmite run however doesn't seem to produce a (stable) $1.test, only several $1.lookahead.* directories. > drwxr-xr-x 1 zorael zorael 362 apr 6 17:21 . > drwxr-xr-x 1 zorael zorael 24 apr 6 17:21 source.lookahead.7170 > drwxr-xr-x 1 zorael zorael 24 apr 6 17:21 source.lookahead.7169 > drwxr-xr-x 1 zorael zorael 24 apr 6 17:21 source > -rwxr-xr-x 1 zorael zorael 186 apr 6 10:23 tester The command used was `dustmite -j2 --strip-comments source /abs/path/to/tester`. I'm limiting the number of jobs to 2 so as not to run out of memory. dmd is a bit unreasonable. Why is there no .test directory? Changing the script to $1.lookahead.* doesn't work as it passes (jobs+1) arguments to colordiff, which only accepts 2. Is there any way to glob only one .lookahead.* directory? Some other solution? [0]: https://github.com/CyberShadow/DustMite/wiki |
April 06, 2018 Re: dustmite watch shell script (.test vs .lookahead.*) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anonymouse | On Friday, 6 April 2018 at 15:35:59 UTC, Anonymouse wrote: > The dustmite wiki[0] lists the following example script for use to monitor the reduction progress: Here's a more complete version that also works with -j: https://gist.github.com/CyberShadow/2e8f01895c248111c171e982313bb008 |
April 07, 2018 Re: dustmite watch shell script (.test vs .lookahead.*) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | On Friday, 6 April 2018 at 15:42:04 UTC, Vladimir Panteleev wrote:
> On Friday, 6 April 2018 at 15:35:59 UTC, Anonymouse wrote:
>> The dustmite wiki[0] lists the following example script for use to monitor the reduction progress:
>
> Here's a more complete version that also works with -j:
>
> https://gist.github.com/CyberShadow/2e8f01895c248111c171e982313bb008
Thanks!
|
Copyright © 1999-2021 by the D Language Foundation