yegor256 / cam

Classes and Metriсs (CaM): a dataset of Java classes from public open-source GitHub repositories
http://cam.yegor256.com
MIT License
25 stars 39 forks source link

`tests/metrics/test-raf.sh` not working #360

Closed dzhovi closed 2 months ago

dzhovi commented 2 months ago

running sudo make test TEST=tests/metrics/test-raf.sh results following error:

metrics/test-raf.sh:
/home/djovi/IdeaProjects/cam/steps/tests.sh: line 58: /home/djovi/IdeaProjects/cam/tests/metrics/test-raf.sh: Permission denied
❌ Non-zero exit code (TARGET=/home/djovi/IdeaProjects/cam/test-zone/metrics/test-raf.sh/target)
You can run this particular test in isolation: make test TEST=tests/metrics/test-raf.sh
make: *** [Makefile:78: test] Error 1
dzhovi commented 2 months ago

@yegor256 please help

yegor256 commented 2 months ago

@dzhovi can you please run this and show the output:

ls -al make tests/metrics/
dzhovi commented 2 months ago

@yegor256 thank you, apparently it did not have execution rights. I added it, now it works. just in case, result of ls -al make tests/metrics/ was

ls: cannot access 'make': No such file or directory
tests/metrics/:
total 72
drwxrwxr-x 2 djovi djovi 4096 сен 12 15:18 .
drwxrwxr-x 8 djovi djovi 4096 сен 11 14:30 ..
-rwxrwxr-x 1 djovi djovi 4048 сен 11 14:30 test-ast.sh
-rwxrwxr-x 1 djovi djovi 1850 сен 11 14:30 test-authors.sh
-rwxrwxr-x 1 djovi djovi 1512 сен 11 14:30 test-cloc.sh
-rwxrwxr-x 1 djovi djovi 2278 сен 11 14:30 test-cyclomatic_complexity.sh
-rwxrwxr-x 1 djovi djovi 2383 сен 11 14:30 test-getset.sh
-rwxrwxr-x 1 djovi djovi 2183 сен 11 14:30 test-hoc.sh
-rwxrwxr-x 1 djovi djovi 3529 сен 11 14:30 test-irca.sh
-rwxrwxr-x 1 djovi djovi 3108 сен 11 14:30 test-irc.sh
-rwxrwxr-x 1 djovi djovi 3835 сен 11 14:30 test-irloc.sh
-rwxrwxr-x 1 djovi djovi 2301 сен 11 14:30 test-ir.sh
-rwxrwxr-x 1 djovi djovi 2309 сен 11 14:30 test-jpeek.sh
-rwxrwxr-x 1 djovi djovi 2094 сен 11 14:30 test-multimetric.sh
-rwxrwxr-x 1 djovi djovi 1620 сен 11 14:30 test-pmd.sh
-rw-rw-r-- 1 djovi djovi 1495 сен 12 15:18 test-raf.sh
-rwxrwxr-x 1 djovi djovi 3170 сен 11 14:30 test-rfvc.sh
-rwxrwxr-x 1 djovi djovi 2246 сен 11 14:30 test-rfvh.sh
yegor256 commented 2 months ago

@dzhovi this is strange, since on my machine all files have +x permissions