diff --git a/tests/Internals/has_shebang_line b/tests/Internals/has_shebang_line new file mode 100755 index 0000000..c9bd466 --- /dev/null +++ b/tests/Internals/has_shebang_line @@ -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 diff --git a/tests/Internals/setup b/tests/Internals/setup new file mode 100644 index 0000000..e01b6ff --- /dev/null +++ b/tests/Internals/setup @@ -0,0 +1 @@ +export tmp=$(mktemp) diff --git a/tests/Internals/teardown b/tests/Internals/teardown new file mode 100644 index 0000000..87c57be --- /dev/null +++ b/tests/Internals/teardown @@ -0,0 +1 @@ +rm -R "$tmp"