test has_shebang_line

This commit is contained in:
Thomas Levine 2016-03-31 19:05:02 +00:00
parent 406e5c360c
commit ce9273abfc
3 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
TESTING_URCHIN_INTERNALS=true . ../../urchin
echo '!#/bin/sh' > $tmp
! has_shebang_line $tmp
echo '!#/bin/bash' > $tmp
has_shebang_line $tmp
echo '!#/usr/bin/env true' > $tmp
has_shebang_line $tmp

1
tests/Internals/setup Normal file
View File

@ -0,0 +1 @@
export tmp=$(mktemp)

1
tests/Internals/teardown Normal file
View File

@ -0,0 +1 @@
rm -R "$tmp"