{"action":"created","issue":{"url":"https://api.github.com/repos/cth103/plugin-torture/issues/2","labels_url":"https://api.github.com/repos/cth103/plugin-torture/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cth103/plugin-torture/issues/2/comments","events_url":"https://api.github.com/repos/cth103/plugin-torture/issues/2/events","html_url":"https://github.com/cth103/plugin-torture/issues/2","id":81043276,"number":2,"title":"feature request: add a wrapper script.","user":{"login":"magnetophon","id":7645711,"avatar_url":"https://avatars.githubusercontent.com/u/7645711?v=3","gravatar_id":"","url":"https://api.github.com/users/magnetophon","html_url":"https://github.com/magnetophon","followers_url":"https://api.github.com/users/magnetophon/followers","following_url":"https://api.github.com/users/magnetophon/following{/other_user}","gists_url":"https://api.github.com/users/magnetophon/gists{/gist_id}","starred_url":"https://api.github.com/users/magnetophon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnetophon/subscriptions","organizations_url":"https://api.github.com/users/magnetophon/orgs","repos_url":"https://api.github.com/users/magnetophon/repos","events_url":"https://api.github.com/users/magnetophon/events{/privacy}","received_events_url":"https://api.github.com/users/magnetophon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-26T16:41:44Z","updated_at":"2015-05-30T08:25:22Z","closed_at":null,"body":"I'm developing a wrapper script around plugin-torture, to make possibly unsafe plugins temporarily disappear from the system.\r\nIt's far from done, but I'd like to know if something like this might be interesting to include:\r\n\r\n``` zsh\r\n#!/usr/bin/env zsh\r\n# todo:\r\n# check each plugin in a .so: use the -i option to select the index of ladspa plugins\r\n# make it work propery when some plugins in a set ar OK, and some are not.\r\n# make an option to reset the plugin paths\r\n# include the results of lv2bm: if a plugin has a wide range of cpu-usage: remove it.\r\n# make a version that tests jack programs\r\n#\r\nDATE=`date +%d-%m-%Y---%H-%M-%S`\r\nDIR=~/plugin-torture/$DATE\r\n\r\nrm -rf ~/plugin-torture/safeLadspa/ &&\r\nrm -rf ~/plugin-torture/safeLV2/ &&\r\nmkdir -p ~/plugin-torture/safeLadspa &&\r\nmkdir -p ~/plugin-torture/safeLV2 &&\r\nmkdir -p $DIR &&\r\n\r\nif [ $LADSPA_PATH != ~/plugin-torture/safeLadspa ]; then\r\n  export OLD_LADSPA_PATH=$LADSPA_PATH\r\nfi\r\n\r\nif [ $LV2_PATH != ~/plugin-torture/safeLV2 ]; then\r\n  export OLD_LV2_PATH=$LV2_PATH\r\nfi\r\n\r\nfor plugins  (${(s.:.)OLD_LADSPA_PATH}/*;) {\r\n  analyseplugin $plugins | grep 'Hard Real-Time'\r\n  if [ $? -eq 0 ]; then\r\n    plugin-torture --evil -d -a --ladspa --plugin $plugins | tee >(>> $DIR/ladspa-evil.txt) | grep 'WARNING'\r\n    if [ $? -eq 1 ]; then\r\n     ln -s $plugins ~/plugin-torture/safeLadspa\r\n    fi\r\n  fi\r\n}\r\n\r\nfor plugins  (${(s.:.)OLD_LV2_PATH}/*;) {\r\n  if [ -f $plugins/manifest.ttl ]; then\r\n    cat $plugins/*.ttl | grep 'hardRTCapable'\r\n    if [ $? -eq 0 ]; then\r\n      plugin-torture --evil -d -a --lv2 --plugin $plugins/manifest.ttl | tee >(>> $DIR/lv2-evil.txt) | grep 'WARNING'\r\n      if [ $? -eq 1 ]; then\r\n         ln -s $plugins ~/plugin-torture/safeLV2\r\n      fi\r\n    fi\r\n  fi\r\n  }\r\n\r\nexport LADSPA_PATH=~/plugin-torture/safeLadspa\r\nexport LV2_PATH=~/plugin-torture/safeLV2\r\n\r\n#open\r\nurxvtc -e $EDITOR $DIR/* &\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/cth103/plugin-torture/issues/comments/107008259","html_url":"https://github.com/cth103/plugin-torture/issues/2#issuecomment-107008259","issue_url":"https://api.github.com/repos/cth103/plugin-torture/issues/2","id":107008259,"user":{"login":"magnetophon","id":7645711,"avatar_url":"https://avatars.githubusercontent.com/u/7645711?v=3","gravatar_id":"","url":"https://api.github.com/users/magnetophon","html_url":"https://github.com/magnetophon","followers_url":"https://api.github.com/users/magnetophon/followers","following_url":"https://api.github.com/users/magnetophon/following{/other_user}","gists_url":"https://api.github.com/users/magnetophon/gists{/gist_id}","starred_url":"https://api.github.com/users/magnetophon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnetophon/subscriptions","organizations_url":"https://api.github.com/users/magnetophon/orgs","repos_url":"https://api.github.com/users/magnetophon/repos","events_url":"https://api.github.com/users/magnetophon/events{/privacy}","received_events_url":"https://api.github.com/users/magnetophon/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T08:25:22Z","updated_at":"2015-05-30T08:25:22Z","body":"Thank YOU!  :)\r\n\r\nNow how do we test al plugins in a .so?"}}