Guest User

Untitled

a guest
Oct 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. # To run this scripts from your current directory, the subfolders t/ and r/ are required.
  2. # The t-directory holds all testfiles (*.test), while the r-directory will hold all resultfiles (*.result)
  3. #
  4. # ***
  5.  
  6. # Record the results of a test:
  7. mysqltest -D database -u user -ppassword --record --result-file r/$1.result < t/$1.test
  8.  
  9. # Run all testfiles and compare them with the resultfiles:
  10. for testfile in t/*.test
  11. do
  12. resultfile="r/"`basename $testfile test`"result"
  13. mysqltest -D database -ppassword -u user --test-file $testfile --result-file $resultfile
  14. done
Add Comment
Please, Sign In to add comment