blob: 62e5c743f513fdb67b5a871536173a8af4797cfb (
plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#! /bin/sh
MS_TEST_PATH="ms_examples"
cnt=0
run_test()
{
prog=$1
rm -f ms_db_stl_result.out
$prog -e d -s h -c 67108864 < ./ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ./ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog -e d -s b -c 67108864 <./ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog -e c -s h -c 67108864 <ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog -e c -s b -c 67108864 <ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog -e t -s h -t a -c 67108864 <ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog -e t -s h -t e -c 67108864 <ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog -e t -s b -t a -c 67108864 <ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog -e t -s b -t e -c 67108864 <ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
rm -f ms_db_stl_result.out
$prog <ms_examples/ms_db_stl.in > ms_db_stl_result.out
echo "ms db stl test and ms std stl test result diff: "
diff ms_db_stl_result.out ./ms_examples/ms_db_stl_result.expected > ms_db_stl-std_stl-results$cnt.diff
cnt=`expr $cnt + 1`
}
os=`uname -s`
#ms_example_std_stl
oldwd=`pwd`
if test $os = "CYGWIN_NT-5.1" ; then
prog=../build_windows/Win32/Debug/stl_test_msexamples.exe
run_test $prog
prog=../build_windows/Win32/Release/stl_test_msexamples.exe
run_test $prog
else
prog=./ms_examples/ms_example_db_stl
run_test $prog
fi
cd $oldwd
|