File: test_bisect.sh

package info (click to toggle)
plplot 5.10.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,280 kB
  • ctags: 13,512
  • sloc: ansic: 83,001; xml: 27,081; ada: 18,878; cpp: 15,966; tcl: 11,651; python: 7,075; f90: 7,058; ml: 6,974; java: 6,665; perl: 5,029; sh: 2,210; makefile: 199; lisp: 75; sed: 25; fortran: 7
file content (53 lines) | stat: -rwxr-xr-x 1,428 bytes parent folder | download | duplicates (7)
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
49
50
51
52
53
#!/bin/sh
# test script to generate an error for bisection purposes.
# Expect substantial updates to this script for each new error to be
# bisected.
#
# This particular case is used to generate the example 15 python rendering
# error in the build tree.

rm -rf \
/tmp/bisect_test_build_dir \
/tmp/bisect_test_install \
/tmp/bisect_test_install_build_dir

mkdir \
/tmp/bisect_test_build_dir \
/tmp/bisect_test_install_build_dir
SOURCE_DIR=`pwd`
cd /tmp/bisect_test_build_dir
cmake -DCMAKE_INSTALL_PREFIX=/tmp/bisect_test_install \
-DDEFAULT_NO_BINDINGS=ON -DDEFAULT_NO_DEVICES=ON -DBUILD_TEST=ON \
-DENABLE_tcl=ON -DENABLE_tk=ON -DPLD_xwin=ON -DPLD_tk=ON \
$SOURCE_DIR >& cmake.out
#make -j4 install >& make_install.out
#cd /tmp/bisect_test_install_build_dir
#cmake /tmp/bisect_test_install/share/plplot5.9.5/examples >& cmake.out
#make -j4 test_extXdrawable
#######
#make -j4 x17c
#make -j4 cairo
#examples/c/x17c -dev xcairo -np
#######
#make -j4 _plplotcmodule
#make python_examples xwin
#examples/python/x15 -dev xwin
#######
# Reduce number of examples run by test_tk_standard_examples to speed everything
# up.
cd examples/tk
patch < /tmp/speedup_patch
cd ../..
make -j4 test_tk_standard_examples

result=
while [ "$result" != "before" -a  "$result" != "after" ]; do
    echo -n "before/after? "
    read result
    if [ "$result" = "before" ]; then
	exit 0
    fi
    if [ "$result" = "after" ]; then
	exit 1
    fi
done