testsuite: Move complex tests to their own subdirectory
authorRichard Henderson <rth@twiddle.net>
Fri, 14 Nov 2014 10:00:14 +0000 (11:00 +0100)
committerRichard Henderson <rth@twiddle.net>
Fri, 14 Nov 2014 12:07:47 +0000 (13:07 +0100)
It seems a bit silly to isolate them by globbing vs "*complex*"
when we can just as easily put them in their own subdirectory.

43 files changed:
testsuite/libffi.call/call.exp
testsuite/libffi.complex/cls_align_complex.inc [moved from testsuite/libffi.call/cls_align_complex.inc with 100% similarity]
testsuite/libffi.complex/cls_align_complex_double.c [moved from testsuite/libffi.call/cls_align_complex_double.c with 100% similarity]
testsuite/libffi.complex/cls_align_complex_float.c [moved from testsuite/libffi.call/cls_align_complex_float.c with 100% similarity]
testsuite/libffi.complex/cls_align_complex_longdouble.c [moved from testsuite/libffi.call/cls_align_complex_longdouble.c with 100% similarity]
testsuite/libffi.complex/cls_complex.inc [moved from testsuite/libffi.call/cls_complex.inc with 100% similarity]
testsuite/libffi.complex/cls_complex_double.c [moved from testsuite/libffi.call/cls_complex_double.c with 100% similarity]
testsuite/libffi.complex/cls_complex_float.c [moved from testsuite/libffi.call/cls_complex_float.c with 100% similarity]
testsuite/libffi.complex/cls_complex_longdouble.c [moved from testsuite/libffi.call/cls_complex_longdouble.c with 100% similarity]
testsuite/libffi.complex/cls_complex_struct.inc [moved from testsuite/libffi.call/cls_complex_struct.inc with 100% similarity]
testsuite/libffi.complex/cls_complex_struct_double.c [moved from testsuite/libffi.call/cls_complex_struct_double.c with 100% similarity]
testsuite/libffi.complex/cls_complex_struct_float.c [moved from testsuite/libffi.call/cls_complex_struct_float.c with 100% similarity]
testsuite/libffi.complex/cls_complex_struct_longdouble.c [moved from testsuite/libffi.call/cls_complex_struct_longdouble.c with 100% similarity]
testsuite/libffi.complex/cls_complex_va.inc [moved from testsuite/libffi.call/cls_complex_va.inc with 100% similarity]
testsuite/libffi.complex/cls_complex_va_double.c [moved from testsuite/libffi.call/cls_complex_va_double.c with 100% similarity]
testsuite/libffi.complex/cls_complex_va_float.c [moved from testsuite/libffi.call/cls_complex_va_float.c with 100% similarity]
testsuite/libffi.complex/cls_complex_va_longdouble.c [moved from testsuite/libffi.call/cls_complex_va_longdouble.c with 100% similarity]
testsuite/libffi.complex/complex.exp [new file with mode: 0644]
testsuite/libffi.complex/complex.inc [moved from testsuite/libffi.call/complex.inc with 100% similarity]
testsuite/libffi.complex/complex_defs_double.inc [moved from testsuite/libffi.call/complex_defs_double.inc with 100% similarity]
testsuite/libffi.complex/complex_defs_float.inc [moved from testsuite/libffi.call/complex_defs_float.inc with 100% similarity]
testsuite/libffi.complex/complex_defs_longdouble.inc [moved from testsuite/libffi.call/complex_defs_longdouble.inc with 100% similarity]
testsuite/libffi.complex/complex_double.c [moved from testsuite/libffi.call/complex_double.c with 100% similarity]
testsuite/libffi.complex/complex_float.c [moved from testsuite/libffi.call/complex_float.c with 100% similarity]
testsuite/libffi.complex/complex_int.c [moved from testsuite/libffi.call/complex_int.c with 100% similarity]
testsuite/libffi.complex/complex_longdouble.c [moved from testsuite/libffi.call/complex_longdouble.c with 100% similarity]
testsuite/libffi.complex/ffitest.h [new file with mode: 0644]
testsuite/libffi.complex/many_complex.inc [moved from testsuite/libffi.call/many_complex.inc with 100% similarity]
testsuite/libffi.complex/many_complex_double.c [moved from testsuite/libffi.call/many_complex_double.c with 100% similarity]
testsuite/libffi.complex/many_complex_float.c [moved from testsuite/libffi.call/many_complex_float.c with 100% similarity]
testsuite/libffi.complex/many_complex_longdouble.c [moved from testsuite/libffi.call/many_complex_longdouble.c with 100% similarity]
testsuite/libffi.complex/return_complex.inc [moved from testsuite/libffi.call/return_complex.inc with 100% similarity]
testsuite/libffi.complex/return_complex1.inc [moved from testsuite/libffi.call/return_complex1.inc with 100% similarity]
testsuite/libffi.complex/return_complex1_double.c [moved from testsuite/libffi.call/return_complex1_double.c with 100% similarity]
testsuite/libffi.complex/return_complex1_float.c [moved from testsuite/libffi.call/return_complex1_float.c with 100% similarity]
testsuite/libffi.complex/return_complex1_longdouble.c [moved from testsuite/libffi.call/return_complex1_longdouble.c with 100% similarity]
testsuite/libffi.complex/return_complex2.inc [moved from testsuite/libffi.call/return_complex2.inc with 100% similarity]
testsuite/libffi.complex/return_complex2_double.c [moved from testsuite/libffi.call/return_complex2_double.c with 100% similarity]
testsuite/libffi.complex/return_complex2_float.c [moved from testsuite/libffi.call/return_complex2_float.c with 100% similarity]
testsuite/libffi.complex/return_complex2_longdouble.c [moved from testsuite/libffi.call/return_complex2_longdouble.c with 100% similarity]
testsuite/libffi.complex/return_complex_double.c [moved from testsuite/libffi.call/return_complex_double.c with 100% similarity]
testsuite/libffi.complex/return_complex_float.c [moved from testsuite/libffi.call/return_complex_float.c with 100% similarity]
testsuite/libffi.complex/return_complex_longdouble.c [moved from testsuite/libffi.call/return_complex_longdouble.c with 100% similarity]

index 54f2834..46fb1eb 100644 (file)
@@ -20,18 +20,9 @@ libffi-init
 global srcdir subdir
 
 set tlist [lsearch -inline -all -not -glob [lsort [glob -nocomplain -- $srcdir/$subdir/*.{c,cc}]] *complex*]
-set ctlist [lsearch -inline -all -glob [lsort [glob -nocomplain -- $srcdir/$subdir/*.{c,cc}]] *complex*]
 
 run-many-tests $tlist ""
 
-if { [libffi_feature_test "#ifdef FFI_TARGET_HAS_COMPLEX_TYPE"] } {
-    run-many-tests $ctlist ""
-} else {
-    foreach test $ctlist {
-       unsupported "$test"
-    }
-}
-
 dg-finish
 
 # Local Variables:
diff --git a/testsuite/libffi.complex/complex.exp b/testsuite/libffi.complex/complex.exp
new file mode 100644 (file)
index 0000000..4631db2
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright (C) 2003, 2006, 2009, 2010, 2014 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING3.  If not see
+# <http://www.gnu.org/licenses/>.
+
+dg-init
+libffi-init
+
+global srcdir subdir
+
+set tlist [lsort [glob -nocomplain -- $srcdir/$subdir/*.{c,cc}]]
+
+if { [libffi_feature_test "#ifdef FFI_TARGET_HAS_COMPLEX_TYPE"] } {
+    run-many-tests $tlist ""
+} else {
+    foreach test $tlist {
+       unsupported "$test"
+    }
+}
+
+dg-finish
+
+# Local Variables:
+# tcl-indent-level:4
+# End:
diff --git a/testsuite/libffi.complex/ffitest.h b/testsuite/libffi.complex/ffitest.h
new file mode 100644 (file)
index 0000000..d27d362
--- /dev/null
@@ -0,0 +1 @@
+#include "../libffi.call/ffitest.h"