sim: testsuite: initial support for OS-specific tests
authorMike Frysinger <vapier@gentoo.org>
Thu, 11 Nov 2021 05:29:41 +0000 (00:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 27 Nov 2021 01:06:55 +0000 (20:06 -0500)
commit1214c97666139d06fd1d1301af05844f7771f377
tree820e41dfbd93c33a10e3f4f7ea1282a1fac618ef
parent264dcc17cc4d2252d58bda347dfd78c1b78517da
sim: testsuite: initial support for OS-specific tests

We usually test against the newlib/libgloss environment, but for a
few ports that also support Linux apps, we want to test that logic
too.  A lot of the C code is written such that it works with either
newlib/libgloss or glibc/linux toolchains, but we have some tests
that end up being Linux-specific.  Cris has been using the target
tuple as a rough proxy for this (where cris*-*-elf is assumed to be
newlib/libgloss, and everything else is glibc/linux), but that is a
bit too rough, and it doesn't work in a multitarget build.

So lets create a few stub files that we can do compile tests with
to detect the different setups, and then let tests declare which
one they require (if they require any at all).
107 files changed:
sim/testsuite/cris/c/access1.c
sim/testsuite/cris/c/badldso1.c
sim/testsuite/cris/c/badldso2.c
sim/testsuite/cris/c/badldso3.c
sim/testsuite/cris/c/c.exp
sim/testsuite/cris/c/clone1.c
sim/testsuite/cris/c/clone2.c
sim/testsuite/cris/c/clone3.c
sim/testsuite/cris/c/clone4.c
sim/testsuite/cris/c/clone5.c
sim/testsuite/cris/c/clone6.c
sim/testsuite/cris/c/ex1.c
sim/testsuite/cris/c/exitg1.c
sim/testsuite/cris/c/exitg2.c
sim/testsuite/cris/c/fcntl1.c
sim/testsuite/cris/c/fcntl2.c
sim/testsuite/cris/c/ftruncate1.c
sim/testsuite/cris/c/ftruncate2.c
sim/testsuite/cris/c/getcwd1.c
sim/testsuite/cris/c/hellodyn3.c
sim/testsuite/cris/c/mmap1.c
sim/testsuite/cris/c/mmap2.c
sim/testsuite/cris/c/mmap3.c
sim/testsuite/cris/c/mmap4.c
sim/testsuite/cris/c/mmap5.c
sim/testsuite/cris/c/mmap6.c
sim/testsuite/cris/c/mmap7.c
sim/testsuite/cris/c/mmap8.c
sim/testsuite/cris/c/mprotect1.c
sim/testsuite/cris/c/mprotect2.c
sim/testsuite/cris/c/openpf5.c
sim/testsuite/cris/c/pipe1.c
sim/testsuite/cris/c/pipe2.c
sim/testsuite/cris/c/pipe3.c
sim/testsuite/cris/c/pipe4.c
sim/testsuite/cris/c/pipe5.c
sim/testsuite/cris/c/pipe6.c
sim/testsuite/cris/c/pipe7.c
sim/testsuite/cris/c/readlink1.c
sim/testsuite/cris/c/readlink10.c
sim/testsuite/cris/c/readlink11.c
sim/testsuite/cris/c/readlink2.c
sim/testsuite/cris/c/readlink3.c
sim/testsuite/cris/c/readlink4.c
sim/testsuite/cris/c/readlink5.c
sim/testsuite/cris/c/readlink6.c
sim/testsuite/cris/c/readlink7.c
sim/testsuite/cris/c/readlink8.c
sim/testsuite/cris/c/readlink9.c
sim/testsuite/cris/c/rtsigprocmask1.c
sim/testsuite/cris/c/rtsigprocmask2.c
sim/testsuite/cris/c/rtsigsuspend1.c
sim/testsuite/cris/c/rtsigsuspend2.c
sim/testsuite/cris/c/sched1.c
sim/testsuite/cris/c/sched2.c
sim/testsuite/cris/c/sched3.c
sim/testsuite/cris/c/sched4.c
sim/testsuite/cris/c/sched5.c
sim/testsuite/cris/c/sched6.c
sim/testsuite/cris/c/sched7.c
sim/testsuite/cris/c/sched8.c
sim/testsuite/cris/c/sched9.c
sim/testsuite/cris/c/setrlimit1.c
sim/testsuite/cris/c/settls1.c
sim/testsuite/cris/c/sig10.c
sim/testsuite/cris/c/sig11.c
sim/testsuite/cris/c/sig12.c
sim/testsuite/cris/c/sig13.c
sim/testsuite/cris/c/sig2.c
sim/testsuite/cris/c/sig4.c
sim/testsuite/cris/c/sig6.c
sim/testsuite/cris/c/sig7.c
sim/testsuite/cris/c/sig9.c
sim/testsuite/cris/c/sigreturn1.c
sim/testsuite/cris/c/sigreturn2.c
sim/testsuite/cris/c/sigreturn3.c
sim/testsuite/cris/c/sigreturn4.c
sim/testsuite/cris/c/sock1.c
sim/testsuite/cris/c/stat2.c
sim/testsuite/cris/c/stat4.c
sim/testsuite/cris/c/stat5.c
sim/testsuite/cris/c/stat7.c
sim/testsuite/cris/c/stat8.c
sim/testsuite/cris/c/syscall1.c
sim/testsuite/cris/c/syscall2.c
sim/testsuite/cris/c/syscall3.c
sim/testsuite/cris/c/syscall4.c
sim/testsuite/cris/c/syscall5.c
sim/testsuite/cris/c/syscall6.c
sim/testsuite/cris/c/syscall7.c
sim/testsuite/cris/c/syscall8.c
sim/testsuite/cris/c/sysctl1.c
sim/testsuite/cris/c/sysctl2.c
sim/testsuite/cris/c/sysctl3.c
sim/testsuite/cris/c/thread2.c
sim/testsuite/cris/c/thread3.c
sim/testsuite/cris/c/thread4.c
sim/testsuite/cris/c/thread5.c
sim/testsuite/cris/c/truncate1.c
sim/testsuite/cris/c/truncate2.c
sim/testsuite/cris/c/ugetrlimit1.c
sim/testsuite/cris/c/uname1.c
sim/testsuite/cris/c/writev1.c
sim/testsuite/cris/c/writev2.c
sim/testsuite/lib/linuxcheck.c [new file with mode: 0644]
sim/testsuite/lib/newlibcheck.c [new file with mode: 0644]
sim/testsuite/lib/sim-defs.exp