diff options
author | Russ Allbery <rra@stanford.edu> | 2010-02-09 22:13:53 -0800 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2010-02-09 22:13:53 -0800 |
commit | 0f81ba24e021a63d42c51ee9bec6e521fc540251 (patch) | |
tree | 3a2c6009d53a1c5e5818c6a842d0a4ad0fe2a6b7 /tests/client/full-t.in | |
parent | a556c732806da87d06bb787565e12240ea39b553 (diff) |
Fix multiple builddir != srcdir issues with test suite
Simplify the build rules for the test suite to take advantage of the
improved runtests support for builddir != srcdir. Stop doing Autoconf
substitution on full.conf now that we have that support.
Diffstat (limited to 'tests/client/full-t.in')
-rw-r--r-- | tests/client/full-t.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/client/full-t.in b/tests/client/full-t.in index a4ca19d..8acc360 100644 --- a/tests/client/full-t.in +++ b/tests/client/full-t.in @@ -51,6 +51,9 @@ sub wallet { return ($output, $error, $status); } +# cd to the correct directory. +chdir "$ENV{SOURCE}" or die "Cannot chdir to $ENV{SOURCE}: $!\n"; + SKIP: { skip 'no keytab configuration', $total unless -f "$ENV{BUILD}/data/test.keytab"; @@ -62,8 +65,8 @@ SKIP: { unlink ('krb5cc_test', 'test-pid'); my $principal = contents ("$ENV{BUILD}/data/test.principal"); remctld_spawn ($remctld, $principal, - '@abs_top_builddir@/tests/data/test.keytab', - '@abs_top_builddir@/tests/data/full.conf'); + "$ENV{BUILD}/data/test.keytab", + "$ENV{SOURCE}/data/full.conf"); $ENV{KRB5CCNAME} = 'krb5cc_test'; getcreds ("$ENV{BUILD}/data/test.keytab", $principal); |