oops
This commit is contained in:
parent
9ea757722a
commit
5c24879dd8
3
tests/Internals/has_shebang_line/.run
Executable file
3
tests/Internals/has_shebang_line/.run
Executable file
@ -0,0 +1,3 @@
|
||||
echo "$1" > $tmp
|
||||
TESTING_URCHIN_INTERNALS=true . ../../../urchin
|
||||
has_shebang_line $tmp
|
@ -1 +1 @@
|
||||
run '!#/bin/bash'
|
||||
./.run '!#/bin/bash'
|
||||
|
@ -1 +1 @@
|
||||
! run ''
|
||||
! ./.run ''
|
||||
|
@ -1,4 +1,4 @@
|
||||
! run '
|
||||
! ./.run '
|
||||
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
run '!#/usr/bin/env true'
|
||||
./.run '!#/usr/bin/env true'
|
||||
|
@ -1,7 +1 @@
|
||||
export tmp=$(mktemp)
|
||||
|
||||
run() {
|
||||
TESTING_URCHIN_INTERNALS=true . ../../urchin
|
||||
echo "$1" > $tmp
|
||||
has_shebang_line $tmp
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
! run '!#/bin/sh'
|
||||
! ./.run '!#/bin/sh'
|
||||
|
Loading…
Reference in New Issue
Block a user