diff --git a/tpm/README.md b/tpm/README.md index 37e3416..8db9497 100644 --- a/tpm/README.md +++ b/tpm/README.md @@ -20,8 +20,16 @@ storage root key. 3. cmake .. 4. make -* Once complete you should have a `./tpm/lib/libwatpm.so` file +* Once complete you should have a `./tpm/lib/libwatpm.so` file and a simple test +program `./tpm/src/Build/bin/test_wa_tpm`. This does a simple test of the TPM library. +To run the program, first start the TPM simulator and set the environment variables +as given below. Then run the program: + * `bin/test_wa_tpm \ \` + The data directory is where the log file and any TPM temporary files will be stored. +The program displays some intermediate results and should end with: + * `OpenSSL verified the ECDSA Signature`. + ### Setting Environment Variables * Note: as described in [Installing_IBM_software](Installing_IBM_software.md) you will need to have set the environment variables in the terminal where you launch diff --git a/tpm/src/Ibmtss/Test/Test_wa_tpm/Test_wa_tpm.cpp b/tpm/src/Ibmtss/Test/Test_wa_tpm/Test_wa_tpm.cpp index 9c507f1..ef94aa4 100644 --- a/tpm/src/Ibmtss/Test/Test_wa_tpm/Test_wa_tpm.cpp +++ b/tpm/src/Ibmtss/Test/Test_wa_tpm/Test_wa_tpm.cpp @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) { if (argc != 3) { - std::cerr << "Usage: " << argv[0] << " \n"; + std::cerr << "Usage: " << argv[0] << " \n"; return EXIT_FAILURE; }