Commits

Daniel Green committed b6fdbee

Convert testsuite to be compatible with GCC.

  • Participants
  • Parent commits 576b5d1
  • Branches testsuite-gcc

Comments (0)

Files changed (1493)

File gdc.test/Makefile

+# Execute the dmd test suite
+#
+# Targets:
+#
+#    default | all:      run all unit tests that haven't been run yet
+#
+#    run_tests:          run all tests
+#    run_runnable_tests:         run just the runnable tests
+#    run_compilable_tests:       run just the runnable tests
+#    run_fail_compilation_tests: run just the runnable tests
+#
+#    quick:              run all tests with no default permuted args
+#                        (individual test specified options still honored)
+#
+#    clean:              remove all temporary or result files from prevous runs
+#
+#
+# In-test variables:
+#
+#   COMPILE_SEPARATELY:  if present, forces each .d file to compile separately and linked
+#                        together in an extra setp.
+#                        default: (none, aka compile/link all in one step)
+#
+#   EXECUTE_ARGS:        parameters to add to the execution of the test
+#                        default: (none)
+#
+#   EXTRA_SOURCES:       list of extra files to build and link along with the test
+#                        default: (none)
+#
+#   PERMUTE_ARGS:        the set of arguments to permute in multiple $(DMD) invocations
+#                        default: the make variable ARGS (see below)
+#
+#   POST_SCRIPT:         name of script to execute after test run
+#                        default: (none)
+#
+#   REQUIRED_ARGS:       arguments to add to the $(DMD) command line
+#                        default: (none)
+
+ifeq (,$(OS))
+    OS:=$(shell uname)
+    ifeq (Darwin,$(OS))
+        OS:=osx
+    else
+        ifeq (Linux,$(OS))
+            OS:=posix
+        else
+            ifeq (FreeBSD,$(OS))
+                OS:=freebsd
+            else
+                $(error Unrecognized or unsupported OS for uname: $(OS))
+            endif
+        endif
+    endif
+else
+    ifeq (Windows_NT,$(OS))
+	OS:=win32
+    else
+        ifeq (Win_32,$(OS))
+	    OS:=win32
+        endif
+    endif
+endif
+export OS
+
+ifeq (freebsd,$(OS))
+    SHELL=/usr/local/bin/bash
+else
+    SHELL=/bin/bash
+endif
+QUIET=@
+#QUIET=
+export RESULTS_DIR=test_results
+export MODEL=32
+#export MODEL=64
+
+ifeq ($(OS),win32)
+export ARGS=-inline -release -g -O -unittest
+export DMD=../src/dmd.exe
+export EXE=.exe
+export OBJ=.obj
+export DSEP=\\
+export SEP=$(shell echo '\')
+# bug in vim syntax hilighting, needed to kick it back into life: ')
+else
+export ARGS=-inline -release -g -O -unittest -gs
+export DMD=gdmd
+export EXE=
+export OBJ=.o
+export DSEP=/
+export SEP=/
+endif
+
+ifeq ($(OS),freebsd)
+DISABLED_TESTS += a20
+DISABLED_TESTS += cov2
+# coverage issues, see bug 5619
+
+DISABLED_TESTS += builtin
+# precision related bug: Error: static assert  (0x1.f9f8d9aea10fb28ep-2L == 0x1.f9f8d9aea10fdf1cp-2L) is false
+
+DISABLED_TESTS += dhry
+# runnable/dhry.d(488): Error: undefined identifier dtime
+
+# 64 bit test failures
+DISABLED_TESTS += test17
+DISABLED_SH_TESTS += test39
+endif
+
+ifeq ($(DMD),gdmd)
+DMD=$(shell which gdmd)
+