Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clevis 9a41f41 test results on Ubuntu 18.04 and 19.10 as user and root
ninja: Entering directory `build'
[0/1] Running all tests.
1/10 bind-wrong-pass-luks1 OK 5.64 s
2/10 bind-luks1 FAIL 10.88 s
3/10 unbind-unbound-slot-luks1 OK 3.23 s
4/10 unbind-luks1 FAIL 10.53 s
5/10 bind-key-file-non-interactive FAIL 10.96 s
6/10 bind-pass-with-newline FAIL 11.35 s
7/10 bind-pass-with-newline-keyfile FAIL 8.97 s
8/10 pin-sss OK 1.61 s
9/10 pin-test OK 0.09 s
10/10 pin-tang OK 1.08 s
OK: 5
FAIL: 5
SKIP: 0
TIMEOUT: 0
The output from the failed tests:
2/10 bind-luks1 FAIL 10.88 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-luks1
--- stdout ---
--- stderr ---
++ basename /home/aiadmin/workspace/clevis/src/luks/tests/bind-luks1
+ TEST=bind-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.r7AGhnHNxA
+ ADV=/tmp/tmp.r7AGhnHNxA/adv.jws
+ create_tang_adv /tmp/tmp.r7AGhnHNxA/adv.jws
+ local adv=/tmp/tmp.r7AGhnHNxA/adv.jws
+ local SIG=/tmp/tmp.r7AGhnHNxA/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.r7AGhnHNxA/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.r7AGhnHNxA/sig.jwk -i /tmp/tmp.r7AGhnHNxA/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.r7AGhnHNxA/sig.jwk -o /tmp/tmp.r7AGhnHNxA/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.r7AGhnHNxA/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.r7AGhnHNxA/adv.jws"}'
+ DEV=/tmp/tmp.r7AGhnHNxA/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ new_device luks1 /tmp/tmp.r7AGhnHNxA/luks1-device
+ local LUKS=luks1
+ local DEV=/tmp/tmp.r7AGhnHNxA/luks1-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.r7AGhnHNxA/luks1.cached
+ '[' -f /tmp/tmp.r7AGhnHNxA/luks1.cached ']'
+ fallocate -l16M /tmp/tmp.r7AGhnHNxA/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode --force-password /tmp/tmp.r7AGhnHNxA/luks1-device
+ cp -f /tmp/tmp.r7AGhnHNxA/luks1-device /tmp/tmp.r7AGhnHNxA/luks1.cached
+ clevis luks bind -f -d /tmp/tmp.r7AGhnHNxA/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.r7AGhnHNxA/adv.jws"}'
+ error 'bind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
+ echo 'bind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
bind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.r7AGhnHNxA ']'
+ rm -rf /tmp/tmp.r7AGhnHNxA
-------
4/10 unbind-luks1 FAIL 10.53 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/unbind-luks1
--- stdout ---
--- stderr ---
++ basename /home/aiadmin/workspace/clevis/src/luks/tests/unbind-luks1
+ TEST=unbind-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.0C99i11R5i
+ ADV=/tmp/tmp.0C99i11R5i/adv.jws
+ create_tang_adv /tmp/tmp.0C99i11R5i/adv.jws
+ local adv=/tmp/tmp.0C99i11R5i/adv.jws
+ local SIG=/tmp/tmp.0C99i11R5i/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.0C99i11R5i/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.0C99i11R5i/sig.jwk -i /tmp/tmp.0C99i11R5i/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.0C99i11R5i/sig.jwk -o /tmp/tmp.0C99i11R5i/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.0C99i11R5i/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.0C99i11R5i/adv.jws"}'
+ DEV=/tmp/tmp.0C99i11R5i/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ new_device luks1 /tmp/tmp.0C99i11R5i/luks1-device
+ local LUKS=luks1
+ local DEV=/tmp/tmp.0C99i11R5i/luks1-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.0C99i11R5i/luks1.cached
+ '[' -f /tmp/tmp.0C99i11R5i/luks1.cached ']'
+ fallocate -l16M /tmp/tmp.0C99i11R5i/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode --force-password /tmp/tmp.0C99i11R5i/luks1-device
+ cp -f /tmp/tmp.0C99i11R5i/luks1-device /tmp/tmp.0C99i11R5i/luks1.cached
+ clevis luks bind -f -d /tmp/tmp.0C99i11R5i/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.0C99i11R5i/adv.jws"}'
+ error 'unbind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
+ echo 'unbind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
unbind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.0C99i11R5i ']'
+ rm -rf /tmp/tmp.0C99i11R5i
-------
5/10 bind-key-file-non-interactive FAIL 10.96 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1
--- stderr ---
+ TEST=/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.DAoRllr4d9
+ ADV=/tmp/tmp.DAoRllr4d9/adv.jws
+ create_tang_adv /tmp/tmp.DAoRllr4d9/adv.jws
+ local adv=/tmp/tmp.DAoRllr4d9/adv.jws
+ local SIG=/tmp/tmp.DAoRllr4d9/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.DAoRllr4d9/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.DAoRllr4d9/sig.jwk -i /tmp/tmp.DAoRllr4d9/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.DAoRllr4d9/sig.jwk -o /tmp/tmp.DAoRllr4d9/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.DAoRllr4d9/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.DAoRllr4d9/adv.jws"}'
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ KEYFILE=/tmp/tmp.DAoRllr4d9/key
++ openssl rand -hex 8
+ PASS=b26212699e119e2b
+ echo -n b26212699e119e2b
+ DEV=/tmp/tmp.DAoRllr4d9/luks1-device
+ new_device_keyfile luks1 /tmp/tmp.DAoRllr4d9/luks1-device /tmp/tmp.DAoRllr4d9/key
+ local LUKS=luks1
+ local DEV=/tmp/tmp.DAoRllr4d9/luks1-device
+ local KEYFILE=/tmp/tmp.DAoRllr4d9/key
+ [[ -z /tmp/tmp.DAoRllr4d9/key ]]
+ [[ ! -f /tmp/tmp.DAoRllr4d9/key ]]
+ fallocate -l16M /tmp/tmp.DAoRllr4d9/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode /tmp/tmp.DAoRllr4d9/luks1-device /tmp/tmp.DAoRllr4d9/key
+ clevis luks bind -f -k /tmp/tmp.DAoRllr4d9/key -d /tmp/tmp.DAoRllr4d9/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.DAoRllr4d9/adv.jws"}'
+ error '/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.DAoRllr4d9/key).'
+ echo '/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.DAoRllr4d9/key).'
/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.DAoRllr4d9/key).
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.DAoRllr4d9 ']'
+ rm -rf /tmp/tmp.DAoRllr4d9
-------
6/10 bind-pass-with-newline FAIL 11.35 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1
--- stdout ---
--- stderr ---
+ TEST=/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.JWNBQzcW30
+ ADV=/tmp/tmp.JWNBQzcW30/adv.jws
+ create_tang_adv /tmp/tmp.JWNBQzcW30/adv.jws
+ local adv=/tmp/tmp.JWNBQzcW30/adv.jws
+ local SIG=/tmp/tmp.JWNBQzcW30/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.JWNBQzcW30/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.JWNBQzcW30/sig.jwk -i /tmp/tmp.JWNBQzcW30/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.JWNBQzcW30/sig.jwk -o /tmp/tmp.JWNBQzcW30/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.JWNBQzcW30/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.JWNBQzcW30/adv.jws"}'
+ DEV=/tmp/tmp.JWNBQzcW30/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ PASS='foo
bar
\\&#@@&@*!)(
5621$
'
+ new_device luks1 /tmp/tmp.JWNBQzcW30/luks1-device 'foo
bar
\\&#@@&@*!)(
5621$
'
+ local LUKS=luks1
+ local DEV=/tmp/tmp.JWNBQzcW30/luks1-device
+ local 'PASS=foo
bar
\\&#@@&@*!)(
5621$
'
+ '[' -z 'foo
bar
\\&#@@&@*!)(
5621$
' ']'
+ local DEV_CACHED=/tmp/tmp.JWNBQzcW30/luks1.cached
+ '[' -f /tmp/tmp.JWNBQzcW30/luks1.cached ']'
+ fallocate -l16M /tmp/tmp.JWNBQzcW30/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode --force-password /tmp/tmp.JWNBQzcW30/luks1-device
+ cp -f /tmp/tmp.JWNBQzcW30/luks1-device /tmp/tmp.JWNBQzcW30/luks1.cached
+ clevis luks bind -f -d /tmp/tmp.JWNBQzcW30/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.JWNBQzcW30/adv.jws"}'
+ error '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1: Binding is expected to succeed when given a correct (foo
bar
\\&#@@&@*!)(
5621$
) password.'
+ echo '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1: Binding is expected to succeed when given a correct (foo
bar
\\&#@@&@*!)(
5621$
) password.'
/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1: Binding is expected to succeed when given a correct (foo
bar
\\&#@@&@*!)(
5621$
) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.JWNBQzcW30 ']'
+ rm -rf /tmp/tmp.JWNBQzcW30
-------
7/10 bind-pass-with-newline-keyfile FAIL 8.97 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1
--- stderr ---
+ TEST=/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.2voOHcDS7T
+ ADV=/tmp/tmp.2voOHcDS7T/adv.jws
+ create_tang_adv /tmp/tmp.2voOHcDS7T/adv.jws
+ local adv=/tmp/tmp.2voOHcDS7T/adv.jws
+ local SIG=/tmp/tmp.2voOHcDS7T/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.2voOHcDS7T/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.2voOHcDS7T/sig.jwk -i /tmp/tmp.2voOHcDS7T/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.2voOHcDS7T/sig.jwk -o /tmp/tmp.2voOHcDS7T/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.2voOHcDS7T/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.2voOHcDS7T/adv.jws"}'
+ DEV=/tmp/tmp.2voOHcDS7T/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ PASS='foo
bar
\\&#@@&@*!)(
5800$
'
+ KEYFILE=/tmp/tmp.2voOHcDS7T/key
+ echo -n 'foo
bar
\\&#@@&@*!)(
5800$
'
+ new_device_keyfile luks1 /tmp/tmp.2voOHcDS7T/luks1-device /tmp/tmp.2voOHcDS7T/key
+ local LUKS=luks1
+ local DEV=/tmp/tmp.2voOHcDS7T/luks1-device
+ local KEYFILE=/tmp/tmp.2voOHcDS7T/key
+ [[ -z /tmp/tmp.2voOHcDS7T/key ]]
+ [[ ! -f /tmp/tmp.2voOHcDS7T/key ]]
+ fallocate -l16M /tmp/tmp.2voOHcDS7T/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode /tmp/tmp.2voOHcDS7T/luks1-device /tmp/tmp.2voOHcDS7T/key
+ clevis luks bind -f -k /tmp/tmp.2voOHcDS7T/key -d /tmp/tmp.2voOHcDS7T/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.2voOHcDS7T/adv.jws"}'
+ error '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.2voOHcDS7T/key) password.'
+ echo '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.2voOHcDS7T/key) password.'
/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.2voOHcDS7T/key) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.2voOHcDS7T ']'
+ rm -rf /tmp/tmp.2voOHcDS7T
-------
Full log written to /home/aiadmin/workspace/clevis/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/python3 -u /usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[0/1] Running all tests.
1/10 bind-wrong-pass-luks1 OK 5.56 s
2/10 bind-luks1 FAIL 10.65 s
3/10 unbind-unbound-slot-luks1 OK 3.25 s
4/10 unbind-luks1 FAIL 10.63 s
5/10 bind-key-file-non-interactive FAIL 10.49 s
6/10 bind-pass-with-newline FAIL 10.23 s
7/10 bind-pass-with-newline-keyfile FAIL 8.60 s
8/10 pin-sss OK 0.87 s
9/10 pin-test OK 0.07 s
10/10 pin-tang OK 0.77 s
OK: 5
FAIL: 5
SKIP: 0
TIMEOUT: 0
The output from the failed tests:
2/10 bind-luks1 FAIL 10.65 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-luks1
--- stdout ---
--- stderr ---
++ basename /home/aiadmin/workspace/clevis/src/luks/tests/bind-luks1
+ TEST=bind-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.CU8WrdMbR2
+ ADV=/tmp/tmp.CU8WrdMbR2/adv.jws
+ create_tang_adv /tmp/tmp.CU8WrdMbR2/adv.jws
+ local adv=/tmp/tmp.CU8WrdMbR2/adv.jws
+ local SIG=/tmp/tmp.CU8WrdMbR2/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.CU8WrdMbR2/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.CU8WrdMbR2/sig.jwk -i /tmp/tmp.CU8WrdMbR2/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.CU8WrdMbR2/sig.jwk -o /tmp/tmp.CU8WrdMbR2/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.CU8WrdMbR2/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.CU8WrdMbR2/adv.jws"}'
+ DEV=/tmp/tmp.CU8WrdMbR2/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ new_device luks1 /tmp/tmp.CU8WrdMbR2/luks1-device
+ local LUKS=luks1
+ local DEV=/tmp/tmp.CU8WrdMbR2/luks1-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.CU8WrdMbR2/luks1.cached
+ '[' -f /tmp/tmp.CU8WrdMbR2/luks1.cached ']'
+ fallocate -l16M /tmp/tmp.CU8WrdMbR2/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode --force-password /tmp/tmp.CU8WrdMbR2/luks1-device
+ cp -f /tmp/tmp.CU8WrdMbR2/luks1-device /tmp/tmp.CU8WrdMbR2/luks1.cached
+ clevis luks bind -f -d /tmp/tmp.CU8WrdMbR2/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.CU8WrdMbR2/adv.jws"}'
+ error 'bind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
+ echo 'bind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
bind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.CU8WrdMbR2 ']'
+ rm -rf /tmp/tmp.CU8WrdMbR2
-------
4/10 unbind-luks1 FAIL 10.63 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/unbind-luks1
--- stdout ---
--- stderr ---
++ basename /home/aiadmin/workspace/clevis/src/luks/tests/unbind-luks1
+ TEST=unbind-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.HAUFXXoWs9
+ ADV=/tmp/tmp.HAUFXXoWs9/adv.jws
+ create_tang_adv /tmp/tmp.HAUFXXoWs9/adv.jws
+ local adv=/tmp/tmp.HAUFXXoWs9/adv.jws
+ local SIG=/tmp/tmp.HAUFXXoWs9/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.HAUFXXoWs9/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.HAUFXXoWs9/sig.jwk -i /tmp/tmp.HAUFXXoWs9/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.HAUFXXoWs9/sig.jwk -o /tmp/tmp.HAUFXXoWs9/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.HAUFXXoWs9/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.HAUFXXoWs9/adv.jws"}'
+ DEV=/tmp/tmp.HAUFXXoWs9/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ new_device luks1 /tmp/tmp.HAUFXXoWs9/luks1-device
+ local LUKS=luks1
+ local DEV=/tmp/tmp.HAUFXXoWs9/luks1-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.HAUFXXoWs9/luks1.cached
+ '[' -f /tmp/tmp.HAUFXXoWs9/luks1.cached ']'
+ fallocate -l16M /tmp/tmp.HAUFXXoWs9/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode --force-password /tmp/tmp.HAUFXXoWs9/luks1-device
+ cp -f /tmp/tmp.HAUFXXoWs9/luks1-device /tmp/tmp.HAUFXXoWs9/luks1.cached
+ clevis luks bind -f -d /tmp/tmp.HAUFXXoWs9/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.HAUFXXoWs9/adv.jws"}'
+ error 'unbind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
+ echo 'unbind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.'
unbind-luks1: Binding is expected to succeed when given a correct (just-some-test-password-here) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.HAUFXXoWs9 ']'
+ rm -rf /tmp/tmp.HAUFXXoWs9
-------
5/10 bind-key-file-non-interactive FAIL 10.49 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1
--- stderr ---
+ TEST=/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.6fFZXHv1w6
+ ADV=/tmp/tmp.6fFZXHv1w6/adv.jws
+ create_tang_adv /tmp/tmp.6fFZXHv1w6/adv.jws
+ local adv=/tmp/tmp.6fFZXHv1w6/adv.jws
+ local SIG=/tmp/tmp.6fFZXHv1w6/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.6fFZXHv1w6/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.6fFZXHv1w6/sig.jwk -o /tmp/tmp.6fFZXHv1w6/adv.jws
+ jose jwk pub -s -i /tmp/tmp.6fFZXHv1w6/sig.jwk -i /tmp/tmp.6fFZXHv1w6/exc.jwk
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.6fFZXHv1w6/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.6fFZXHv1w6/adv.jws"}'
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ KEYFILE=/tmp/tmp.6fFZXHv1w6/key
++ openssl rand -hex 8
+ PASS=76f1911ea703366a
+ echo -n 76f1911ea703366a
+ DEV=/tmp/tmp.6fFZXHv1w6/luks1-device
+ new_device_keyfile luks1 /tmp/tmp.6fFZXHv1w6/luks1-device /tmp/tmp.6fFZXHv1w6/key
+ local LUKS=luks1
+ local DEV=/tmp/tmp.6fFZXHv1w6/luks1-device
+ local KEYFILE=/tmp/tmp.6fFZXHv1w6/key
+ [[ -z /tmp/tmp.6fFZXHv1w6/key ]]
+ [[ ! -f /tmp/tmp.6fFZXHv1w6/key ]]
+ fallocate -l16M /tmp/tmp.6fFZXHv1w6/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode /tmp/tmp.6fFZXHv1w6/luks1-device /tmp/tmp.6fFZXHv1w6/key
+ clevis luks bind -f -k /tmp/tmp.6fFZXHv1w6/key -d /tmp/tmp.6fFZXHv1w6/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.6fFZXHv1w6/adv.jws"}'
+ error '/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.6fFZXHv1w6/key).'
+ echo '/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.6fFZXHv1w6/key).'
/home/aiadmin/workspace/clevis/src/luks/tests/bind-key-file-non-interactive-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.6fFZXHv1w6/key).
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.6fFZXHv1w6 ']'
+ rm -rf /tmp/tmp.6fFZXHv1w6
-------
6/10 bind-pass-with-newline FAIL 10.23 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1
--- stdout ---
--- stderr ---
+ TEST=/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.Cnt2LmWWZp
+ ADV=/tmp/tmp.Cnt2LmWWZp/adv.jws
+ create_tang_adv /tmp/tmp.Cnt2LmWWZp/adv.jws
+ local adv=/tmp/tmp.Cnt2LmWWZp/adv.jws
+ local SIG=/tmp/tmp.Cnt2LmWWZp/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.Cnt2LmWWZp/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.Cnt2LmWWZp/sig.jwk -o /tmp/tmp.Cnt2LmWWZp/adv.jws
+ jose jwk pub -s -i /tmp/tmp.Cnt2LmWWZp/sig.jwk -i /tmp/tmp.Cnt2LmWWZp/exc.jwk
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.Cnt2LmWWZp/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.Cnt2LmWWZp/adv.jws"}'
+ DEV=/tmp/tmp.Cnt2LmWWZp/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ PASS='foo
bar
\\&#@@&@*!)(
4507$
'
+ new_device luks1 /tmp/tmp.Cnt2LmWWZp/luks1-device 'foo
bar
\\&#@@&@*!)(
4507$
'
+ local LUKS=luks1
+ local DEV=/tmp/tmp.Cnt2LmWWZp/luks1-device
+ local 'PASS=foo
bar
\\&#@@&@*!)(
4507$
'
+ '[' -z 'foo
bar
\\&#@@&@*!)(
4507$
' ']'
+ local DEV_CACHED=/tmp/tmp.Cnt2LmWWZp/luks1.cached
+ '[' -f /tmp/tmp.Cnt2LmWWZp/luks1.cached ']'
+ fallocate -l16M /tmp/tmp.Cnt2LmWWZp/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode --force-password /tmp/tmp.Cnt2LmWWZp/luks1-device
+ cp -f /tmp/tmp.Cnt2LmWWZp/luks1-device /tmp/tmp.Cnt2LmWWZp/luks1.cached
+ clevis luks bind -f -d /tmp/tmp.Cnt2LmWWZp/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.Cnt2LmWWZp/adv.jws"}'
+ error '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1: Binding is expected to succeed when given a correct (foo
bar
\\&#@@&@*!)(
4507$
) password.'
+ echo '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1: Binding is expected to succeed when given a correct (foo
bar
\\&#@@&@*!)(
4507$
) password.'
/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-luks1: Binding is expected to succeed when given a correct (foo
bar
\\&#@@&@*!)(
4507$
) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.Cnt2LmWWZp ']'
+ rm -rf /tmp/tmp.Cnt2LmWWZp
-------
7/10 bind-pass-with-newline-keyfile FAIL 8.60 s
--- command ---
PATH='/home/aiadmin/workspace/clevis/src:/home/aiadmin/workspace/clevis/src/luks:/home/aiadmin/workspace/clevis/src/pins/tang:/home/aiadmin/workspace/clevis/src/pins/tpm2:/home/aiadmin/workspace/clevis/src/luks/tests:/home/aiadmin/workspace/clevis/build/src/luks/tests:/home/aiadmin/workspace/clevis/build/src:/home/aiadmin/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1
--- stderr ---
+ TEST=/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
++ mktemp -d
+ TMP=/tmp/tmp.xFFcYtIFjX
+ ADV=/tmp/tmp.xFFcYtIFjX/adv.jws
+ create_tang_adv /tmp/tmp.xFFcYtIFjX/adv.jws
+ local adv=/tmp/tmp.xFFcYtIFjX/adv.jws
+ local SIG=/tmp/tmp.xFFcYtIFjX/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.xFFcYtIFjX/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.xFFcYtIFjX/sig.jwk -i /tmp/tmp.xFFcYtIFjX/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.xFFcYtIFjX/sig.jwk -o /tmp/tmp.xFFcYtIFjX/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.xFFcYtIFjX/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.xFFcYtIFjX/adv.jws"}'
+ DEV=/tmp/tmp.xFFcYtIFjX/luks1-device
+ UUID=cb6e8904-81ff-40da-a84a-07ab9ab5715e
+ PASS='foo
bar
\\&#@@&@*!)(
4638$
'
+ KEYFILE=/tmp/tmp.xFFcYtIFjX/key
+ echo -n 'foo
bar
\\&#@@&@*!)(
4638$
'
+ new_device_keyfile luks1 /tmp/tmp.xFFcYtIFjX/luks1-device /tmp/tmp.xFFcYtIFjX/key
+ local LUKS=luks1
+ local DEV=/tmp/tmp.xFFcYtIFjX/luks1-device
+ local KEYFILE=/tmp/tmp.xFFcYtIFjX/key
+ [[ -z /tmp/tmp.xFFcYtIFjX/key ]]
+ [[ ! -f /tmp/tmp.xFFcYtIFjX/key ]]
+ fallocate -l16M /tmp/tmp.xFFcYtIFjX/luks1-device
+ cryptsetup luksFormat --type luks1 --batch-mode /tmp/tmp.xFFcYtIFjX/luks1-device /tmp/tmp.xFFcYtIFjX/key
+ clevis luks bind -f -k /tmp/tmp.xFFcYtIFjX/key -d /tmp/tmp.xFFcYtIFjX/luks1-device tang '{"url":"foobar","adv":"/tmp/tmp.xFFcYtIFjX/adv.jws"}'
+ error '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.xFFcYtIFjX/key) password.'
+ echo '/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.xFFcYtIFjX/key) password.'
/home/aiadmin/workspace/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1: Binding is expected to succeed when given a correct (/tmp/tmp.xFFcYtIFjX/key) password.
+ exit 1
+ on_exit
+ '[' -d /tmp/tmp.xFFcYtIFjX ']'
+ rm -rf /tmp/tmp.xFFcYtIFjX
-------
Full log written to /home/aiadmin/workspace/clevis/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/python3 -u /usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[0/1] Running all tests.
1/14 bind-wrong-pass-luks1 OK 6.45 s
2/14 bind-luks1 OK 11.09 s
3/14 unbind-unbound-slot-luks1 OK 4.19 s
4/14 unbind-luks1 OK 11.69 s
5/14 bind-key-file-non-interactive OK 10.94 s
6/14 bind-pass-with-newline OK 11.40 s
7/14 bind-pass-with-newline-keyfile OK 11.48 s
8/14 bind-wrong-pass-luks2 OK 8.35 s
9/14 bind-luks2 OK 19.19 s
10/14 unbind-unbound-slot-luks2 OK 10.40 s
11/14 unbind-luks2 OK 30.91 s
12/14 pin-sss OK 1.43 s
13/14 pin-test OK 0.17 s
14/14 pin-tang OK 1.38 s
Ok: 14
Expected Fail: 0
Fail: 0
Unexpected Pass: 0
Skipped: 0
Timeout: 0
Full log written to /home/unlocktest/workspace/clevis/build/meson-logs/testlog.txt
ninja: Entering directory `build'
[0/1] Running all tests.
1/14 bind-wrong-pass-luks1 OK 6.49 s
2/14 bind-luks1 OK 11.25 s
3/14 unbind-unbound-slot-luks1 OK 4.18 s
4/14 unbind-luks1 OK 11.20 s
5/14 bind-key-file-non-interactive OK 11.59 s
6/14 bind-pass-with-newline OK 10.79 s
7/14 bind-pass-with-newline-keyfile OK 9.94 s
8/14 bind-wrong-pass-luks2 FAIL 1.32 s (exit status 3)
9/14 bind-luks2 FAIL 1.32 s (exit status 3)
10/14 unbind-unbound-slot-luks2 FAIL 1.32 s (exit status 3)
11/14 unbind-luks2 FAIL 1.22 s (exit status 3)
12/14 pin-sss OK 1.07 s
13/14 pin-test OK 0.12 s
14/14 pin-tang OK 0.77 s
Ok: 10
Expected Fail: 0
Fail: 4
Unexpected Pass: 0
Skipped: 0
Timeout: 0
The output from the failed tests:
8/14 bind-wrong-pass-luks2 FAIL 1.32 s (exit status 3)
--- command ---
PATH='/home/unlocktest/workspace/clevis/src:/home/unlocktest/workspace/clevis/src/luks:/home/unlocktest/workspace/clevis/src/pins/tang:/home/unlocktest/workspace/clevis/src/pins/tpm2:/home/unlocktest/workspace/clevis/src/luks/tests:/home/unlocktest/workspace/clevis/build/src/luks/tests:/home/unlocktest/workspace/clevis/build/src:/home/unlocktest/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/unlocktest/workspace/clevis/src/luks/tests/bind-wrong-pass-luks2
--- stderr ---
++ basename /home/unlocktest/workspace/clevis/src/luks/tests/bind-wrong-pass-luks2
+ TEST=bind-wrong-pass-luks2
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
+ luks2_supported
+ return 0
++ mktemp -d
+ TMP=/tmp/tmp.XzCuc6xqH5
+ ADV=/tmp/tmp.XzCuc6xqH5/adv.jws
+ create_tang_adv /tmp/tmp.XzCuc6xqH5/adv.jws
+ local adv=/tmp/tmp.XzCuc6xqH5/adv.jws
+ local SIG=/tmp/tmp.XzCuc6xqH5/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.XzCuc6xqH5/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jwk pub -s -i /tmp/tmp.XzCuc6xqH5/sig.jwk -i /tmp/tmp.XzCuc6xqH5/exc.jwk
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.XzCuc6xqH5/sig.jwk -o /tmp/tmp.XzCuc6xqH5/adv.jws
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.XzCuc6xqH5/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.XzCuc6xqH5/adv.jws"}'
+ DEV=/tmp/tmp.XzCuc6xqH5/luks2-device
+ new_device luks2 /tmp/tmp.XzCuc6xqH5/luks2-device
+ local LUKS=luks2
+ local DEV=/tmp/tmp.XzCuc6xqH5/luks2-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.XzCuc6xqH5/luks2.cached
+ '[' -f /tmp/tmp.XzCuc6xqH5/luks2.cached ']'
+ fallocate -l16M /tmp/tmp.XzCuc6xqH5/luks2-device
+ cryptsetup luksFormat --type luks2 --batch-mode --force-password /tmp/tmp.XzCuc6xqH5/luks2-device
Not compatible PBKDF options.
+ on_exit
+ '[' -d /tmp/tmp.XzCuc6xqH5 ']'
+ rm -rf /tmp/tmp.XzCuc6xqH5
-------
9/14 bind-luks2 FAIL 1.32 s (exit status 3)
--- command ---
PATH='/home/unlocktest/workspace/clevis/src:/home/unlocktest/workspace/clevis/src/luks:/home/unlocktest/workspace/clevis/src/pins/tang:/home/unlocktest/workspace/clevis/src/pins/tpm2:/home/unlocktest/workspace/clevis/src/luks/tests:/home/unlocktest/workspace/clevis/build/src/luks/tests:/home/unlocktest/workspace/clevis/build/src:/home/unlocktest/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/unlocktest/workspace/clevis/src/luks/tests/bind-luks2
--- stderr ---
++ basename /home/unlocktest/workspace/clevis/src/luks/tests/bind-luks2
+ TEST=bind-luks2
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
+ luks2_supported
+ return 0
++ mktemp -d
+ TMP=/tmp/tmp.b3dmyiooJY
+ ADV=/tmp/tmp.b3dmyiooJY/adv.jws
+ create_tang_adv /tmp/tmp.b3dmyiooJY/adv.jws
+ local adv=/tmp/tmp.b3dmyiooJY/adv.jws
+ local SIG=/tmp/tmp.b3dmyiooJY/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.b3dmyiooJY/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.b3dmyiooJY/sig.jwk -o /tmp/tmp.b3dmyiooJY/adv.jws
+ jose jwk pub -s -i /tmp/tmp.b3dmyiooJY/sig.jwk -i /tmp/tmp.b3dmyiooJY/exc.jwk
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.b3dmyiooJY/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.b3dmyiooJY/adv.jws"}'
+ DEV=/tmp/tmp.b3dmyiooJY/luks2-device
+ new_device luks2 /tmp/tmp.b3dmyiooJY/luks2-device
+ local LUKS=luks2
+ local DEV=/tmp/tmp.b3dmyiooJY/luks2-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.b3dmyiooJY/luks2.cached
+ '[' -f /tmp/tmp.b3dmyiooJY/luks2.cached ']'
+ fallocate -l16M /tmp/tmp.b3dmyiooJY/luks2-device
+ cryptsetup luksFormat --type luks2 --batch-mode --force-password /tmp/tmp.b3dmyiooJY/luks2-device
Not compatible PBKDF options.
+ on_exit
+ '[' -d /tmp/tmp.b3dmyiooJY ']'
+ rm -rf /tmp/tmp.b3dmyiooJY
-------
10/14 unbind-unbound-slot-luks2 FAIL 1.32 s (exit status 3)
--- command ---
PATH='/home/unlocktest/workspace/clevis/src:/home/unlocktest/workspace/clevis/src/luks:/home/unlocktest/workspace/clevis/src/pins/tang:/home/unlocktest/workspace/clevis/src/pins/tpm2:/home/unlocktest/workspace/clevis/src/luks/tests:/home/unlocktest/workspace/clevis/build/src/luks/tests:/home/unlocktest/workspace/clevis/build/src:/home/unlocktest/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/unlocktest/workspace/clevis/src/luks/tests/unbind-unbound-slot-luks2
--- stderr ---
++ basename /home/unlocktest/workspace/clevis/src/luks/tests/unbind-unbound-slot-luks2
+ TEST=unbind-unbound-slot-luks2
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
+ luks2_supported
+ return 0
++ mktemp -d
+ TMP=/tmp/tmp.8SelEJQuc0
+ DEV=/tmp/tmp.8SelEJQuc0/luks2-device
+ new_device luks2 /tmp/tmp.8SelEJQuc0/luks2-device
+ local LUKS=luks2
+ local DEV=/tmp/tmp.8SelEJQuc0/luks2-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.8SelEJQuc0/luks2.cached
+ '[' -f /tmp/tmp.8SelEJQuc0/luks2.cached ']'
+ fallocate -l16M /tmp/tmp.8SelEJQuc0/luks2-device
+ cryptsetup luksFormat --type luks2 --batch-mode --force-password /tmp/tmp.8SelEJQuc0/luks2-device
Not compatible PBKDF options.
+ on_exit
+ '[' -d /tmp/tmp.8SelEJQuc0 ']'
+ rm -rf /tmp/tmp.8SelEJQuc0
-------
11/14 unbind-luks2 FAIL 1.22 s (exit status 3)
--- command ---
PATH='/home/unlocktest/workspace/clevis/src:/home/unlocktest/workspace/clevis/src/luks:/home/unlocktest/workspace/clevis/src/pins/tang:/home/unlocktest/workspace/clevis/src/pins/tpm2:/home/unlocktest/workspace/clevis/src/luks/tests:/home/unlocktest/workspace/clevis/build/src/luks/tests:/home/unlocktest/workspace/clevis/build/src:/home/unlocktest/workspace/clevis/build/src/luks:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' /home/unlocktest/workspace/clevis/src/luks/tests/unbind-luks2
--- stderr ---
++ basename /home/unlocktest/workspace/clevis/src/luks/tests/unbind-luks2
+ TEST=unbind-luks2
+ . tests-common-functions
++ export DEFAULT_PASS=just-some-test-password-here
++ DEFAULT_PASS=just-some-test-password-here
+ trap on_exit EXIT
+ trap exit ERR
+ luks2_supported
+ return 0
++ mktemp -d
+ TMP=/tmp/tmp.9rOnehaiTT
+ ADV=/tmp/tmp.9rOnehaiTT/adv.jws
+ create_tang_adv /tmp/tmp.9rOnehaiTT/adv.jws
+ local adv=/tmp/tmp.9rOnehaiTT/adv.jws
+ local SIG=/tmp/tmp.9rOnehaiTT/sig.jwk
+ jose jwk gen -i '{"alg":"ES512"}'
+ local EXC=/tmp/tmp.9rOnehaiTT/exc.jwk
+ jose jwk gen -i '{"alg":"ECMR"}'
+ local 'TEMPLATE={"protected":{"cty":"jwk-set+json"}}'
+ jose jws sig -I- -s '{"protected":{"cty":"jwk-set+json"}}' -k /tmp/tmp.9rOnehaiTT/sig.jwk -o /tmp/tmp.9rOnehaiTT/adv.jws
+ jose jwk pub -s -i /tmp/tmp.9rOnehaiTT/sig.jwk -i /tmp/tmp.9rOnehaiTT/exc.jwk
++ printf '{"url":"foobar","adv":"%s"}' /tmp/tmp.9rOnehaiTT/adv.jws
+ CFG='{"url":"foobar","adv":"/tmp/tmp.9rOnehaiTT/adv.jws"}'
+ DEV=/tmp/tmp.9rOnehaiTT/luks2-device
+ new_device luks2 /tmp/tmp.9rOnehaiTT/luks2-device
+ local LUKS=luks2
+ local DEV=/tmp/tmp.9rOnehaiTT/luks2-device
+ local PASS=
+ '[' -z '' ']'
+ PASS=just-some-test-password-here
+ local DEV_CACHED=/tmp/tmp.9rOnehaiTT/luks2.cached
+ '[' -f /tmp/tmp.9rOnehaiTT/luks2.cached ']'
+ fallocate -l16M /tmp/tmp.9rOnehaiTT/luks2-device
+ cryptsetup luksFormat --type luks2 --batch-mode --force-password /tmp/tmp.9rOnehaiTT/luks2-device
Not compatible PBKDF options.
+ on_exit
+ '[' -d /tmp/tmp.9rOnehaiTT ']'
+ rm -rf /tmp/tmp.9rOnehaiTT
-------
Full log written to /home/unlocktest/workspace/clevis/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.