Tests/esapi: Add test for several Policy Commands
Many of the policy commands work similarly.
Here we test them using a trial session.
Signed-off-by: Juergen Repp <juergen.repp@sit.fraunhofer.de>
Signed-off-by: Andreas Fuchs <andreas.fuchs@sit.fraunhofer.de>
diff --git a/Makefile-test.am b/Makefile-test.am
index 1b67c0c..189482d 100644
--- a/Makefile-test.am
+++ b/Makefile-test.am
@@ -162,6 +162,7 @@
test/integration/esys-pcr-basic.int \
test/integration/esys-pcr-auth-value.int \
test/integration/esys-policy-authorize.int \
+ test/integration/esys-policy-regression.int \
test/integration/esys-policy-ticket.int \
test/integration/esys-policy-nv-changeauth.int \
test/integration/esys-policy-nv-undefine-special.int \
@@ -761,6 +762,13 @@
src/tss2-esys/esys_crypto.c \
test/integration/main-esapi.c test/integration/test-esapi.h
+test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
+test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
+test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
+test_integration_esys_policy_regression_int_SOURCES = \
+ test/integration/esys-policy-regression.int.c \
+ test/integration/main-esapi.c test/integration/test-esapi.h
+
test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt