summaryrefslogtreecommitdiff
path: root/testshl2/workben/codegen/selftest
blob: cf5e80e513ceff159e7fadb27423b02c4e37f956 (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
#!/bin/csh

echo "========== Generate code =========="
echo

perl ../../source/codegen/codegen.pl test.job

echo
echo "========== check files =========="
echo

./checkfile makefile.new
./checkfile export.exp
./checkfile skeleton.cxx
./checkfile nomethod.cxx

echo
echo "========== backup makefile =========="
echo

# backup original makefile
mv makefile.mk makefile.mk_orig
mv makefile.new makefile.mk

echo
echo "========== build new sources =========="
echo

dmake debug=t

echo
echo "========== call testshl2 =========="
echo


if ( -e ../../${INPATH}/bin/testshl2 ) then
    ../../${INPATH}/bin/testshl2 -jobonly test.job    

    echo 
    ../../${INPATH}/bin/testshl2 ../../${INPATH}/lib/libtest.so
else
    echo "testshl2 doesn't exist, test canceled."
endif

echo
echo "========== cleanup =========="
echo

./cleanup