#!/bin/bash
#---------------------
# Testing /usr/bin/watcher-* shebangs
#---------------------
set -e

BINARIES=('watcher-api' 'watcher-applier' 'watcher-db-manage' \
          'watcher-decision-engine' 'watcher-sync')

ret=0

for binary in "${BINARIES[@]}"; do
    if ! `dirname $0`/test-shebang.py $binary python2.7; then
        ret=1
    fi
done

exit $ret
