1#!/bin/sh
2# test script to generate an error for bisection purposes.
3# Expect substantial updates to this script for each new error to be
4# bisected.
5#
6# This particular case is used to generate the example 15 python rendering
7# error in the build tree.
8
9rm -rf \
10/tmp/bisect_test_build_dir \
11/tmp/bisect_test_install \
12/tmp/bisect_test_install_build_dir
13
14mkdir \
15/tmp/bisect_test_build_dir \
16/tmp/bisect_test_install_build_dir
17SOURCE_DIR=`pwd`
18cd /tmp/bisect_test_build_dir
19cmake -DCMAKE_INSTALL_PREFIX=/tmp/bisect_test_install \
20-DDEFAULT_NO_BINDINGS=ON -DDEFAULT_NO_DEVICES=ON -DBUILD_TEST=ON \
21-DENABLE_tcl=ON -DENABLE_tk=ON -DPLD_xwin=ON -DPLD_tk=ON \
22$SOURCE_DIR >& cmake.out
23#make -j4 install >& make_install.out
24#cd /tmp/bisect_test_install_build_dir
25#cmake /tmp/bisect_test_install/share/plplot5.9.5/examples >& cmake.out
26#make -j4 test_extXdrawable
27#######
28#make -j4 x17c
29#make -j4 cairo
30#examples/c/x17c -dev xcairo -np
31#######
32#make -j4 _plplotcmodule
33#make python_examples xwin
34#examples/python/x15 -dev xwin
35#######
36# Reduce number of examples run by test_tk_standard_examples to speed everything
37# up.
38cd examples/tk
39patch < /tmp/speedup_patch
40cd ../..
41make -j4 test_tk_standard_examples
42
43result=
44while [ "$result" != "before" -a  "$result" != "after" ]; do
45    echo -n "before/after? "
46    read result
47    if [ "$result" = "before" ]; then
48	exit 0
49    fi
50    if [ "$result" = "after" ]; then
51	exit 1
52    fi
53done
54