cagebreak/test/script-executability
2024-01-02 14:23:09 +01:00

19 lines
502 B
Bash

#!/bin/bash
# Copyright 2024, project-repo and the cagebreak contributors
# SPDX-License-Identifier: MIT
# Each example script must contain the header unmodified.
# shellcheck disable=2164
cd "${MESONCURRENTCONFIGDIR}"
RESULT=0
example_all=$(find example_scripts/)
example_exec=$(find example_scripts/ -executable)
[[ $example_all = "$example_exec" ]] || RESULT=1
scripts_all=$(find scripts/)
scripts_exec=$(find scripts/ -executable)
[[ $scripts_all = "$scripts_exec" ]] || RESULT=1
exit $RESULT