source: tests/scripts/checkscripts.sh @ b3cfc89f

Last change on this file since b3cfc89f was b3cfc89f, checked in by zzz <zzz@…>, 15 months ago

remove old file from test script

  • Property mode set to 100755
File size: 2.1 KB
Line 
1#!/bin/sh
2
3# Check scripts in the I2P source for validity by running with "sh -n
4# $SCRIPTNAME". Optionally checks for bashisms if "checkbashisms" is installed.
5
6# Exits 0 if no errors, non-zero otherwise
7
8
9cd `dirname $0`/../..
10
11# Only Bourne-compatible scripts should be in this list.
12SCRIPTFILES="\
13        ./apps/desktopgui/bundle-messages.sh \
14        ./apps/i2psnark/java/bundle-messages.sh \
15        ./apps/i2psnark/launch-i2psnark \
16        ./apps/i2ptunnel/java/bundle-messages-proxy.sh \
17        ./apps/i2ptunnel/java/bundle-messages.sh \
18        ./apps/routerconsole/java/bundle-messages-news.sh \
19        ./apps/routerconsole/java/bundle-messages.sh \
20        ./apps/sam/c/examples/i2p-ping/pinger.sh \
21        ./apps/susidns/src/bundle-messages.sh \
22        ./apps/susimail/bundle-messages.sh \
23        ./core/c/build.sh \
24        ./core/c/jbigi/build-all.sh \
25        ./core/c/jbigi/build_jbigi.sh \
26        ./core/c/jbigi/build.sh \
27        ./core/c/jbigi/mbuild-all.sh \
28        ./core/c/jcpuid/build.sh \
29        ./core/c/mbuild.sh \
30        ./debian/i2p.config \
31        ./debian/i2p-doc.preinst \
32        ./debian/i2p.init \
33        ./debian/i2p.postinst \
34        ./debian/i2p.postrm \
35        ./debian/i2p.preinst \
36        ./debian/libjbigi-jni.preinst \
37        ./debian/repack.sh \
38        ./installer/resources/install_i2p_service_osx.command \
39        ./installer/resources/install_i2p_service_unix \
40        ./installer/resources/locale/bundle-messages.sh \
41        ./installer/resources/postinstall.sh \
42        ./installer/resources/runplain.sh \
43        ./installer/resources/uninstall_i2p_service_osx.command
44        ./installer/resources/uninstall_i2p_service_unix \
45        ./Slackware/i2p/i2p.SlackBuild \
46        ./Slackware/i2p/doinst.sh \
47        ./Slackware/i2p/rc.i2p \
48        ./tests/scripts/checkcerts.sh \
49        ./tests/scripts/checkpo.sh \
50        ./tests/scripts/checkutf8.sh \
51        ./tests/scripts/checkxml.sh \
52        ./tests/scripts/testjbigi.sh \
53"
54
55for script in $SCRIPTFILES; do
56    #echo "Checking $script ..."
57    if sh -n "$script" ; then : ; else
58        echo "********* FAILED CHECK FOR $script *************"
59        FAIL=1
60    fi
61    if $(which checkbashisms > /dev/null 2>&1) ; then
62        checkbashisms $script
63    fi
64done
65
66if [ "$FAIL" != "" ]
67then
68    echo "******** At least one file failed check *********"
69else
70    echo "All files passed"
71fi
72exit $FAIL
Note: See TracBrowser for help on using the repository browser.