| 1 |
check_PROGRAMS = testcases/unit/policytest testcases/unit/hashmaptest \ |
| 2 |
testcases/unit/mechtabletest testcases/unit/configdump \ |
| 3 |
testcases/unit/buffertest testcases/unit/uritest \ |
| 4 |
testcases/unit/pintest |
| 5 |
|
| 6 |
TESTS = testcases/unit/policytest testcases/unit/hashmaptest \ |
| 7 |
testcases/unit/mechtabletest testcases/unit/configdump \ |
| 8 |
testcases/unit/buffertest testcases/unit/uritest \ |
| 9 |
testcases/unit/pintest.sh |
| 10 |
|
| 11 |
EXTRA_DIST += testcases/unit/pintest.sh |
| 12 |
noinst_HEADERS += testcases/unit/unittest.h |
| 13 |
|
| 14 |
testcases_unit_policytest_CFLAGS=-I${top_srcdir}/usr/lib/common \ |
| 15 |
-I${top_srcdir}/usr/lib/api -I${top_srcdir}/usr/include \ |
| 16 |
-DSTDLL_NAME=\"policytest\" -I${top_srcdir}/usr/lib/config \ |
| 17 |
-I${top_builddir}/usr/lib/config -I${top_builddir}/usr/lib/api |
| 18 |
|
| 19 |
if AIX |
| 20 |
testcases_unit_policytest_LDFLAGS=-lpthread |
| 21 |
endif |
| 22 |
|
| 23 |
testcases_unit_policytest_SOURCES=testcases/unit/policytest.c \ |
| 24 |
usr/lib/api/policy.c usr/lib/api/hashmap.c \ |
| 25 |
usr/lib/common/ec_supported.c usr/lib/common/trace.c \ |
| 26 |
usr/lib/common/utility_common.c \ |
| 27 |
usr/lib/config/configuration.c \ |
| 28 |
usr/lib/common/ec_curve_translation.c \ |
| 29 |
usr/lib/common/kdf_translation.c \ |
| 30 |
usr/lib/common/mgf_translation.c \ |
| 31 |
usr/lib/api/supportedstrengths.c \ |
| 32 |
usr/lib/config/cfgparse.y usr/lib/config/cfglex.l \ |
| 33 |
usr/lib/common/pqc_supported.c |
| 34 |
|
| 35 |
nodist_testcases_unit_policytest_SOURCES=usr/lib/api/mechtable.c |
| 36 |
|
| 37 |
testcases_unit_hashmaptest_CFLAGS=-I${top_srcdir}/usr/lib/api \ |
| 38 |
-I${top_srcdir}/usr/include -I${srcdir}/usr/lib/common |
| 39 |
|
| 40 |
testcases_unit_hashmaptest_SOURCES = testcases/unit/hashmaptest.c \ |
| 41 |
usr/lib/api/hashmap.c |
| 42 |
|
| 43 |
if AIX |
| 44 |
testcases_unit_hashmaptest_SOURCES += usr/lib/common/aix/getopt_long.c |
| 45 |
endif |
| 46 |
|
| 47 |
testcases_unit_mechtabletest_CFLAGS=-I${top_srcdir}/usr/lib/api \ |
| 48 |
-I${top_srcdir}/usr/include -I${top_builddir}/usr/lib/api |
| 49 |
|
| 50 |
testcases_unit_mechtabletest_SOURCES=testcases/unit/mechtabletest.c |
| 51 |
|
| 52 |
nodist_testcases_unit_mechtabletest_SOURCES=usr/lib/api/mechtable.c |
| 53 |
|
| 54 |
testcases_unit_configdump_SOURCES = testcases/unit/configdump.c \ |
| 55 |
usr/lib/config/cfglex.l usr/lib/config/cfgparse.y \ |
| 56 |
usr/lib/config/configuration.c |
| 57 |
|
| 58 |
if AIX |
| 59 |
testcases_unit_configdump_SOURCES += usr/lib/common/aix/err.c |
| 60 |
endif |
| 61 |
|
| 62 |
testcases_unit_configdump_CFLAGS=-I${top_srcdir}/usr/lib/config \ |
| 63 |
-I${top_builddir}/usr/lib/config -I${top_srcdir}/usr/include \ |
| 64 |
-I${srcdir}/usr/lib/common |
| 65 |
|
| 66 |
testcases_unit_buffertest_SOURCES=testcases/unit/buffertest.c \ |
| 67 |
usr/lib/common/buffer.c |
| 68 |
|
| 69 |
testcases_unit_buffertest_CFLAGS=-I${top_srcdir}/usr/lib/common \ |
| 70 |
-I$(top_srcdir)/usr/include |
| 71 |
|
| 72 |
testcases_unit_uritest_SOURCES=testcases/unit/uritest.c \ |
| 73 |
usr/lib/common/uri.c usr/lib/common/buffer.c \ |
| 74 |
usr/lib/common/p11util.c |
| 75 |
|
| 76 |
testcases_unit_uritest_CFLAGS=-I${top_srcdir}/usr/lib/common \ |
| 77 |
-I${top_srcdir}/usr/include -I${top_builddir}/usr/lib/api \ |
| 78 |
-I${srcdir}/usr/lib/common -I${srcdir}/usr/include \ |
| 79 |
-I${srcdir}/usr/lib/api |
| 80 |
|
| 81 |
testcases_unit_pintest_SOURCES=testcases/unit/pintest.c \ |
| 82 |
usr/lib/common/buffer.c usr/lib/common/pin_prompt.c |
| 83 |
|
| 84 |
testcases_unit_pintest_CFLAGS=-I${top_srcdir}/usr/lib/common \ |
| 85 |
-I${top_srcdir}/usr/include |
| 86 |
testcases_unit_pintest_LDFLAGS=-lcrypto |