]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libphobos: Organize druntime and phobos tests under common directory
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 25 Feb 2025 19:08:14 +0000 (20:08 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 25 Feb 2025 21:31:50 +0000 (22:31 +0100)
The druntime and druntime_shared tests are identical, save for one
compiled with `-static-libphobos' and the other `-shared-libphobos'.
Move them to libphobos.druntime/static and libphobos.druntime/shared
respectively.  This has also been done for libphobos.phobos.

libphobos/ChangeLog:

* testsuite/libphobos.druntime_shared/druntime_shared.exp: Move to...
* testsuite/libphobos.druntime/shared/druntime-shared.exp: ...here.
* testsuite/libphobos.druntime/druntime.exp: Move to...
* testsuite/libphobos.druntime/static/druntime-static.exp: ...here.
* testsuite/libphobos.phobos_shared/phobos_shared.exp: Move to...
* testsuite/libphobos.phobos/shared/phobos-shared.exp: ...here.
* testsuite/libphobos.phobos/phobos.exp: Move to...
* testsuite/libphobos.phobos/static/phobos-static.exp: ...here.

libphobos/testsuite/libphobos.druntime/shared/druntime-shared.exp [moved from libphobos/testsuite/libphobos.druntime_shared/druntime_shared.exp with 100% similarity]
libphobos/testsuite/libphobos.druntime/static/druntime-static.exp [moved from libphobos/testsuite/libphobos.druntime/druntime.exp with 100% similarity]
libphobos/testsuite/libphobos.phobos/shared/phobos-shared.exp [moved from libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp with 89% similarity]
libphobos/testsuite/libphobos.phobos/static/phobos-static.exp [moved from libphobos/testsuite/libphobos.phobos/phobos.exp with 88% similarity]

similarity index 89%
rename from libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
rename to libphobos/testsuite/libphobos.phobos/shared/phobos-shared.exp
index 54acea78a68696484f41b743a6d90861dc253131..31cc13dd9ae22db930a6d88cc0146726bbbb7f5d 100644 (file)
@@ -35,10 +35,10 @@ if { [is-effective-target linux_pre_2639] } {
 
 set libphobos_skip_tests {
     # Skip curl tests if library is not available
-    { libphobos.phobos_shared/etc/c/curl.d { ! libcurl_available } }
-    { libphobos.phobos_shared/std/net/curl.d { ! libcurl_available } }
+    { libphobos.phobos/shared/etc/c/curl.d { ! libcurl_available } }
+    { libphobos.phobos/shared/std/net/curl.d { ! libcurl_available } }
     # Skip concurrency.d test: SEGVs or hangs on macOS 13+ (PR d/111628).
-    { libphobos.phobos_shared/std/concurrency.d { x86_64-apple-darwin2[2-9]* } }
+    { libphobos.phobos/shared/std/concurrency.d { x86_64-apple-darwin2[2-9]* } }
 }
 
 # Initialize dg.
similarity index 88%
rename from libphobos/testsuite/libphobos.phobos/phobos.exp
rename to libphobos/testsuite/libphobos.phobos/static/phobos-static.exp
index 3e74078f1366f0caf3ab0dceaf4c3d83aceaad46..642019c7f6d7027c4d97d4c425722c6921920d74 100644 (file)
@@ -35,10 +35,10 @@ if { [is-effective-target linux_pre_2639] } {
 
 set libphobos_skip_tests {
     # Skip curl tests if library is not available
-    { libphobos.phobos/etc/c/curl.d { ! libcurl_available } }
-    { libphobos.phobos/std/net/curl.d { ! libcurl_available } }
+    { libphobos.phobos/static/etc/c/curl.d { ! libcurl_available } }
+    { libphobos.phobos/static/std/net/curl.d { ! libcurl_available } }
     # Skip concurrency.d test: SEGVs or hangs on macOS 13+ (PR d/111628).
-    { libphobos.phobos/std/concurrency.d { x86_64-apple-darwin2[2-9]* } }
+    { libphobos.phobos/static/std/concurrency.d { x86_64-apple-darwin2[2-9]* } }
 }
 
 # Initialize dg.