comparison tests/test-022-change-master-password.sh @ 36:f9501248b6bd

Add tests
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Wed, 07 Aug 2019 11:28:07 +0200
parents
children
comparison
equal deleted inserted replaced
35:2a8298bafec2 36:f9501248b6bd
1 # change master password and save password database
2
3 password="GeHeIm"
4 mkdir -p "${TESTS_OUTPUT_PATH}/${TEST_NAME}/"
5 cp "${TESTS_PATH}/test.psafe3" "${TESTS_OUTPUT_PATH}/${TEST_NAME}/test.psafe3"
6 printf "%s" "${password}" >"${TESTS_OUTPUT_PATH}/${TEST_NAME}/password.txt"
7 $PWM -P "${TESTS_PATH}/password.txt" \
8 "${TESTS_OUTPUT_PATH}/${TEST_NAME}/test.psafe3" <<EOF
9 ch $password
10 w
11 EOF
12 $PWM -P "${TESTS_OUTPUT_PATH}/${TEST_NAME}/password.txt" \
13 "${TESTS_OUTPUT_PATH}/${TEST_NAME}/test.psafe3" </dev/null