-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrebuild-local.sh
More file actions
executable file
·35 lines (35 loc) · 1.33 KB
/
Copy pathrebuild-local.sh
File metadata and controls
executable file
·35 lines (35 loc) · 1.33 KB
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
rm -rf build
echo -e "ve-conf-local.sh ---> ve-conf-local.log ..."
. ./ve-conf-local.sh >& ve-conf-local.log
echo " DONE"
LIBFFIDIR=`pwd`
ok=1
echo -e "make VERBOSE=1 -C build install >& bld.log ..."
make VERBOSE=1 -C build install >& bld.log && echo " OK" || { ok=0; echo " FAILED"; }
tail -n4 bld.log
if [ "${ok}" -eq 1 ]; then
echo "Rebuilding testsuite/libffi.bhaible/ to link with new libffi ..."
cd testsuite/libffi.bhaible
make clean
make >& bld.log || { ok=0; echo "problems in testsuite/libffi.bhaible"; }
echo "build log is in testsuite/libffi.bhaible/bld.log"
fi
#if [ "${ok}" -eq 1 ]; then
echo -n "testsuite/libffi.bhaible/test-call --> tst.log ..."
make check-call >& ../../tst.log || { ok=0; echo "trouble running test-call"; }
ls -lrst | tail -n10
if [ -f failed-call ]; then cat failed-call >> ../../tst.log; fi
echo "failed-call appended to tst.log"
echo " DONE"
echo -n "testsuite/libffi.bhaible/test-callback --> tstcl.log ..."
make check-callback >& ../../tstcl.log || { ok=0; echo "trouble running test-callback"; }
ls -lrst | tail -n10
if [ -f tailed-callback ]; then cat failed-callback >> ../../tstcl.log; fi
echo "failed-callback appended to tstcl.log"
echo " DONE"
#fi
cd "${LIBFFIDIR}"
if [ "${ok}" -ne 1 ]; then
echo vim ve-conf-local.log bld.log testsuite/libffi.bhaible/bld.log tst.log -o
fi
# vim: sw=2 ts=2 et: