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

BINARIES=('heat-api' 'heat-api-cfn' 'heat-engine' \
          'heat-manage' 'heat-wsgi-api' 'heat-wsgi-api-cfn')

ret=0

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

exit $ret
