swtpm/tests
Stefan Berger 996ad55fbc tests: delay reading of pidfile if found empty
Delay the reading of the PID file if it is found to be empty.
This can happend if swtpm is run by valgrind.

Also, use the passed parameters rather than the global ones to check
the PID file contents against the expected pid. So far this worked
because PID and PID_FILE were variables used by every caller.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2020-01-13 15:03:01 -05:00
..
data tests: Add test cases for new CrytpAdjustPrimeCandidate algo 2019-12-23 14:14:25 -05:00
patches tests: Add yet more tests for TPM 1.2 and enable auditing 2019-04-01 06:56:31 -04:00
_test_encrypted_state tests: Use bash's built-in echo rather than /bin/echo 2018-11-19 18:50:42 -05:00
_test_getcap tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_hashing tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_hashing2 tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_init tests: Extend tests cases with test for active seccomp profiles 2019-03-18 15:43:44 -04:00
_test_locality tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_migration_key tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_migration_key_2 tests: Run tests also on socket interfaces 2017-07-11 14:04:40 -04:00
_test_print_capabilities tests: Protect variable with executable with quotes 2019-11-18 07:34:19 -05:00
_test_resume_volatile tests: Call function rather than running 'ps aux' to display proceses 2018-09-27 10:19:09 -04:00
_test_save_load_encrypted_state tests: Convert existing test case to use file descriptor for reading password 2019-06-24 07:27:39 -04:00
_test_save_load_state tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_setbuffersize tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_swtpm_bios tests: wait for files to appear or disappear after starting swtpm 2018-10-01 12:52:20 -04:00
_test_tpm2_derived_keys tests: Fix key derivation TDES test cases to actually create TDES keys 2019-12-26 00:08:35 -05:00
_test_tpm2_encrypted_state tests: Use bash's built-in echo rather than /bin/echo 2018-11-19 18:50:42 -05:00
_test_tpm2_getcap tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_tpm2_hashing tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_tpm2_hashing2 tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_tpm2_hashing3 tests: Shut down swtpm at the end to avoid kill 2018-10-08 06:43:30 -04:00
_test_tpm2_init tests: Extend tests cases with test for active seccomp profiles 2019-03-18 15:43:44 -04:00
_test_tpm2_locality tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_tpm2_migration_key tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_tpm2_probe tests: Extend tests cases with test for active seccomp profiles 2019-03-18 15:43:44 -04:00
_test_tpm2_resume_volatile tests: Call function rather than running 'ps aux' to display proceses 2018-09-27 10:19:09 -04:00
_test_tpm2_save_load_encrypted_state tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_tpm2_save_load_state tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_tpm2_save_load_state_da_timeout tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_tpm2_savestate tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_tpm2_setbuffersize tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_tpm2_swtpm_bios tests: wait for files to appear or disappear after starting swtpm 2018-10-01 12:52:20 -04:00
_test_tpm2_volatilestate tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_tpm2_wrongorder tests: Check expected error output against expected error message 2018-10-08 06:43:30 -04:00
_test_tpm_probe tests: Extend tests cases with test for active seccomp profiles 2019-03-18 15:43:44 -04:00
_test_volatilestate tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
_test_wrongorder tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
common tests: delay reading of pidfile if found empty 2020-01-13 15:03:01 -05:00
create_certs.sh scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
load_vtpm_proxy tests: Skip CUSE TPM related tests if cuse module is not available 2017-02-02 09:01:55 -05:00
Makefile.am tests: Add test cases for new CrytpAdjustPrimeCandidate algo 2019-12-23 14:14:25 -05:00
softhsm_setup Make softhsm/pkcs11 test case work on Travis on OS X 2019-01-23 15:42:52 -05:00
swtpm_setup.conf treewide: remove executable bit from config files and c-code 2018-01-17 10:45:25 -05:00
test_clientfds.py tests: Use python3 rather than python for the test programs 2018-09-25 08:35:45 -04:00
test_commandline tests: Use file descriptor passing for log file 2019-04-02 18:08:06 -04:00
test_common test: Add --log parameter to test logging 2017-02-03 15:15:31 -05:00
test_config.in build: remove hardcoded tss user and group 2015-11-02 20:47:37 -05:00
test_ctrlchannel tests: Get swtpm PID from shell and validate against pidfile after 2019-07-13 12:48:36 -04:00
test_ctrlchannel2 tests: Get swtpm PID from shell and validate against pidfile after 2019-07-13 12:48:36 -04:00
test_ctrlchannel3 test: Replace uname -o with uname -s 2019-01-23 17:56:31 -05:00
test_ctrlchannel4 tests: Increase timeout for shutdown for running with valgrind 2018-10-01 12:52:20 -04:00
test_cuse tests: Skip CUSE tests if not compiled with CUSE interface 2018-06-11 10:35:14 -04:00
test_encrypted_state scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_getcap scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_hashing scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_hashing2 scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_init scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_locality scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_migration_key scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_parameters tests: Add TPM 1.2 test cases for passing key and passphrase via fd 2019-07-03 11:19:23 -04:00
test_print_capabilities tests: Add test case for --print-capabilities test 2019-07-12 14:18:20 -04:00
test_resume_volatile scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_samples_create_tpmca tests: Use an empty options file in case options file is accessed 2019-03-26 06:51:00 -04:00
test_save_load_encrypted_state scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_save_load_state scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_setbuffersize scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_setdatafd.py tests: Make python test code independent of python 2 or 3 2018-08-07 12:19:47 -04:00
test_swtpm_bios scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_swtpm_cert tests: Allow passing SWTPM_CERT from command line 2018-11-17 16:37:03 -05:00
test_swtpm_setup_create_cert samples: Add support for password protected root CA priv. key 2018-10-25 10:32:36 -04:00
test_tpm2_ctrlchannel2 tests: Fix spelling of call to function validate_pidfile 2019-07-19 10:31:07 -04:00
test_tpm2_derived_keys tests: Ensure that derived keys are always the same for the same state 2019-06-14 22:18:48 -04:00
test_tpm2_encrypted_state scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_getcap scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_hashing scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_hashing2 scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_hashing3 scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_ibmtss2 tests: Have IBM TSS2 test case use tags/v1.3.0 of the TPM 2.0 TSS repo 2019-12-20 23:11:06 -05:00
test_tpm2_init scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_locality scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_migration_key scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_parameters test: Make sure that when key is passed state is encrypted 2019-06-28 21:48:40 -04:00
test_tpm2_probe scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_resume_volatile scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_samples_swtpm_localca scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_samples_swtpm_localca_pkcs11 tests: Fix error handling if pkcs11 test runs on x86_64 with i386 executable 2019-01-28 17:03:26 -05:00
test_tpm2_save_load_encrypted_state scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_save_load_state scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_save_load_state_3 tests: Gate the IBM TSS 2 related test with SWTPM_TEST_IBMTSS2 2019-01-17 18:57:53 -05:00
test_tpm2_save_load_state_da_timeout scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_savestate scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_setbuffersize scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_swtpm_bios scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_swtpm_cert tests: Allow passing SWTPM_CERT from command line 2018-11-17 16:37:03 -05:00
test_tpm2_swtpm_cert_ecc tests: Allow passing SWTPM_CERT from command line 2018-11-17 16:37:03 -05:00
test_tpm2_swtpm_setup_create_cert scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_volatilestate scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm2_vtpm_proxy tests: Remove 'less' command from test case 2019-01-17 17:08:04 -05:00
test_tpm2_wrongorder scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_tpm12 tests: Add yet more tests for TPM 1.2 and enable auditing 2019-04-01 06:56:31 -04:00
test_tpm_probe scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_volatilestate scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00
test_vtpm_proxy tests: Adjust timeouts for running executables with valgrind 2020-01-13 15:03:01 -05:00
test_wrongorder scripting: Use #!/usr/bin/env bash rather than /bin/bash 2018-09-10 16:49:12 +00:00