]> The Tcpdump Group git mirrors - libpcap/commitdiff
Rename the test program directory to testprogs.
authorGuy Harris <[email protected]>
Tue, 6 Feb 2018 23:44:10 +0000 (15:44 -0800)
committerGuy Harris <[email protected]>
Tue, 6 Feb 2018 23:44:10 +0000 (15:44 -0800)
We may have a directory of test files in the future, and we'd want to
call it "tests", paralleling tcpdump's directory of test files.

26 files changed:
CMakeLists.txt
Makefile.in
configure
configure.ac
testprogs/.gitignore [moved from tests/.gitignore with 100% similarity]
testprogs/BPF/1.txt [moved from tests/BPF/1.txt with 100% similarity]
testprogs/BPF/2.txt [moved from tests/BPF/2.txt with 100% similarity]
testprogs/BPF/3.txt [moved from tests/BPF/3.txt with 100% similarity]
testprogs/BPF/4.txt [moved from tests/BPF/4.txt with 100% similarity]
testprogs/BPF/5.txt [moved from tests/BPF/5.txt with 100% similarity]
testprogs/BPF/6.txt [moved from tests/BPF/6.txt with 100% similarity]
testprogs/BPF/7.txt [moved from tests/BPF/7.txt with 100% similarity]
testprogs/CMakeLists.txt [moved from tests/CMakeLists.txt with 93% similarity]
testprogs/Makefile.in [moved from tests/Makefile.in with 100% similarity]
testprogs/can_set_rfmon_test.c [moved from tests/can_set_rfmon_test.c with 100% similarity]
testprogs/capturetest.c [moved from tests/capturetest.c with 100% similarity]
testprogs/filtertest.c [moved from tests/filtertest.c with 100% similarity]
testprogs/findalldevstest.c [moved from tests/findalldevstest.c with 100% similarity]
testprogs/opentest.c [moved from tests/opentest.c with 100% similarity]
testprogs/pcap_compile_test.c [moved from tests/pcap_compile_test.c with 100% similarity]
testprogs/reactivatetest.c [moved from tests/reactivatetest.c with 100% similarity]
testprogs/selpolltest.c [moved from tests/selpolltest.c with 100% similarity]
testprogs/threadsignaltest.c [moved from tests/threadsignaltest.c with 100% similarity]
testprogs/unix.h [moved from tests/unix.h with 100% similarity]
testprogs/valgrindtest.c [moved from tests/valgrindtest.c with 100% similarity]
testprogs/visopts.py [moved from tests/visopts.py with 100% similarity]

index d70aab95c876c4ec8731da38c9a7331f5d2039a9..e9c4a8969421137f903413b6ff7116d42bc011f0 100644 (file)
@@ -1774,7 +1774,7 @@ if(WIN32)
     set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} ${pcap_SOURCE_DIR}/pcap-dll.rc)
 endif(WIN32)
 
-add_subdirectory(tests)
+add_subdirectory(testprogs)
 
 ######################################
 # Register targets
index a49e29a6f6866339bdbf5513e1b9411ed4a75306..e1c2c918a7c87d4ad9d5710a24f9e653db56b199 100644 (file)
@@ -363,18 +363,18 @@ EXTRA_DIST = \
        sockutils.c \
        sockutils.h \
        scanner.l \
-       tests/CMakeLists.txt \
-       tests/Makefile.in \
-       tests/can_set_rfmon_test.c \
-       tests/capturetest.c \
-       tests/filtertest.c \
-       tests/findalldevstest.c \
-       tests/opentest.c \
-       tests/reactivatetest.c \
-       tests/selpolltest.c \
-       tests/threadsignaltest.c \
-       tests/unix.h \
-       tests/valgrindtest.c \
+       testprogs/CMakeLists.txt \
+       testprogs/Makefile.in \
+       testprogs/can_set_rfmon_test.c \
+       testprogs/capturetest.c \
+       testprogs/filtertest.c \
+       testprogs/findalldevstest.c \
+       testprogs/opentest.c \
+       testprogs/reactivatetest.c \
+       testprogs/selpolltest.c \
+       testprogs/threadsignaltest.c \
+       testprogs/unix.h \
+       testprogs/valgrindtest.c \
        Win32/Prj/wpcap.sln \
        Win32/Prj/wpcap.vcxproj \
        Win32/Prj/wpcap.vcxproj.filters
@@ -531,8 +531,8 @@ build-rpcapd: libpcap.a
 #
 # Test programs - not built by default, and not installed.
 #
-tests: FORCE
-       cd tests; $(MAKE)
+testprogs: FORCE
+       cd testprogs; $(MAKE)
 
 FORCE:
 
@@ -718,7 +718,7 @@ uninstall-rpcapd:
 clean:
        rm -f $(CLEANFILES)
        cd rpcapd; $(MAKE) clean
-       cd tests; $(MAKE) clean
+       cd testprogs; $(MAKE) clean
 
 distclean: clean
        rm -f Makefile config.cache config.log config.status \
@@ -727,7 +727,7 @@ distclean: clean
        rm -f $(MAN3PCAP_EXPAND:.in=) $(MANFILE:.in=) $(MANMISC:.in=)
        rm -rf autom4te.cache
        cd rpcapd; $(MAKE) distclean
-       cd tests; $(MAKE) distclean
+       cd testprogs; $(MAKE) distclean
 
 extags: $(TAGFILES)
        ctags $(TAGFILES)
@@ -747,4 +747,4 @@ releasetar:
 depend:        $(GENSRC) $(GENHDR) bpf_filter.c
        $(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC)
        cd rpcapd; $(MAKE) depend
-       cd tests; $(MAKE) depend
+       cd testprogs; $(MAKE) depend
index fc5f4d5d851b651896f9ed513c61299a8da4053d..c210931188be87ce003d20a6bc0cd1a382e4a7e4 100755 (executable)
--- a/configure
+++ b/configure
@@ -9741,7 +9741,7 @@ ac_config_headers="$ac_config_headers config.h"
 
 ac_config_commands="$ac_config_commands default-1"
 
-ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile tests/Makefile"
+ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile testprogs/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -10461,7 +10461,7 @@ do
     "pcap_set_tstamp_precision.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
     "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
     "rpcapd/Makefile") CONFIG_FILES="$CONFIG_FILES rpcapd/Makefile" ;;
-    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
+    "testprogs/Makefile") CONFIG_FILES="$CONFIG_FILES testprogs/Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
index 3ec99aacc0b7bec8667a78d9fcf1cb8e25c02f21..9ecadc47f726c882a86d1e85399e757f892de8d9 100644 (file)
@@ -2274,5 +2274,5 @@ AC_OUTPUT(Makefile pcap-filter.manmisc pcap-linktype.manmisc
        pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap
        pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap
        pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap
-       pcap_set_tstamp_type.3pcap rpcapd/Makefile tests/Makefile)
+       pcap_set_tstamp_type.3pcap rpcapd/Makefile testprogs/Makefile)
 exit 0
similarity index 100%
rename from tests/.gitignore
rename to testprogs/.gitignore
similarity index 100%
rename from tests/BPF/1.txt
rename to testprogs/BPF/1.txt
similarity index 100%
rename from tests/BPF/2.txt
rename to testprogs/BPF/2.txt
similarity index 100%
rename from tests/BPF/3.txt
rename to testprogs/BPF/3.txt
similarity index 100%
rename from tests/BPF/4.txt
rename to testprogs/BPF/4.txt
similarity index 100%
rename from tests/BPF/5.txt
rename to testprogs/BPF/5.txt
similarity index 100%
rename from tests/BPF/6.txt
rename to testprogs/BPF/6.txt
similarity index 100%
rename from tests/BPF/7.txt
rename to testprogs/BPF/7.txt
similarity index 93%
rename from tests/CMakeLists.txt
rename to testprogs/CMakeLists.txt
index 63781221f069eb7d6c2f09eb064da5b3b62170e7..fda14dc7fc1a90ec00bfc5fcc8d1f9409cbad83e 100644 (file)
@@ -3,7 +3,7 @@ if(MSVC)
   include_directories(${pcap_SOURCE_DIR}/missing)
 endif(MSVC)
 
-add_custom_target(tests)
+add_custom_target(testprogs)
 
 macro(add_test_executable _executable)
   add_executable(${_executable} EXCLUDE_FROM_ALL
@@ -17,7 +17,7 @@ macro(add_test_executable _executable)
     target_link_libraries(${_executable}
       ${ARGN} ${LIBRARY_NAME}_static ${PCAP_LINK_LIBRARIES})
   endif(WIN32)
-  add_dependencies(tests ${_executable})
+  add_dependencies(testprogs ${_executable})
 endmacro()
 
 add_test_executable(can_set_rfmon_test)
similarity index 100%
rename from tests/Makefile.in
rename to testprogs/Makefile.in
similarity index 100%
rename from tests/capturetest.c
rename to testprogs/capturetest.c
similarity index 100%
rename from tests/filtertest.c
rename to testprogs/filtertest.c
similarity index 100%
rename from tests/opentest.c
rename to testprogs/opentest.c
similarity index 100%
rename from tests/selpolltest.c
rename to testprogs/selpolltest.c
similarity index 100%
rename from tests/unix.h
rename to testprogs/unix.h
similarity index 100%
rename from tests/visopts.py
rename to testprogs/visopts.py