Redo build system to properly use autotools and avoid compilation with apxs util.

This commit is contained in:
b1v1r
2010-04-25 23:24:09 +00:00
parent 972e46825c
commit eb6b9274af
148 changed files with 49047 additions and 7149 deletions

155
tests/tfn/replaceComments.t Normal file
View File

@@ -0,0 +1,155 @@
### Empty
{
type => "tfn",
name => "replaceComments",
input => "",
output => "",
ret => 0,
},
### Nothing
{
type => "tfn",
name => "replaceComments",
input => "TestCase",
output => "TestCase",
ret => 0,
},
{
type => "tfn",
name => "replaceComments",
input => "Test\0Case",
output => "Test\0Case",
ret => 0,
},
### Basics
{
type => "tfn",
name => "replaceComments",
input => "/* TestCase */",
output => " ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "/*TestCase*/",
output => " ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "/* TestCase*/",
output => " ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "/*TestCase */",
output => " ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "Before/* TestCase */After",
output => "Before After",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "Before /* TestCase */ After",
output => "Before After",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "/* Test\nCase */",
output => " ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "/* Test\x0d\x0aCase */",
output => " ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "/* Test\x0aCase */",
output => " ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "/* Test\x0dCase */",
output => " ",
ret => 1,
},
### Broken Comments
{
type => "tfn",
name => "replaceComments",
input => "Before/* Test\x0d\x0aCase ",
output => "Before ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "Before /* Test\x0aCase ",
output => "Before ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "Before/* Test\x0d\x0aCase ",
output => "Before ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "Before /* Test\x0aCase ",
output => "Before ",
ret => 1,
},
{
type => "tfn",
name => "replaceComments",
input => "Test\x0d\x0aCase */After",
output => "Test\x0d\x0aCase */After",
ret => 0,
},
{
type => "tfn",
name => "replaceComments",
input => "Test\x0aCase */ After",
output => "Test\x0aCase */ After",
ret => 0,
},
{
type => "tfn",
name => "replaceComments",
input => "Test\x0d\x0aCase */After",
output => "Test\x0d\x0aCase */After",
ret => 0,
},
{
type => "tfn",
name => "replaceComments",
input => "Test\x0aCase */ After",
output => "Test\x0aCase */ After",
ret => 0,
},