update dev300-m58
[ooovba.git] / testshl2 / workben / codegen / selftest
blobcf5e80e513ceff159e7fadb27423b02c4e37f956
1 #!/bin/csh
3 echo "========== Generate code =========="
4 echo
6 perl ../../source/codegen/codegen.pl test.job
8 echo
9 echo "========== check files =========="
10 echo
12 ./checkfile makefile.new
13 ./checkfile export.exp
14 ./checkfile skeleton.cxx
15 ./checkfile nomethod.cxx
17 echo
18 echo "========== backup makefile =========="
19 echo
21 # backup original makefile
22 mv makefile.mk makefile.mk_orig
23 mv makefile.new makefile.mk
25 echo
26 echo "========== build new sources =========="
27 echo
29 dmake debug=t
31 echo
32 echo "========== call testshl2 =========="
33 echo
36 if ( -e ../../${INPATH}/bin/testshl2 ) then
37 ../../${INPATH}/bin/testshl2 -jobonly test.job
39 echo
40 ../../${INPATH}/bin/testshl2 ../../${INPATH}/lib/libtest.so
41 else
42 echo "testshl2 doesn't exist, test canceled."
43 endif
45 echo
46 echo "========== cleanup =========="
47 echo
49 ./cleanup