{"action":"created","issue":{"url":"https://api.github.com/repos/tpm2-software/tpm2-abrmd/issues/434","repository_url":"https://api.github.com/repos/tpm2-software/tpm2-abrmd","labels_url":"https://api.github.com/repos/tpm2-software/tpm2-abrmd/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/tpm2-software/tpm2-abrmd/issues/434/comments","events_url":"https://api.github.com/repos/tpm2-software/tpm2-abrmd/issues/434/events","html_url":"https://github.com/tpm2-software/tpm2-abrmd/issues/434","id":317688936,"number":434,"title":"test/integration failed with hwtpm","user":{"login":"gitfineon","id":11716650,"avatar_url":"https://avatars3.githubusercontent.com/u/11716650?v=4","gravatar_id":"","url":"https://api.github.com/users/gitfineon","html_url":"https://github.com/gitfineon","followers_url":"https://api.github.com/users/gitfineon/followers","following_url":"https://api.github.com/users/gitfineon/following{/other_user}","gists_url":"https://api.github.com/users/gitfineon/gists{/gist_id}","starred_url":"https://api.github.com/users/gitfineon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitfineon/subscriptions","organizations_url":"https://api.github.com/users/gitfineon/orgs","repos_url":"https://api.github.com/users/gitfineon/repos","events_url":"https://api.github.com/users/gitfineon/events{/privacy}","received_events_url":"https://api.github.com/users/gitfineon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-25T15:51:20Z","updated_at":"2018-04-26T15:03:48Z","closed_at":null,"author_association":"NONE","body":"The output told me I shall report this :grin: \r\n\r\nBuild on HiKey620 Development Board with Kernel 4.12 (aarch64) under Debian GNU/Linux buster/sid\r\n``` bash\r\ncd ../tpm2-abrmd/\r\n./bootstrap\r\n./configure --enable-unit --enable-test-hwtpm\r\n```\r\n> The integration tests are executed on a real TPM2 hardware through running make check. Note that it requires the elevated privilege (possibly root access depending on your platforms configuration) to launch tpm2-abrmd and to access /dev/tpm0. WARNING: If this test suite is executed against a TPM2 it may result in the TPM2 device being damaged or destroyed. You have been warned ... again.\r\n\r\nYes, I've read the warning!\r\n\r\nBtw: [Documentation](https://github.com/tpm2-software/tpm2-abrmd/blob/master/INSTALL.md#run-integration-tests-with-hardware-tpm2---test-hwtpm) states the `test-hwtpm` flag wrong. Can someone append it to his PR?\r\n\r\nFirst try was done without root priviledge:\r\n```\r\ndbus-launch make check\r\n```\r\nCompilation finishes but all tests in the integration folder fail. Did I miss any flags at configure?\r\n``` diff\r\n...\r\nmake  check-TESTS\r\nmake[2]: Entering directory '/home/linaro/tpm2-abrmd'\r\nmake[3]: Entering directory '/home/linaro/tpm2-abrmd'\r\n-FAIL: test/integration/auth-session-max.int\r\n-FAIL: test/integration/auth-session-start-flush.int\r\n-FAIL: test/integration/auth-session-start-save.int\r\n-FAIL: test/integration/auth-session-start-save-load.int\r\n-FAIL: test/integration/create-keys.int\r\n-FAIL: test/integration/get-capability-handles-transient.int\r\n-FAIL: test/integration/manage-transient-keys.int\r\n-FAIL: test/integration/session-load-from-closed-connection.int\r\n-FAIL: test/integration/session-load-from-closed-connections-lru.int\r\n-FAIL: test/integration/session-load-from-open-connection.int\r\n+XFAIL: test/integration/start-auth-session.int\r\n-FAIL: test/integration/tcti-cancel.int\r\n-FAIL: test/integration/tcti-connections-max.int\r\n-FAIL: test/integration/tcti-double-finalize.int\r\n-FAIL: test/integration/tcti-set-locality.int\r\n-FAIL: test/integration/hash-sequence.int\r\n-FAIL: test/integration/not-enough-handles-for-command.int\r\n-FAIL: test/integration/password-authorization.int\r\n-FAIL: test/integration/tpm2-command-flush-no-handle.int\r\n-FAIL: test/integration/util-buf-max-upper-bound.int\r\n+PASS: test/access-broker_unit\r\n+PASS: test/command-attrs_unit\r\n+PASS: test/connection_unit\r\n+PASS: test/connection-manager_unit\r\n+PASS: test/logging_unit\r\n+PASS: test/message-queue_unit\r\n+PASS: test/resource-manager_unit\r\n+PASS: test/response-sink_unit\r\n+PASS: test/command-source_unit\r\n+PASS: test/handle-map-entry_unit\r\n+PASS: test/handle-map_unit\r\n+PASS: test/ipc-frontend_unit\r\n+PASS: test/ipc-frontend-dbus_unit\r\n+PASS: test/random_unit\r\n+PASS: test/session-entry_unit\r\n+PASS: test/test-skeleton_unit\r\n+PASS: test/tcti-dynamic_unit\r\n+PASS: test/tcti-echo_unit\r\n+PASS: test/tcti-util_unit\r\n+PASS: test/thread_unit\r\n+PASS: test/tpm2-command_unit\r\n+PASS: test/tpm2-response_unit\r\n+PASS: test/tss2-tcti-tabrmd_unit\r\n+PASS: test/tss2-tcti-echo_unit\r\n+PASS: test/util_unit\r\n============================================================================\r\nTestsuite summary for tpm2-abrmd 1.3.1-149-gf317228\r\n============================================================================\r\n# TOTAL: 45\r\n+# PASS:  25\r\n# SKIP:  0\r\n+# XFAIL: 1\r\n-# FAIL:  19\r\n# XPASS: 0\r\n# ERROR: 0\r\n============================================================================\r\nSee ./test-suite.log\r\nPlease report to https://github.com/01org/tpm2-abrmd/issues\r\n============================================================================\r\nMakefile:3346: recipe for target 'test-suite.log' failed\r\nmake[3]: *** [test-suite.log] Error 1\r\nmake[3]: Leaving directory '/home/linaro/tpm2-abrmd'\r\nMakefile:3452: recipe for target 'check-TESTS' failed\r\nmake[2]: *** [check-TESTS] Error 2\r\nmake[2]: Leaving directory '/home/linaro/tpm2-abrmd'\r\nMakefile:3826: recipe for target 'check-am' failed\r\nmake[1]: *** [check-am] Error 2\r\nmake[1]: Leaving directory '/home/linaro/tpm2-abrmd'\r\nMakefile:3829: recipe for target 'check' failed\r\nmake: *** [check] Error 2\r\nlinaro@linaro-developer:~/tpm2-abrmd$ \r\n```\r\n\r\nLogfile: [180425-1700_tpm2-abrmd_test-suite.log](https://github.com/tpm2-software/tpm2-abrmd/files/1947574/180425-1700_tpm2-abrmd_test-suite.log)\r\n\r\nA Second try have been executed with elevated privilege\r\n```\r\nsudo su\r\ndbus-launch make check\r\n```\r\nNo difference in the result, only multiple times slower!\r\nI traced the spi interface, but nothing happens ... \r\n\r\nUsed current master of the tpm2-tss (tpm2-software/tpm2-tools@e394cffe3add7874299b9571e0b5140b4dc51dfe)\r\n``` git\r\ncommit e394cffe3add7874299b9571e0b5140b4dc51dfe (HEAD -> master, origin/master, origin/HEAD)\r\nAuthor: Philip Tricca <philip.b.tricca@intel.com>\r\nDate:   Wed Apr 18 08:36:06 2018 -0700\r\n```\r\nand current master of tpm2-abrmd (f3172288fa95998255f79ab219125697d7d95025)\r\n```\r\ncommit f3172288fa95998255f79ab219125697d7d95025 (HEAD -> master, origin/master, origin/HEAD)\r\nAuthor: Philip Tricca <philip.b.tricca@intel.com>\r\nDate:   Tue Apr 24 12:25:28 2018 -0700\r\n```"},"comment":{"url":"https://api.github.com/repos/tpm2-software/tpm2-abrmd/issues/comments/384673993","html_url":"https://github.com/tpm2-software/tpm2-abrmd/issues/434#issuecomment-384673993","issue_url":"https://api.github.com/repos/tpm2-software/tpm2-abrmd/issues/434","id":384673993,"user":{"login":"gitfineon","id":11716650,"avatar_url":"https://avatars3.githubusercontent.com/u/11716650?v=4","gravatar_id":"","url":"https://api.github.com/users/gitfineon","html_url":"https://github.com/gitfineon","followers_url":"https://api.github.com/users/gitfineon/followers","following_url":"https://api.github.com/users/gitfineon/following{/other_user}","gists_url":"https://api.github.com/users/gitfineon/gists{/gist_id}","starred_url":"https://api.github.com/users/gitfineon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitfineon/subscriptions","organizations_url":"https://api.github.com/users/gitfineon/orgs","repos_url":"https://api.github.com/users/gitfineon/repos","events_url":"https://api.github.com/users/gitfineon/events{/privacy}","received_events_url":"https://api.github.com/users/gitfineon/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T15:03:48Z","updated_at":"2018-04-26T15:03:48Z","author_association":"NONE","body":"> There is no user tss registered on my system [...], but theres no documentation that it is my job to create them, right?\r\n\r\nSorry, seems I've followed an older installation guide. But it is not necessary, right?\r\n\r\nDid update https://github.com/tpm2-software/tpm2-tss/commit/5a7c4f45d13417de2a39f359b6468e0c26d55355 to latest master and reinstalled, following the [INSTALL.md](https://github.com/tpm2-software/tpm2-tss/blob/0075f88466d791b2b58c60adafed87ec814441df/INSTALL.md) \r\n``` bash\r\ncd /home/linaro/tpm2-tss\r\n./configure --enable-unit --with-udevrulesdir=/etc/udev/rules.d\r\nmake -j4\r\nmake install\r\nls -lah /etc/udev/rules.d/ # found the rule!\r\nsudo udevadm control --reload-rules && sudo udevadm trigger\r\nldconfig\r\n```\r\nFollowed the updated [INSTALL.md](https://github.com/tpm2-software/tpm2-abrmd/blob/de6ccda877d2501af3b3b84a751e351340b8166e/INSTALL.md) of tpm2-abrmd https://github.com/tpm2-software/tpm2-abrmd/commit/de6ccda877d2501af3b3b84a751e351340b8166e\r\n```\r\ncd ../tpm2-abrmd/\r\nsudo useradd --system --user-group tss\r\n./bootstrap\r\n./configure --enable-unit --enable-test-hwtpm\r\nmake -j4\r\nsudo make install\r\nldconfig\r\npkill -HUP dbus-daemon\r\nsystemctl daemon-reload\r\ndbus-send --system --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames\r\n```\r\n```\r\nmethod return time=1524762193.706944 sender=org.freedesktop.DBus -> destination=:1.1636 serial=3 reply_serial=2\r\n   array [\r\n      string \"org.freedesktop.DBus\"\r\n      string \"org.freedesktop.login1\"\r\n      string \":1.8\"\r\n      string \"org.freedesktop.systemd1\"\r\n      string \"org.freedesktop.PolicyKit1\"\r\n      string \":1.10\"\r\n      string \":1.77\"\r\n      string \"org.freedesktop.NetworkManager\"\r\n      string \":1.0\"\r\n      string \":1.1\"\r\n      string \":1.2\"\r\n      string \":1.3\"\r\n      string \"fi.epitest.hostap.WPASupplicant\"\r\n      string \"fi.w1.wpa_supplicant1\"\r\n      string \":1.1636\"\r\n      string \":1.6\"\r\n   ]\r\n```\r\nThe string `\"com.intel.tss2.Tabrmd\"` you have stated is missing!\r\n"}}
{"actor":{"display_login":"gitfineon"}}