diff options
author | Lev Walkin <vlm@lionet.info> | 2017-08-10 14:59:15 -0700 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2017-08-10 14:59:15 -0700 |
commit | 700df493dd414a10cc630e67aef80b6e304c561a (patch) | |
tree | c5a018c3eba97fa9bfa1a630a98a9dcf14385e25 /libasn1fix | |
parent | 7c876301800188be52eb9f03fe671620ca0c75f4 (diff) |
reshuffled the tests layout
Diffstat (limited to 'libasn1fix')
-rw-r--r-- | libasn1fix/Makefile.am | 2 | ||||
-rw-r--r-- | libasn1fix/check_fixer.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libasn1fix/Makefile.am b/libasn1fix/Makefile.am index 5e506ccd..cd859eba 100644 --- a/libasn1fix/Makefile.am +++ b/libasn1fix/Makefile.am @@ -40,6 +40,6 @@ check_crange_LDADD = $(noinst_LTLIBRARIES) \ check_PROGRAMS = check_crange check_fixer -TESTS_ENVIRONMENT = ASN1_TESTS_DIR=${top_srcdir}/tests +TESTS_ENVIRONMENT = ASN1_TESTS_DIR=${top_srcdir}/tests/tests-asn1c-compiler TESTS = ${check_PROGRAMS} diff --git a/libasn1fix/check_fixer.c b/libasn1fix/check_fixer.c index 9345536c..3f3f9fa5 100644 --- a/libasn1fix/check_fixer.c +++ b/libasn1fix/check_fixer.c @@ -60,7 +60,7 @@ main(int ac, char **av) { if(ac <= 1) { const char *asn1_tests_dir = getenv("ASN1_TESTS_DIR"); if(!asn1_tests_dir) - asn1_tests_dir = TOP_SRCDIR_S "/tests"; + asn1_tests_dir = TOP_SRCDIR_S "/tests/tests-asn1c-compiler"; fprintf(stderr, "Testing in %s...\n", asn1_tests_dir); ret = chdir(asn1_tests_dir); if(ret == -1) @@ -196,7 +196,7 @@ check(const char *fname, if(r_value == 0) { asn1p_t *std_asn; - std_asn = asn1p_parse_file("../skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1", A1P_NOFLAGS); + std_asn = asn1p_parse_file("../../skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1", A1P_NOFLAGS); if(std_asn) { asn1p_module_t *mod; while((mod = TQ_REMOVE(&(std_asn->modules), mod_next))) { |