File: run_python_plugin_test.sh

package info (click to toggle)
tulip 6.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 196,224 kB
  • sloc: cpp: 571,851; ansic: 13,983; python: 4,105; sh: 1,555; yacc: 522; xml: 484; makefile: 168; pascal: 148; lex: 55
file content (11 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# copy a simple python plugin in the current user python plugins home dir
TULIP_VERSION=$($(dirname $(which tulip))/tulip-config --version | awk -F. '{printf("%d.%d", $1, $2)}')
TULIP_PYTHON_PLUGINS_DIR=$HOME/.Tulip-${TULIP_VERSION}/plugins/python
mkdir -p ${TULIP_PYTHON_PLUGINS_DIR}
cp python_plugin.py ${TULIP_PYTHON_PLUGINS_DIR}
# lauch test
sh tulip_run_test.sh python_plugin grid_approximation.tlp grid_approximation.tlp
# remove python plugin
rm ${TULIP_PYTHON_PLUGINS_DIR}/python_plugin.py*
# remove python cache dir to avoid to disturb following gui tests
rm -rf *pycache*