testsuite: reduced the number of failing tests from 25 to 13

Some tests may fail on Windows because of \ instead of / in paths.
This commit is contained in:
hallgren
2013-12-06 16:01:13 +00:00
parent a98f4aa4be
commit 953c6e8fb5
14 changed files with 73 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
checking module Test1Abs
circular definitions: A B
testsuite/compiler/check/cyclic/abs-types/Test1Abs.gf:
circular definitions: A B

View File

@@ -1,4 +1,4 @@
checking module Test2Abs
circular definitions: f g
testsuite/compiler/check/cyclic/abs-types/Test2Abs.gf:
circular definitions: f g

View File

@@ -1,8 +1,8 @@
checking module TestOpers
circular definitions: A B
checking module TestOperTypes
circular definitions: A T
testsuite/compiler/check/cyclic/opers/TestOpers.gf:
circular definitions: A B
testsuite/compiler/check/cyclic/opers/TestOperTypes.gf:
circular definitions: A T

View File

@@ -1,4 +1,4 @@
checking module TestParams
circular definitions: A B
testsuite/compiler/check/cyclic/params/TestParams.gf:
circular definitions: A B

View File

@@ -1,7 +1,7 @@
checking module TestCnc
Happened in linearization type of S in TestCnc.gf, line 3:
type of PTrue
expected: Type
inferred: PBool
testsuite/compiler/check/lincat-types/TestCnc.gf:3:
Happened in linearization type of S
type of PTrue
expected: Type
inferred: PBool

View File

@@ -1,5 +1,5 @@
checking module Res
Happened in operation my_oper in Res.gf, line 3:
No definition given to the operation
testsuite/compiler/check/oper-definition/Res.gf:3:
Happened in operation my_oper
No definition given to the operation

View File

@@ -1 +1 @@
i testsuite\compiler\params\paramsCnc.gf
i testsuite/compiler/params/paramsCnc.gf

View File

@@ -1,5 +1,5 @@
renaming module funpatt
renaming of d in funpatt.gf, line 11
data constructor expected but funpatt.D1 is found instead
testsuite/compiler/renamer/funpatt.gf:11:
Happened in the renaming of d
data constructor expected but funpatt.D1 is found instead

View File

@@ -1,5 +1,5 @@
checking module A
Prod expected for function A instead of Type
in category B in A.gf, line 4
testsuite/compiler/typecheck/abstract/A.gf:4:
Happened in the category B
Prod expected for function A instead of Type

View File

@@ -1,5 +1,5 @@
checking module B
Prod expected for function S instead of Type
in type of function f in B.gf, line 5
testsuite/compiler/typecheck/abstract/B.gf:5:
Happened in the type of function f
Prod expected for function S instead of Type

View File

@@ -1,5 +1,5 @@
checking module C
{Int <> S}
in definition of function f in C.gf, line 6
testsuite/compiler/typecheck/abstract/C.gf:6:
Happened in the definition of function f
{Int <> S}

View File

@@ -1,5 +1,5 @@
checking module A
Happened in operation silly in A.gf, line 5:
A function type is expected for a_Det instead of type Str
testsuite/compiler/typecheck/concrete/A.gf:5:
Happened in operation silly
A function type is expected for a_Det instead of type Str

View File

@@ -1,8 +1,8 @@
C:\gf\testsuite\compiler\update\ArrityCheck.gf:6:1: cannot unify the informations
fun f : Int -> Int -> Int ;
def f 0 = \x -> x ;
and
def f 1 1 = 0 ;
in module ArrityCheck
testsuite/compiler/update/ArrityCheck.gf:6:1:
conflicting information in module ArrityCheck
fun f : Int -> Int -> Int ;
def f 0 = \x -> x ;
and
def f 1 1 = 0 ;

View File

@@ -9,7 +9,7 @@ import System.Exit(exitSuccess,exitFailure)
main =
do res <- walk "testsuite"
let cnt = length res
(good,bad) = partition ((=="OK").fst) res
(good,bad) = partition ((=="OK").fst.snd) res
ok = length good
fail = ok<cnt
putStrLn $ show ok++"/"++show cnt++ " passed/tests"
@@ -24,15 +24,15 @@ main =
"<!DOCTYPE html>\n"
++ "<meta charset=\"UTF-8\">\n"
++ "<style>\n"
++ "pre { max-width: 500px; overflow: scroll; }\n"
++ "pre { max-width: 600px; overflow: scroll; }\n"
++ "th,td { vertical-align: top; text-align: left; }\n"
++ "</style>\n"
++ "<table border=1>\n<tr><th>Result<th>Input<th>Gold<th>Output\n"
++ unlines (map testToHTML res)
++ "</table>\n"
testToHTML (res,(input,gold,output)) =
"<tr>"++concatMap (td.pre) [res,input,gold,output]
testToHTML (in_file,(res,(input,gold,output))) =
"<tr>"++concatMap td [pre res,in_file++":\n"++pre input,pre gold,pre output]
pre s = "<pre>"++s++"</pre>"
td s = "<td>"++s
@@ -45,9 +45,10 @@ main =
then do let in_file = fpath
gold_file = fpath <.> ".gold"
out_file = fpath <.> ".out"
putStr $ in_file++": "; hFlush stdout
res <- runTest in_file out_file gold_file
putStrLn $ fst res++": "++in_file
return [res]
putStrLn $ fst res
return [(in_file,res)]
else return []
else walk fpath