digitalmars.D.learn - dustmite watch shell script (.test vs .lookahead.*)
- Anonymouse (13/23) Apr 06 2018 This repeatedly compares the $1.reduced directory with a $1.test
- Vladimir Panteleev (3/5) Apr 06 2018 Here's a more complete version that also works with -j:
- Anonymouse (2/7) Apr 07 2018 Thanks!
The dustmite wiki[0] lists the following example script for use to monitor the reduction progress: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 testerThe 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
Apr 06 2018
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
Apr 06 2018
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:Thanks!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
Apr 07 2018