# Empty the complete log.
> testsuite.log
-find ${build_path} -name "*.gcda" -delete
+find "${build_path}" -name "*.gcda" -delete
run_test ./su/01/su_root.test
run_test ./su/01/su_user.test
-find ${build_path} -name "*.gcda" -exec chmod a+rw {} \;
+find "${build_path}" -name "*.gcda" -exec chmod a+rw {} \;
run_test ./su/02/env_FOO-options_--login
run_test ./su/02/env_FOO-options_--login_bash
run_test ./su/02/env_FOO-options_--preserve-environment
run_test ./su/12_su_child_failure/su.test
run_test ./su/13_su_child_success/su.test
run_test ./chage/01/run
-find ${build_path} -name "*.gcda" -exec chmod a+rw {} \;
+find "${build_path}" -name "*.gcda" -exec chmod a+rw {} \;
run_test ./chage/02/run
run_test ./chage/03_chsh_usage/chage.test
run_test ./chage/04_chsh_usage_invalid_option/chage.test
run_test ./login/01_login_prompt/login.test
run_test ./login/02_login_user/login.test
run_test ./login/03_login_check_tty/login.test
-find ${build_path} -name "*.gcda" -exec chmod a+rw {} \;
+find "${build_path}" -name "*.gcda" -exec chmod a+rw {} \;
run_test ./subids/01_useradd_no_subids/useradd.test
run_test ./subids/02_useradd_with_subids/useradd.test
run_test ./subids/03_useradd_no_subgid/useradd.test
echo "$succeeded test(s) passed"
echo "$failed test(s) failed"
echo "log written in 'testsuite.log'"
-if [ "$failed" != "0" ]
+if [ "$failed" != 0 ]
then
echo "the following tests failed:"
- echo $failed_tests
+ echo "$failed_tests"
fi
-
run_test()
{
- find $build_path -name "*.gcda" -delete
- find $build_path -name "*.gcno" | while read f
+ find "$build_path" -name "*.gcda" -delete
+ find "$build_path" -name "*.gcno" | while read f
do
g=${f%gcno}gcda
touch $g
echo "$succeeded test(s) passed"
echo "$failed test(s) failed"
echo "log written in 'testsuite.log'"
-if [ "$failed" != "0" ]
+if [ "$failed" != 0 ]
then
echo "the following tests failed:"
- echo $failed_tests
+ echo "$failed_tests"
fi
-
# Empty the complete log.
> testsuite.log
-find ${build_path} -name "*.gcda" -delete
+find "${build_path}" -name "*.gcda" -delete
run_test ./su/01/su_root.test
run_test ./su/01/su_user.test
-find ${build_path} -name "*.gcda" -exec chmod a+rw {} \;
+find "${build_path}" -name "*.gcda" -exec chmod a+rw {} \;
run_test ./su/02/env_FOO-options_--login
run_test ./su/02/env_FOO-options_--login_bash
run_test ./su/02/env_FOO-options_--preserve-environment
echo "$succeeded test(s) passed"
echo "$failed test(s) failed"
echo "log written in 'testsuite.log'"
-if [ "$failed" != "0" ]
+if [ "$failed" != 0 ]
then
echo "the following tests failed:"
- echo $failed_tests
+ echo "$failed_tests"
fi
-