Skip to content
This repository
Browse code

a test script for panel plugins

  • Loading branch information...
commit a4889c63487159d0079979864e61b5601c285d6e 1 parent a6ceb27
Petr Vanek pvanek authored

Showing 1 changed file with 29 additions and 0 deletions. Show diff stats Hide diff stats

  1. +29 0 scripts/testPanelPlugin.sh
29 scripts/testPanelPlugin.sh
... ... @@ -0,0 +1,29 @@
  1 +#!/bin/bash
  2 +#
  3 +# Example usage: test one plugin in the debugger:
  4 +# ./testPanelPlugin.sh clock gdb --args
  5 +#
  6 +# in valgrind:
  7 +#
  8 +# ./testPanelPlugin.sh clock valgrind --leak-check=full --show-reachable=yes
  9 +#
  10 +# etc.
  11 +#
  12 +
  13 +PLUGIN=$1
  14 +shift
  15 +METHOD=$@
  16 +CFG_FILE=~/.razor/razor-panel/razor-panel-testplugin.conf
  17 +
  18 +cat > $CFG_FILE <<END_OF_CONFIG
  19 +[panel]
  20 +plugins=$PLUGIN
  21 +
  22 +[$PLUGIN]
  23 +type=$PLUGIN
  24 +alignment=Left
  25 +END_OF_CONFIG
  26 +
  27 +
  28 +${METHOD} razor-panel razor-panel-testplugin.conf
  29 +

0 comments on commit a4889c6

Please sign in to comment.
Something went wrong with that request. Please try again.