forked from FABLE-3DXRD/ImageD11
-
Notifications
You must be signed in to change notification settings - Fork 2
/
bld_test_linux.sh
executable file
·48 lines (34 loc) · 1007 Bytes
/
bld_test_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
# pip install dist/ImageD11-1.7.0-cp27-none-linux_x86_64.whl --user
# PYTHONPATH=$HOME/.local/lib/python2.7/site-packages
PYT=python
SRC=`pwd`
$PYT setup.py build_ext --inplace > bld.log 2> bld.err
PYTHONPATH=`pwd`
export PYTHONPATH=$PYTHONPATH
echo "Running tests from " $SRC " with PYTHONPATH: " $PYTHONPATH
cd $SRC/test && $PYT -c 'import ImageD11, sys; sys.stdout.write(ImageD11.__file__+"\n")'
cd $SRC/test
$PYT run_tests.py
cd $SRC
cd $SRC/test/demo
echo `pwd` test.py
$PYT test.py
cd $SRC/test/quantix/
echo `pwd` testfitfilt.py
$PYT testfitfilt.py
cd $SRC/test
echo `pwd` test_peaksearch.py
$PYT test_peaksearch.py
cd $SRC/test
## takes really ages
#python2.5 test_peaksearch.py ALL
cd $SRC/test/ken_simul
$PYT testken.py
cd $SRC/test/
$PYT testcol.py
echo
echo "Just finished testing ImageD11 from" $PYT
echo "Using PYTHONPATH=" $PYTHONPATH
cd $SRC/test && $PYT -c 'import ImageD11, sys; sys.stdout.write(ImageD11.__version__+" "+ImageD11.__file__+"\n")'
cd $SRC