Strengthen filepath.filter and make it run for all tests

It now handles filenames in strings that have been
var_dumped, without having to special case them. I also renamed it to
default.filter and changed verify to run it on every test. This lets us
remove a lot of symlinks that used to point to filepath.filter and
changed the expected output for a bunch of tests.
Esse commit está contido em:
bsimmers
2013-03-29 13:50:21 -07:00
commit de Sara Golemon
commit 88f1bcf907
206 arquivos alterados com 95 adições e 276 exclusões
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/^\(object([^)]\+)\)#[0-9]\+/\1/g'
sed -e 's/^\(object([^)]\+)\)#[0-9]\+/\1/g'
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/ $/ <-- trailing whitespace/g'
sed -e 's/ $/ <-- trailing whitespace/g'
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/^\(object([^)]\+)\)#[0-9]\+/\1/g'
sed -e 's/^\(object([^)]\+)\)#[0-9]\+/\1/g'
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
+1 -1
Ver Arquivo
@@ -1,3 +1,3 @@
#!/bin/bash
./test/vm/filepath.filter | ./test/vm/closure.filter
./test/vm/closure.filter
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
@@ -1 +0,0 @@
filepath.filter
@@ -1 +0,0 @@
filepath.filter
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
+14 -14
Ver Arquivo
@@ -2,7 +2,7 @@ array(5) {
[0]=>
array(6) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(9)
["function"]=>
@@ -18,7 +18,7 @@ array(5) {
[1]=>
array(7) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(15)
["function"]=>
@@ -50,7 +50,7 @@ array(5) {
[2]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(20)
["function"]=>
@@ -62,7 +62,7 @@ array(5) {
[3]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(29)
["function"]=>
@@ -74,7 +74,7 @@ array(5) {
[4]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(34)
["function"]=>
@@ -88,7 +88,7 @@ array(5) {
[0]=>
array(6) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(9)
["function"]=>
@@ -123,7 +123,7 @@ array(5) {
[2]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(20)
["function"]=>
@@ -135,7 +135,7 @@ array(5) {
[3]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(29)
["function"]=>
@@ -147,7 +147,7 @@ array(5) {
[4]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(34)
["function"]=>
@@ -161,7 +161,7 @@ array(2) {
[0]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(32)
["function"]=>
@@ -173,7 +173,7 @@ array(2) {
[1]=>
string(63) "Use of undefined constant FakeConstant - assumed 'FakeConstant'"
[2]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
[3]=>
int(32)
[4]=>
@@ -183,14 +183,14 @@ array(2) {
[0]=>
array(2) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(32)
}
[1]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(34)
["function"]=>
@@ -205,7 +205,7 @@ array(2) {
[1]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace.php"
"hphp/test/vm/debug_backtrace.php"
["line"]=>
int(34)
["function"]=>
@@ -17,7 +17,7 @@ array(3) {
[1]=>
array(7) {
["file"]=>
string() "hphp/test/vm/debug_backtrace_continuation.php"
"hphp/test/vm/debug_backtrace_continuation.php"
["line"]=>
int(10)
["function"]=>
@@ -38,7 +38,7 @@ array(3) {
[2]=>
array(4) {
["file"]=>
string() "hphp/test/vm/debug_backtrace_continuation.php"
"hphp/test/vm/debug_backtrace_continuation.php"
["line"]=>
int(13)
["function"]=>
@@ -1,2 +0,0 @@
#!/bin/bash
sed -e 's/string(.*) ".*\/hphp/string() "hphp/g'
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
Arquivo executável
+2
Ver Arquivo
@@ -0,0 +1,2 @@
#!/bin/bash
sed -r -e 's,(string\([0-9]+\))? ("?)[^ ]*(hphp/[^ "(]*), \2\3,g'
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
+3 -3
Ver Arquivo
@@ -2,7 +2,7 @@ array(3) {
[0]=>
array(7) {
["file"]=>
"hphp/test/vm/destructed_this.php"
["line"]=>
int(8)
["function"]=>
@@ -21,7 +21,7 @@ array(3) {
[1]=>
array(6) {
["file"]=>
"hphp/test/vm/destructed_this.php"
["line"]=>
int(18)
["function"]=>
@@ -37,7 +37,7 @@ array(3) {
[2]=>
array(4) {
["file"]=>
"hphp/test/vm/destructed_this.php"
["line"]=>
int(20)
["function"]=>
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's,\\n,\n,g'
sed -e 's,\\n,\n,g'
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/\\n/\n/g' | sed -e 's/string([0-9]*)/string/g'
sed -e 's/\\n/\n/g' | sed -e 's/string([0-9]*)/string/g'
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/\\n/\n/g' | sort | uniq
sed -e 's/\\n/\n/g' | sort | uniq
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/\\n/\n/g' | sort | uniq
sed -e 's/\\n/\n/g' | sort | uniq
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/\\n/\n/g'
sed -e 's/\\n/\n/g'
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/\\n/\n/g' -e '/Destructor raised a fatal error/d' -e 's/\(.*\)line.*/\1/g' | sort -fu
sed -e 's/\\n/\n/g' -e '/Destructor raised a fatal error/d' -e 's/\(.*\)line.*/\1/g' | sort -fu
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/\\n/\n/g' -e '/Destructor raised a fatal error/d' -e 's/\(.*\)line.*/\1/g' | sort -fu
sed -e 's/\\n/\n/g' -e '/Destructor raised a fatal error/d' -e 's/\(.*\)line.*/\1/g' | sort -fu
+6 -6
Ver Arquivo
@@ -3,30 +3,30 @@ array(6) {
[0]=>
int(16777217)
[1]=>
string() "Class undefined: Y"
string(18) "Class undefined: Y"
[2]=>
string() hphp/test/vm/fail_86pinit.php"
"hphp/test/vm/fail_86pinit.php"
[3]=>
int(5)
[4]=>
string() ""
string(0) ""
[5]=>
array(2) {
[0]=>
array(2) {
["file"]=>
string() hphp/test/vm/fail_86pinit.php"
"hphp/test/vm/fail_86pinit.php"
["line"]=>
int(5)
}
[1]=>
array(4) {
["file"]=>
string() hphp/test/vm/fail_86pinit.php"
"hphp/test/vm/fail_86pinit.php"
["line"]=>
int(10)
["function"]=>
string() "test"
string(4) "test"
["args"]=>
array(0) {
}
-2
Ver Arquivo
@@ -1,2 +0,0 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's%string([0-9]\+)%string()%'
+6 -6
Ver Arquivo
@@ -3,30 +3,30 @@ array(6) {
[0]=>
int(16777217)
[1]=>
string() "Class undefined: Z"
string(18) "Class undefined: Z"
[2]=>
string() hphp/test/vm/fail_86sinit.php"
"hphp/test/vm/fail_86sinit.php"
[3]=>
int(5)
[4]=>
string() ""
string(0) ""
[5]=>
array(2) {
[0]=>
array(2) {
["file"]=>
string() hphp/test/vm/fail_86sinit.php"
"hphp/test/vm/fail_86sinit.php"
["line"]=>
int(5)
}
[1]=>
array(4) {
["file"]=>
string() hphp/test/vm/fail_86sinit.php"
"hphp/test/vm/fail_86sinit.php"
["line"]=>
int(10)
["function"]=>
string() "test"
string(4) "test"
["args"]=>
array(0) {
}
-2
Ver Arquivo
@@ -1,2 +0,0 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's%string([0-9]\+)%string()%'
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
+1 -1
Ver Arquivo
@@ -1,2 +1,2 @@
#!/bin/bash
./test/vm/filepath.filter | sed -e 's/\\n/\n/g'
sed -e 's/\\n/\n/g'
-2
Ver Arquivo
@@ -1,2 +0,0 @@
#!/bin/bash
sed -e 's, [^ ]*\(hphp/[^ (]*\), \1,g'
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
-1
Ver Arquivo
@@ -1 +0,0 @@
filepath.filter
@@ -1 +0,0 @@
filepath.filter

Alguns arquivos não foram exibidos porque demasiados arquivos foram alterados neste diff Mostrar Mais