test has_shebang_line
This commit is contained in:
parent
406e5c360c
commit
ce9273abfc
10
tests/Internals/has_shebang_line
Executable file
10
tests/Internals/has_shebang_line
Executable 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
1
tests/Internals/setup
Normal file
@ -0,0 +1 @@
|
||||
export tmp=$(mktemp)
|
1
tests/Internals/teardown
Normal file
1
tests/Internals/teardown
Normal file
@ -0,0 +1 @@
|
||||
rm -R "$tmp"
|
Loading…
Reference in New Issue
Block a user