]> The Tcpdump Group git mirrors - tcpdump/commitdiff
config.h is always in build directory, not srcdir
authorMichael Richardson <[email protected]>
Thu, 19 Sep 2019 18:02:32 +0000 (14:02 -0400)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 24 Sep 2019 12:12:09 +0000 (14:12 +0200)
tests/crypto.sh
tests/smb.sh

index deec5715c7e3a9be4587d677161a01400df2e6b3..08848026c4e32e5637ebf4e3871fe6ef071ebc37 100755 (executable)
@@ -16,7 +16,7 @@ failed=`cat ${failedfile}`
 
 # Only attempt OpenSSL-specific tests when compiled with the library.
 
-if grep '^#define HAVE_LIBCRYPTO 1$' ${srcdir}/config.h >/dev/null
+if grep '^#define HAVE_LIBCRYPTO 1$' config.h >/dev/null
 then
        if ${testdir}/TESTonce esp1 ${testdir}/02-sunrise-sunset-esp.pcap ${testdir}/esp1.out '-E "[email protected] 3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
        then
@@ -46,7 +46,7 @@ then
                exitcode=1
        fi
        # Reading the secret(s) from a file does not work with Capsicum.
-       if grep '^#define HAVE_CAPSICUM 1$' ${srcdir}/config.h >/dev/null
+       if grep '^#define HAVE_CAPSICUM 1$' config.h >/dev/null
        then
                FORMAT='    %-35s: TEST SKIPPED (compiled w/Capsicum)\n'
                printf "$FORMAT" esp4
index 073551c537ade4ba1bfffa4fb8869a75a97bac6f..afee95c7451004eb9cbbf78ad2819f96787bfd4a 100644 (file)
@@ -13,7 +13,7 @@ failed=`cat ${failedfile}`
 
 # Only attempt OpenSSL-specific tests when compiled with the library.
 
-if grep '^#define ENABLE_SMB 1$' ${srcdir}/config.h >/dev/null
+if grep '^#define ENABLE_SMB 1$' config.h >/dev/null
 then
     cat ${srcdir}/tests/SMBLIST | while read name input output options
     do