Browse Source

test(file-cheker): set permissions when running the tests

pull/1739/head
eslopfer 2 years ago
parent
commit
ef79658c09
  1. 13
      sh/tests/file-checker_test.sh

13
sh/tests/file-checker_test.sh

@ -19,7 +19,12 @@ challenge() {
diff <(echo "$submitted") <(echo "$expected")
}
challenge "./file-checker/readable-only"
challenge "./file-checker/readable-and-writable"
challenge "./file-checker/readable-executable"
challenge "./file-checker/readable-writable-executable"
chmod -xw "$script_dirS/file-checker/readable-only"
challenge "$script_dirS/file-checker/readable-only"
chmod -x "$script_dirS/file-checker/readable-and-writable"
challenge "$script_dirS/file-checker/readable-and-writable"
chmod -w "$script_dirS/file-checker/readable-and-executable"
chmod +x "$script_dirS/file-checker/readable-and-executable"
challenge "$script_dirS/file-checker/readable-and-executable"
chmod +x "$script_dirS/file-checker/readable-writable-executable"
challenge "$script_dirS/file-checker/readable-writable-executable"

Loading…
Cancel
Save