1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
# Run this in a git bash shell.
#
# When run with no arguments, this will test the `windows` credential store.
#
# You can test another credential store by giving its name as the first
# argument to this script. For example, you might want to specify the
# sample store (which does leak) to make sure this test is working.
#
# By default, this "shows the sausage being made" as the test runs.
# If you don't want to see that, pipe the output of this script into
# a grep for the word `TEST`, as in:
# bash run-windows-test.bash | grep TEST
# Then you will just see the test program output (on stderr)
# together with the results of the testing.
#
# You can also just ignore the output completely and look at the
# exit code: if it's 0, the test passed, if it's 1 it didn't.
#
# You must have installed procdump64a and strings64a from
# the Microsoft SysInternals suite before you run this.
# shellcheck disable=SC2086
DELAY_SECS=5 &
# shellcheck disable=SC2181
if [; then
fi
|
# shellcheck disable=SC2181
if [; then
exit_code=1
else
exit_code=0
fi