aboutsummaryrefslogtreecommitdiff
path: root/cli-tests/common.sh
AgeCommit message (Collapse)Author
2021-12-23cli-tests: add helper functions to get protector descriptorsEric Biggers
2021-09-14cli-tests/common.sh: remove argument count checksEric Biggers
These confuse the latest version of shellcheck into thinking that functions which take no arguments actually take arguments, which triggers a bunch of warnings like "Use func "$@" if function's $1 should mean script's $1", which causes 'make lint' to fail. These checks aren't too useful, so just remove them.
2020-11-26cli-tests: force processes spawned by 'expect' to have 80 column-outputEric Biggers
Otherwise the cli tests fail when executed from GitHub Actions.
2020-11-07cli-tests/common.sh: fix _user_do()Eric Biggers
Apparently, on some distros 'su' doesn't preserve $PATH. So, manually export it in the command. Also, ensure that the shell stays as bash. This is needed for some of the CLI tests to pass in Travis CI.
2020-06-13cli-tests/t_v1_policy: clean up user keyrings at end of testEric Biggers
The test user's user keyring is still linked into root's user keyring at the end of the test. This is making the test flaky, as there is a failure that only occurs the first time it is run. Fix the test to restore the initial state. This makes it consistently fail (to be fixed by the next commit).
2020-05-09Add cli-tests frameworkEric Biggers
Add a framework for writing automated tests of the fscrypt command-line tool. See cli-tests/README.md for details.