| 1 |
#require test-repo execbit |
| 2 |
|
| 3 |
$ . "$TESTDIR/helpers-testrepo.sh" |
| 4 |
$ cd "`dirname "$TESTDIR"`" |
| 5 |
|
| 6 |
look for python scripts without the execute bit |
| 7 |
|
| 8 |
$ testrepohg files 'set:**.py and not exec() and grep(r"^#!.*?python")' |
| 9 |
[1] |
| 10 |
|
| 11 |
look for python scripts with execute bit but not shebang |
| 12 |
|
| 13 |
$ testrepohg files 'set:**.py and exec() and not grep(r"^#!.*?python")' |
| 14 |
[1] |
| 15 |
|
| 16 |
look for shell scripts with execute bit but not shebang |
| 17 |
|
| 18 |
$ testrepohg files 'set:**.sh and exec() and not grep(r"^#!.*(ba)?sh")' |
| 19 |
[1] |
| 20 |
|
| 21 |
look for non scripts with no shebang |
| 22 |
|
| 23 |
$ testrepohg files 'set:exec() and not **.sh and not **.py and not grep(r"^#!") and not contrib/openvms/**' |
| 24 |
[1] |