##// END OF EJS Templates
debugcommands: introduce new debugrequirements command...
debugcommands: introduce new debugrequirements command This for now just prints out the list of current requirements. In future this will be helpful in reading requirements from couple of sources, and checking which requirement comes from where. Differential Revision: https://phab.mercurial-scm.org/D8632

File last commit:

r33199:ddd65b4f default
r45667:4a28f5e8 default
Show More
test-check-execute.t
24 lines | 630 B | text/troff | Tads3Lexer
/ tests / test-check-execute.t
timeless
tests: add test-check-execute.t...
r27569 #require test-repo execbit
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
timeless
tests: add test-check-execute.t...
r27569 $ cd "`dirname "$TESTDIR"`"
look for python scripts without the execute bit
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
timeless
tests: add test-check-execute.t...
r27569 [1]
look for python scripts with execute bit but not shebang
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:**.py and exec() and not grep(r"^#!.*?python")'
timeless
tests: add test-check-execute.t...
r27569 [1]
look for shell scripts with execute bit but not shebang
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")'
timeless
tests: add test-check-execute.t...
r27569 [1]
look for non scripts with no shebang
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!")'
timeless
tests: add test-check-execute.t...
r27569 [1]