Roxen.git / server / etc / test / tests / RoxenTest_base.pike

version» Context lines:

Roxen.git/server/etc/test/tests/RoxenTest_base.pike:203:    test_equal( "foo_bar", Roxen.short_name, "Foo/Bar" );    test_equal( "foo_bar_1_2", Roxen.short_name, "Foo/Bar\xa7\xbd" );       // Some MySQL configuration tests.       mapping(string:string) mysql_location =    test_true(roxenloader->parse_mysql_location);       if (mysql_location && test_true(predef::`->, mysql_location, "basedir")) {    // Check that the MySQL upgrade code is available. -  if (Stdio.is_file(combine_path(mysql_location->basedir, +  if (mysql_location->mysql_upgrade) { +  // Upgrade script configured or found by parse_mysql_location(). +  test_true(Stdio.is_file, mysql_location->mysql_upgrade); +  } else if (Stdio.is_file(combine_path(mysql_location->basedir,    "share/mysql",    "mysql_fix_privilege_tables.sql"))) { -  +  // Old-style upgrade code. Gone in MySQL 5.5.    test_true(Stdio.read_bytes,    combine_path(mysql_location->basedir,    "share/mysql", "mysql_fix_privilege_tables.sql"));    } else { -  +  // Old-style upgrade code. Gone in MySQL 5.5.    test_true(Stdio.read_bytes,    combine_path(mysql_location->basedir,    "share", "mysql_fix_privilege_tables.sql"));    }    }       // Test logging functions.       class FakeID(    // Optional variables. Can be missing from some protocols.