Permalink
Browse files

a test script for panel plugins

  • Loading branch information...
1 parent a6ceb27 commit a4889c63487159d0079979864e61b5601c285d6e @pvanek pvanek committed Nov 29, 2011
Showing with 29 additions and 0 deletions.
  1. +29 −0 scripts/testPanelPlugin.sh
View
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# Example usage: test one plugin in the debugger:
+# ./testPanelPlugin.sh clock gdb --args
+#
+# in valgrind:
+#
+# ./testPanelPlugin.sh clock valgrind --leak-check=full --show-reachable=yes
+#
+# etc.
+#
+
+PLUGIN=$1
+shift
+METHOD=$@
+CFG_FILE=~/.razor/razor-panel/razor-panel-testplugin.conf
+
+cat > $CFG_FILE <<END_OF_CONFIG
+[panel]
+plugins=$PLUGIN
+
+[$PLUGIN]
+type=$PLUGIN
+alignment=Left
+END_OF_CONFIG
+
+
+${METHOD} razor-panel razor-panel-testplugin.conf
+

0 comments on commit a4889c6

Please sign in to comment.