test.h 757 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: BSD-2-Clause */
  2. /***********************************************************************
  3. * Copyright (c) 2017-2018, Intel Corporation
  4. *
  5. * All rights reserved.
  6. ***********************************************************************/
  7. #include "tss2_sys.h"
  8. #define YES 1
  9. #define NO 0
  10. /*
  11. * This is the prototype for all integration tests in the tpm2-tss
  12. * project. Integration tests are intended to exercise the combined
  13. * components in the software stack. This typically means executing some
  14. * SYS function using the socket TCTI to communicate with a software
  15. * TPM2 simulator.
  16. * Return values:
  17. * A successful test will return 0, any other value indicates failure.
  18. */
  19. int test_invoke(TSS2_SYS_CONTEXT * sys_context);