Mercurial > projects > pwm
annotate tests/test-022-change-master-password.sh @ 42:fb995e5d54e9 version-1
Release version 1
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Tue, 20 Aug 2019 21:26:55 +0200 |
parents | f9501248b6bd |
children |
rev | line source |
---|---|
36 | 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 |