]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Moved 3 Linux-specific tests into linux/ directories.
authorNicholas Nethercote <njn@valgrind.org>
Fri, 13 Feb 2009 06:23:46 +0000 (06:23 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Fri, 13 Feb 2009 06:23:46 +0000 (06:23 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9144

21 files changed:
configure.in
memcheck/tests/Makefile.am
memcheck/tests/linux/Makefile.am
memcheck/tests/linux/stack_switch.c [moved from memcheck/tests/stack_switch.c with 88% similarity]
memcheck/tests/linux/stack_switch.stderr.exp [moved from memcheck/tests/stack_switch.stderr.exp with 100% similarity]
memcheck/tests/linux/stack_switch.vgtest [moved from memcheck/tests/stack_switch.vgtest with 100% similarity]
none/tests/Makefile.am
none/tests/linux/Makefile.am [new file with mode: 0644]
none/tests/linux/filter_stderr [new file with mode: 0755]
none/tests/linux/mremap.c [moved from none/tests/mremap.c with 94% similarity]
none/tests/linux/mremap.stderr.exp [moved from none/tests/mremap.stderr.exp with 100% similarity]
none/tests/linux/mremap.stderr.exp-glibc27 [moved from none/tests/mremap.stderr.exp-glibc27 with 100% similarity]
none/tests/linux/mremap.stdout.exp [moved from none/tests/mremap.stdout.exp with 100% similarity]
none/tests/linux/mremap.vgtest [moved from none/tests/mremap.vgtest with 100% similarity]
none/tests/linux/mremap2.c [moved from none/tests/mremap2.c with 96% similarity]
none/tests/linux/mremap2.stderr.exp [moved from none/tests/mremap2.stderr.exp with 100% similarity]
none/tests/linux/mremap2.stdout.exp [moved from none/tests/mremap2.stdout.exp with 100% similarity]
none/tests/linux/mremap2.stdout.exp-glibc28-amd64 [moved from none/tests/mremap2.stdout.exp-glibc28-amd64 with 100% similarity]
none/tests/linux/mremap2.stdout.exp2 [moved from none/tests/mremap2.stdout.exp2 with 100% similarity]
none/tests/linux/mremap2.vgtest [new file with mode: 0644]
none/tests/mremap2.vgtest [deleted file]

index 1e7d33d28a32db91e409b307c97c94f65b1d162f..47abcf2ddff8c0ba44f4d8b188410171bf42c667 100644 (file)
@@ -1750,6 +1750,7 @@ AC_OUTPUT(
    none/tests/ppc32/Makefile
    none/tests/ppc64/Makefile
    none/tests/x86/Makefile
+   none/tests/linux/Makefile
    none/docs/Makefile
    exp-omega/Makefile
    exp-omega/tests/Makefile
index f8a6e82b6d1c9db5f11ee28effcbfbd515b091a1..986332783f3a9a4f32fc259e87045172139bc910 100644 (file)
@@ -143,7 +143,6 @@ EXTRA_DIST = $(noinst_SCRIPTS) \
        sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
        stack_changes.stderr.exp stack_changes.stdout.exp \
        stack_changes.stdout.exp2 stack_changes.vgtest \
-       stack_switch.stderr.exp stack_switch.vgtest \
        strchr.stderr.exp strchr.stderr.exp2 strchr.vgtest \
        str_tester.stderr.exp str_tester.vgtest \
        supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
@@ -215,7 +214,7 @@ check_PROGRAMS = \
        realloc1 realloc2 realloc3 \
        sh-mem sh-mem-random \
        sigaltstack signal2 sigprocmask sigkill \
-       stack_changes stack_switch strchr str_tester \
+       stack_changes strchr str_tester \
        supp_unknown supp1 supp2 suppfree \
        trivialleak \
        mismatches new_override metadata \
@@ -247,7 +246,6 @@ wrap6_CFLAGS                = $(AM_FLAG_M3264_PRI) $(AM_CFLAGS) -O2 -g
 
 # Don't allow GCC to inline memcpy(), because then we can't intercept it
 overlap_CFLAGS         = $(AM_CFLAGS) -fno-builtin-memcpy
-stack_switch_LDADD      = -lpthread
 str_tester_CFLAGS      = $(AM_CFLAGS) -Wno-shadow
 supp_unknown_SOURCES   = badjump.c
 supp1_SOURCES          = supp.c
index 93fc4c79dc4da10eaff1d5300eea88e07acf6f64..8fde42764109c32f712bb6ee3e06a99ceb7a8fc1 100644 (file)
@@ -3,11 +3,13 @@ noinst_SCRIPTS = filter_stderr
 EXTRA_DIST = $(noinst_SCRIPTS) \
        brk.stderr.exp brk.vgtest \
        capget capget.stderr.exp \
+       stack_switch.stderr.exp stack_switch.vgtest \
        timerfd-syscall timerfd-syscall.stderr.exp
 
 check_PROGRAMS = \
        brk \
        capget \
+       stack_switch \
        timerfd-syscall
 
 AM_CPPFLAGS  = -I$(top_srcdir)/include
@@ -15,4 +17,5 @@ AM_CFLAGS    = $(WERROR) $(AM_FLAG_M3264_PRI) -Winline -Wall -Wshadow -g \
                $(FLAG_MMMX) $(FLAG_MSSE)
 AM_CXXFLAGS  = $(AM_CFLAGS)
 
+stack_switch_LDADD    = -lpthread
 timerfd_syscall_LDADD = -lrt
similarity index 88%
rename from memcheck/tests/stack_switch.c
rename to memcheck/tests/linux/stack_switch.c
index 45cde8e149ea03c9d8b80b686a40f606c805172d..a0cfbad857e2c5a470b8fdfd0ea23f571e81f4fd 100644 (file)
@@ -3,15 +3,6 @@
 
 #include <stdio.h>
 
-#if defined(_AIX)
-int main(int argc, char **argv) 
-{
-  printf("this test is linux-specific\n");
-  return 0;
-}
-
-#else
-
 #include <sched.h>
 #include <stdlib.h>
 #include <string.h>
@@ -63,5 +54,3 @@ int main(int argc, char **argv)
 
    exit( 0 );
 }
-
-#endif /* !defined(_AIX) */
index 43a51bc38e8589814aca8342b2c1e5b8c96f4a3d..600cc86e07c05d6ac23be7582568c23869c9185a 100644 (file)
@@ -3,6 +3,8 @@
 include $(top_srcdir)/Makefile.flags.am
 
 SUBDIRS = .
+
+# Arch-specific tests.
 if VGCONF_ARCHS_INCLUDE_X86
 SUBDIRS += x86
 endif
@@ -16,7 +18,12 @@ if VGCONF_ARCHS_INCLUDE_PPC64
 SUBDIRS += ppc64
 endif
 
-DIST_SUBDIRS = x86 amd64 ppc32 ppc64 .
+# OS-specific tests
+if VGCONF_OS_IS_LINUX
+SUBDIRS += linux
+endif
+
+DIST_SUBDIRS = x86 amd64 ppc32 ppc64 linux .
 
 noinst_SCRIPTS = \
        filter_cmdline0 filter_linenos \
@@ -76,11 +83,6 @@ EXTRA_DIST = $(noinst_SCRIPTS) \
        map_unaligned.stderr.exp map_unaligned.vgtest \
        map_unmap.stderr.exp map_unmap.stdout.exp map_unmap.vgtest \
        mq.stderr.exp mq.vgtest \
-       mremap.stderr.exp mremap.stdout.exp mremap.vgtest \
-       mremap2.stderr.exp \
-       mremap2.stdout.exp mremap2.stdout.exp2 \
-       mremap2.stdout.exp-glibc28-amd64 \
-       mremap2.vgtest \
        munmap_exe.stderr.exp munmap_exe.vgtest \
        nestedfns.stderr.exp nestedfns.stdout.exp nestedfns.vgtest \
        pending.stdout.exp pending.stderr.exp pending.vgtest \
@@ -144,7 +146,7 @@ check_PROGRAMS = \
        fdleak_fcntl fdleak_ipv4 fdleak_open fdleak_pipe \
        fdleak_socketpair \
        floored fork fucomip manythreads \
-       munmap_exe map_unaligned map_unmap mq mremap mremap2 \
+       munmap_exe map_unaligned map_unmap mq \
        nestedfns \
        pending \
        pth_atfork1 pth_blockedsig pth_cancel1 pth_cancel2 pth_cvsimple \
diff --git a/none/tests/linux/Makefile.am b/none/tests/linux/Makefile.am
new file mode 100644 (file)
index 0000000..2760a8a
--- /dev/null
@@ -0,0 +1,14 @@
+noinst_SCRIPTS = filter_stderr
+
+EXTRA_DIST = $(noinst_SCRIPTS) \
+       mremap.stderr.exp mremap.stdout.exp mremap.vgtest \
+       mremap2.stderr.exp mremap2.stdout.exp mremap2.stdout.exp2 \
+           mremap2.stdout.exp-glibc28-amd64 mremap2.vgtest
+
+check_PROGRAMS = \
+       mremap \
+       mremap2
+
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
+AM_CFLAGS   = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
+AM_CXXFLAGS = $(AM_CFLAGS)
diff --git a/none/tests/linux/filter_stderr b/none/tests/linux/filter_stderr
new file mode 100755 (executable)
index 0000000..0ae9313
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+../filter_stderr
similarity index 94%
rename from none/tests/mremap.c
rename to none/tests/linux/mremap.c
index 3a2d22a4a8c0fbab89a54e5a316dbbc082e7214f..a768836ac1042d88c53dbd8ba398cdf64ad49052 100644 (file)
@@ -3,16 +3,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#if defined(_AIX)
-
-int main ( void )
-{
-  printf("This test is Linux-specific.\n");
-  return 0;
-}
-
-#else
-
 static char *mkmap(unsigned sz)
 {
        static char *map;
@@ -106,5 +96,3 @@ int main()
 
        return 0;
 }
-
-#endif /* defined(_AIX) */
similarity index 96%
rename from none/tests/mremap2.c
rename to none/tests/linux/mremap2.c
index 8bef8319447d320cd63b1306f50db804486379e9..0d932dd44deed6e1915ea9e5d1b2fe1929ff3ead 100644 (file)
@@ -2,16 +2,6 @@
 
 #include <stdio.h>
 
-#if defined(_AIX)
-
-int main ( void )
-{
-  printf("This test is Linux-specific.\n");
-  return 0;
-}
-
-#else
-
 #include <sys/mman.h>
 #include <assert.h>
 #include <stdlib.h>
@@ -172,5 +162,3 @@ int main ( void )
   }
   return 0;
 }
-
-#endif /* defined(_AIX5) */
diff --git a/none/tests/linux/mremap2.vgtest b/none/tests/linux/mremap2.vgtest
new file mode 100644 (file)
index 0000000..0e88835
--- /dev/null
@@ -0,0 +1,2 @@
+prog: mremap2
+stdout_filter: ../../../tests/filter_addresses
diff --git a/none/tests/mremap2.vgtest b/none/tests/mremap2.vgtest
deleted file mode 100644 (file)
index 9120adc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-prog: mremap2
-stdout_filter: ../../tests/filter_addresses