Pārlūkot izejas kodu

* enable 40+ tests for Haiku as per mantis #30470

git-svn-id: trunk@34312 -
marco 9 gadi atpakaļ
vecāks
revīzija
690f784c4d

+ 1 - 1
tests/tbs/tb0038.pp

@@ -1,5 +1,5 @@
 { %CPU=i386 }
-{ %TARGET=go32v2,win32,linux }
+{ %TARGET=go32v2,win32,linux,haiku }
 { %NOTE=This test requires an installed Nasm }
 
 { Old file: tbs0043.pp }

+ 1 - 1
tests/tbs/tb0089.pp

@@ -1,4 +1,4 @@
-{ %TARGET=go32v2,linux }
+{ %TARGET=go32v2,linux,haiku }
 { %SKIPEMU=qemu-arm }
 
 { Old file: tbs0105.pp }

+ 1 - 1
tests/tbs/tb0105.pp

@@ -1,4 +1,4 @@
-{ %TARGET=linux,go32v2 }
+{ %TARGET=linux,go32v2,haiku }
 { %CPU=i386 }
 { %OPT= -Aas -Cg- }
 

+ 1 - 1
tests/tbs/tb0225.pp

@@ -1,4 +1,4 @@
-{ %TARGET=win32,linux,wince }
+{ %TARGET=win32,linux,wince,haiku }
 { %needlibrary }
 { %NORUN }
 

+ 1 - 1
tests/tbs/tb0359.pp

@@ -1,5 +1,5 @@
 { %version=1.1 }
-{ %TARGET=linux,freebsd,darwin,solaris,aix }
+{ %TARGET=linux,freebsd,darwin,solaris,aix,haiku }
 
 {$linklib c}
 

+ 1 - 1
tests/tbs/tb0524.pp

@@ -1,4 +1,4 @@
-{%TARGET=linux,freebsd,darwin,aix,openbsd,netbsd}
+{%TARGET=linux,freebsd,darwin,aix,openbsd,netbsd,haiku}
 program tb0524;
 
 uses sockets,baseunix,sysutils;

+ 1 - 1
tests/tbs/tb0561a.pp

@@ -1,5 +1,5 @@
 { %norun }
-{ %target=linux }
+{ %target=linux,haiku }
 
 program test;
 

+ 1 - 1
tests/tbs/tb0561b.pp

@@ -1,4 +1,4 @@
-{ %target=linux }
+{ %target=linux,haiku }
 
 program setup;
 

+ 1 - 1
tests/test/opt/twpo4.pp

@@ -1,4 +1,4 @@
-{ %target=darwin,linux,freebsd,solaris,aix }
+{ %target=darwin,linux,freebsd,solaris,aix,haiku }
 { %wpoparas=devirtcalls,optvmts,symbolliveness }
 { %wpopasses=2 }
 { %opt=-CX -XX -Xs- -g- }

+ 1 - 1
tests/test/opt/twpo5.pp

@@ -1,4 +1,4 @@
-{ %target=darwin,linux,freebsd,solaris,aix }
+{ %target=darwin,linux,freebsd,solaris,aix,haiku }
 { %wpoparas=devirtcalls,optvmts,symbolliveness }
 { %wpopasses=2 }
 { %opt=-CX -XX -Xs- -g- }

+ 1 - 1
tests/test/packages/webtbs/tw14265.pp

@@ -1,4 +1,4 @@
-{ %target=linux }
+{ %target=linux,haiku }
 { %opt=-Xt }
 
 program phello;

+ 6 - 1
tests/test/testfpuc.pp

@@ -1,12 +1,17 @@
-{ %target=linux,freebsd,darwin,solaris,aix,android }
+{ %target=linux,freebsd,darwin,solaris,aix,android,haiku }
 
 {$mode objfpc}
 program testr;
 
 uses sysutils;
 function sprintf(buf,fmt : pchar) : longint; varargs;cdecl; external 'c';
+{$ifdef haiku}
+function cosh(f : double) : double; cdecl; external 'root';
+function ccos(f : double) : double; cdecl; external 'root' name 'cos';
+{$else}
 function cosh(f : double) : double; cdecl; external 'm';
 function ccos(f : double) : double; cdecl; external 'm' name 'cos';
+{$endif}
 
 Type
   TTest = Class(TObject)

+ 1 - 1
tests/webtbf/tw25788.pp

@@ -1,7 +1,7 @@
 { %norun }
 { %opt=-Cg }
 { %fail }
-{ %target=linux,freebsd,darwin }
+{ %target=linux,freebsd,darwin,haiku }
 
 unit tw25788;
 

+ 1 - 1
tests/webtbs/tw0876.pp

@@ -1,4 +1,4 @@
-{ %target=go32v2,linux,freebsd,darwin }
+{ %target=go32v2,linux,freebsd,darwin,haiku }
 { %note=This test needs C libraries }
 { %OPT=-pg }
 

+ 1 - 1
tests/webtbs/tw11563.pp

@@ -1,4 +1,4 @@
-{ %target=linux}
+{ %target=linux,haiku}
 { %result=216 }
 
 program ExecStack;

+ 1 - 1
tests/webtbs/tw14958a.pp

@@ -1,4 +1,4 @@
-{ %target=linux }
+{ %target=linux,haiku }
 { %needlibrary }
 { %norun }
 library tw14958a;

+ 1 - 1
tests/webtbs/tw14958b.pp

@@ -1,4 +1,4 @@
-{ %target=linux }
+{ %target=linux,haiku }
 { %needlibrary }
 { %result=182 }
 program loadlib;

+ 1 - 1
tests/webtbs/tw15582.pp

@@ -1,5 +1,5 @@
 { %cpu=x86_64,i386,powerpc,powerpc64}
-{ %skiptarget=linux,freebsd,netbsd,openbsd,win32,os2,emx,go32v2}
+{ %skiptarget=linux,freebsd,netbsd,openbsd,win32,os2,emx,go32v2,haiku}
 
 { should actually only skip i386-variants of win32/linux/.. for now, but that can't be specified }
 

+ 1 - 1
tests/webtbs/tw16949a.pp

@@ -1,6 +1,6 @@
 { %norun }
 { %needlibrary }
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 
 library tw16949a;
 

+ 1 - 1
tests/webtbs/tw16949b.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 { %needlibrary }
 { %delfiles=tw16949a }
 

+ 1 - 1
tests/webtbs/tw18009.pp

@@ -1,5 +1,5 @@
 { %CPU=i386 }
-{ %TARGET=go32v2,win32,linux }
+{ %TARGET=go32v2,win32,linux,haiku }
 { %NOTE=This test requires an installed Nasm }
 { %OPT=-Cg- }
 

+ 1 - 1
tests/webtbs/tw25164.pp

@@ -1,5 +1,5 @@
 { %opt=-Cg }
-{ %target=-linux,freebsd,darwin }
+{ %target=-linux,freebsd,darwin,haiku }
 { %norun }
 {$mode objfpc}
 

+ 1 - 1
tests/webtbs/tw25169.pp

@@ -1,4 +1,4 @@
-{ %target=darwin,linux,freebsd,openbsd,netbsd,solaris }
+{ %target=darwin,linux,freebsd,openbsd,netbsd,solaris,haiku }
 
 uses
   unixcp;

+ 1 - 1
tests/webtbs/tw3161.pp

@@ -1,4 +1,4 @@
-{ %target=linux }
+{ %target=linux,haiku }
 
 { Source provided for Free Pascal Bug Report 3161 }
 { Submitted by "Michalis Kamburelis" on  2004-06-12 }

+ 1 - 1
tests/webtbs/tw3257.pp

@@ -1,4 +1,4 @@
-{ %target=linux,freebsd }
+{ %target=linux,freebsd,haiku }
 
 { Source provided for Free Pascal Bug Report 3257 }
 { Submitted by "peter green" on  2004-08-18 }

+ 1 - 1
tests/webtbs/tw3964a.pp

@@ -1,6 +1,6 @@
 { %norun }
 { %needlibrary }
-{ %target=linux }
+{ %target=linux,haiku }
 {$mode objfpc}
 library tw3964a;
 

+ 1 - 1
tests/webtbs/tw3964b.pp

@@ -1,5 +1,5 @@
 { %needlibrary }
-{ %target=linux }
+{ %target=linux,haiku }
 {$mode objfpc}
 
 {$linklib tw3964a}

+ 1 - 1
tests/webtbs/tw6586a.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 { %needlibrary }
 { %norun }
 

+ 1 - 1
tests/webtbs/tw6586b.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 { %needlibrary }
 { %delfiles=tw6586a }
 

+ 1 - 1
tests/webtbs/tw6687.pp

@@ -1,5 +1,5 @@
 { %cpu=i386 }
-{ %target=win32,linux,freebsd }
+{ %target=win32,linux,freebsd,haiku }
 
 {$ifdef fpc}
 {$mode delphi}

+ 1 - 1
tests/webtbs/tw6822c.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 uses
   SysUtils;
 

+ 1 - 1
tests/webtbs/tw7808.pp

@@ -1,5 +1,5 @@
 { %cpu=i386 }
-{ %target=go32v2,linux,freebsd,win32}
+{ %target=go32v2,linux,freebsd,win32,haiku}
 { %opt=-Sew -vw }
 
 {$mode delphi}

+ 1 - 1
tests/webtbs/tw7838a.pp

@@ -1,6 +1,6 @@
 { %norun }
 { %needlibrary }
-{ %target=win32,win64,wince,linux,android}
+{ %target=win32,win64,wince,linux,android,haiku}
 
 library tw7838a;
 

+ 1 - 1
tests/webtbs/tw7838b.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,linux,android}
+{ %target=win32,win64,linux,android,haiku}
 { %needlibrary }
 { %delfiles=tw7838a }
 

+ 1 - 1
tests/webtbs/tw8155.pp

@@ -1,5 +1,5 @@
 { %cpu=i386 }
-{ %target=win32,linux,freebsd }
+{ %target=win32,linux,freebsd,haiku }
 
 {$ifdef fpc}
 {$mode delphi}

+ 1 - 1
tests/webtbs/tw8730a.pp

@@ -1,6 +1,6 @@
 { %norun }
 { %needlibrary }
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 
 {$mode delphi}
 

+ 1 - 1
tests/webtbs/tw8730b.pp

@@ -1,5 +1,5 @@
 { %norun }
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 { %NEEDLIBRARY }
 
 {$mode delphi}

+ 1 - 1
tests/webtbs/tw8730c.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 { %NEEDLIBRARY }
 
 {$mode delphi}

+ 1 - 1
tests/webtbs/tw8730d.pp

@@ -1,4 +1,4 @@
-{ %target=darwin,linux,freebsd,solaris,beos,aix,android}
+{ %target=darwin,linux,freebsd,solaris,beos,aix,android,haiku}
 { %NEEDLIBRARY }
 { %delfiles=tw8730a tw8730b }
 

+ 1 - 1
tests/webtbs/tw9089a.pp

@@ -1,6 +1,6 @@
 { %norun }
 { %needlibrary }
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 
 library tw9089a;
 

+ 1 - 1
tests/webtbs/tw9089b.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 { %norun }
 { %needlibrary }
 

+ 1 - 1
tests/webtbs/tw9089c.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 { %needlibrary }
 { %delfiles=tw9089a tw9089b }
 

+ 1 - 1
tests/webtbs/tw9089d.pp

@@ -1,4 +1,4 @@
-{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android }
+{ %target=win32,win64,wince,darwin,linux,freebsd,solaris,beos,aix,android,haiku }
 uses
   SysUtils;