Browse Source

mentioned --ignore-weights in ubertest.php inline help; updated test 203 with another case

git-svn-id: svn://svn.sphinxsearch.com/sphinx/trunk@3448 406a0c4d-033a-0410-8de8-e80135713968
shodan 13 years ago
parent
commit
06ef09cf5b
3 changed files with 12 additions and 2 deletions
  1. 0 0
      test/test_203/model.bin
  2. 11 2
      test/test_203/test.xml
  3. 1 0
      test/ubertest.php

File diff suppressed because it is too large
+ 0 - 0
test/test_203/model.bin


+ 11 - 2
test/test_203/test.xml

@@ -26,7 +26,7 @@ index test
 {
 	source				= test
 	path				= <data_path/>/test
-	blend_chars			= %
+	blend_chars			= %, @
 }
 </config>
 
@@ -44,7 +44,10 @@ CREATE TABLE test_table
 ( 2, 123, 'foo and bar' ),
 ( 3, 123, 'foo% that' ),
 ( 4, 123, 'foo%bar this' ),
-( 5, 123, '%foo there' )
+( 5, 123, '%foo there' ),
+( 6, 123, '@john' ),
+( 7, 123, 'jack@home' ),
+( 8, 123, 'jill@' )
 </db_insert>
 
 <queries>
@@ -52,6 +55,12 @@ CREATE TABLE test_table
 <query mode="extended2">bar</query>
 <query mode="extended2">foo%</query>
 <query mode="extended2">%foo</query>
+<query mode="extended2">john</query>
+<query mode="extended2">jack</query>
+<query mode="extended2">jill</query>
+<query mode="extended2">\@john</query>
+<query mode="extended2">jack@</query>
+<query mode="extended2">jill@</query>
 </queries>
 
 </test>

+ 1 - 0
test/ubertest.php

@@ -37,6 +37,7 @@ if ( !is_array($args) || empty($args) )
 	print ( "--no-drop-db\t\tKeep test db tables after the test (for debugging)\n");
 	print ( "--no-demo\t\tJust skip all tests without models. Else - run them, but never fail (for debugging)\n");
 	print ( "--no-marks\t\tDon't mark the output of every test in the logs.\n");
+	print ( "--ignore-weights\tIgnore differences in weights. (Useful for testing that reference database changes are ok.)\n" );
 	print ( "\nEnvironment variables are:\n" );
 	print ( "DBUSER\t\t\tuse 'USER' as MySQL user\n" );
 	print ( "DBPASS\t\t\tuse 'PASS' as MySQL password\n" );

Some files were not shown because too many files changed in this diff