4
# Build the Tcl test files.
6
msg1="# Automatically built by dist/s_test; may require local editing."
7
msg2="# Automatically built by dist/s_test; may require local editing."
10
trap 'rm -f $t; exit 0' 0 1 2 3 13 15
16
echo "set tclsh_path @TCL_TCLSH@" && \
17
echo "set tcllib .libs/libdb_tcl-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.@MODSUFFIX@" && \
19
echo "set rpc_server localhost" && \
20
echo "set rpc_path ." && \
21
echo "set rpc_testdir \$rpc_path/TESTDIR" && \
23
echo "set src_root @srcdir@/.." && \
24
echo "set test_path @srcdir@/../test" && \
26
echo "global testdir" && \
27
echo "set testdir ./TESTDIR" && \
29
echo "global dict" && \
30
echo "global util_path" && \
32
echo "global is_hp_test" && \
33
echo "global is_qnx_test" && \
34
echo "global is_windows_test" && \
36
echo "set KILL \"@db_cv_path_kill@\"") > $t
39
cmp $t $f > /dev/null 2>&1 ||
40
(echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
44
echo "set tclsh_path SET_YOUR_TCLSH_PATH" && \
45
echo "set tcllib ./Debug/libdb_tcl${DB_VERSION_MAJOR}${DB_VERSION_MINOR}d.dll" && \
47
echo "set src_root .." && \
48
echo "set test_path ../test" && \
50
echo "global testdir" && \
51
echo "set testdir ./TESTDIR" && \
53
echo "global dict" && \
54
echo "global util_path" && \
56
echo "global is_hp_test" && \
57
echo "global is_qnx_test" && \
58
echo "global is_windows_test" && \
60
echo "set KILL ./dbkill.exe") > $t
62
f=../build_win32/include.tcl
63
cmp $t $f > /dev/null 2>&1 ||
64
(echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
66
# Build the test directory TESTS file.
68
cat `egrep -l '^#[ ][ ]*TEST' ../test/*.tcl` |
69
sed -e '/^#[ ][ ]*TEST/!{' \
74
-e 's/^#[ ][ ]*TEST[ ]*//' \
81
-e 's/\n/__LINEBREAK__/g' |
83
sed -e 's/__LINEBREAK__/\
84
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\
88
sed -e 's/^[ ][ ]*$//') > $t
91
cmp $t $f > /dev/null 2>&1 ||
92
(echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)