pike.git / bin / mktestsuite

version» Context lines:

pike.git/bin/mktestsuite:77:   format([%c],255)   errprint(__file__:__line__: [[   Argument \$2 to \$1 contains the character ]]format([[%c]],255)[[,   which is treated as EOF by some m4 implementations.   ]])m4exit(1)]])dnl   ifelse(eval(len([[\$3]])>4096),0,,[[dnl   errprint(__file__:__line__: [[   Argument \$2 to \$1 has ]]len([[\$3]])[[ characters,   some m4 implementations only allow 4096.   ]])m4exit(1)]])dnl + ifelse(index([[\$3]],[[ + .... + ]]),-1,,[[dnl + errprint(__file__:__line__: [[ + Argument \$2 to \$1 contains the "...." sequence, used internally by + the testsuite. + ]])m4exit(1)]])dnl   ]])      ifdef([[__gnu__]],   [[define(checkarg,[[[[real_checkarg([[\$1]],\$2,[[\$\$2]])]]]])]],   [[define(checkarg,)]]   )      define(SEPARATOR,[[....]])   define(CONDITION,[[]]) - define(M4_TESTDIR,combine_path("$1","..")) +       define(DOTEST,dnl   checkarg([[DOTEST]],1)dnl   checkarg([[DOTEST]],2)dnl   [[dnl   divert(0)dnl   define([[TESTNO]],incr(TESTNO))dnl   CONDITION()__file__:__line__: test TESTNO, expected result: [[\$1]]   [[\$2]]   SEPARATOR
pike.git/bin/mktestsuite:114:   define(ignore_warning, dnl   checkarg([[ignore_warning]],1)dnl   checkarg([[ignore_warning]],2)dnl   [[DOTEST(PUSH_WARNING,dnl   mixed a() { return [[\$1]]; })   \$2   DOTEST(POP_WARNING,dnl   mixed a() { return [[\$1]]; })   ]])    - define(pop_warning, [[DOTEST(POP_WARNING,dnl - mixed a() { return [[\$1]]; })]]) -  +    define(test_any, [[DOTEST(EQ,dnl   mixed a() { [[\$1]]; }   mixed b() { return [[\$2]]; })]])      define(test_any_equal, [[DOTEST(EQUAL,dnl   mixed a() { [[\$1]]; }   mixed b() { return [[\$2]]; })]])      define(test_eq,[[DOTEST(EQ,dnl   mixed a() { return [[\$1]]; }
pike.git/bin/mktestsuite:157:      define(test_compile_error,[[DOTEST(COMPILE_ERROR,dnl   mixed a() { [[\$1]];})]])      define(test_compile_error_any,[[DOTEST(COMPILE_ERROR,dnl   [[\$1]])]])      define(test_compile_warning,[[DOTEST(COMPILE_WARNING,dnl   mixed a() { [[\$1]];})]])    - define(test_compile_warning_any,[[DOTEST(COMPILE_WARNING,dnl - [[\$1]])]]) -  +    define(test_eval_error,[[DOTEST(EVAL_ERROR,dnl   mixed a() { [[\$1]]; })]])      define(test_define_program,[[DOTEST(RUN,dnl - void a() { add_constant("[[\$1]]",class c { -  [[\$2]] - });})]]) + void a() { class [[\$1]] { [[\$2]] } +  add_constant("[[\$1]]", [[\$1]]); + })]])      define(test_program, [[DOTEST(TRUE,dnl   [[\$1]])]])      define(test_program_eq, [[DOTEST(EQ,dnl   [[\$1]]   mixed b() {return [[\$2]];})]])      define(test_program_equal, [[DOTEST(EQUAL,dnl   [[\$1]]
pike.git/bin/mktestsuite:203:      define(cond,dnl   checkarg([[cond]],2)dnl   [[   cond_begin([[\$1]])   \$2   cond_end   ]])      define(cond_resolv,[[cond([[master()->resolv(dnl -  String.trim_all_whites("\$1"))]],[[\$2]])]]) +  String.trim("\$1"))]],[[\$2]])]])   define(ifefun,[[cond([[all_constants()->\$1]],[[\$2]])]]) - define(nonregression,[[ifefun(regression,[[\$1]])]]) +       define(TESTNO,0)      // testing < > <= >=   define([[test_cmp]],[[   test_true(\$1<\$2)   test_false(\$1>\$2)   test_true(\$2>\$1)   test_false(\$2<\$1)   test_true(\$1<=\$2)