File: simple-test

package info (click to toggle)
lightproof 1.6%2Bgit20190911.c299ddd-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: python: 1,363; xml: 48; makefile: 35; sh: 11
file content (13 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

for dir in /usr/lib/libreoffice/share/extensions/lightproof_*/; do
    echo "Checking $dir"
    PYTHONPATH="$dir:$dir/pythonpath/" python3 -P -c "
import Lightproof
assert '/usr/lib/libreoffice' in Lightproof.__file__, \
    'Wrong Lightproof loaded: ' + Lightproof.__file__
assert Lightproof.locales, 'locales dict is empty'
print('locales:', Lightproof.locales)
"
done