Testing HPF

5.1 Testing Back-end

HPF testing can be done by running a back-end script like run_1.6.sh, run_1.8.sh or run_1.9.sh. It's a good idea to set INTERVAL="0" in the script to get a quick result of your test.

If your script exits without any error, it's important to examine database tables. To examine your data, issue the following command on the MySQL server machine:

    %mysql -u root -p hdf5perfsmiple
and then press enter. No password is required by default.

You can inspect newly recorded data from database by issuing an SQL query like:

    mysql>SELECT * from TestInstance WHERE TestInstance_Date > 20091001;

In the above example, it's important to change the date 20091001 to today's date. After all your testing is done, you can clean up today(=20091001)'s data:

    mysql>DELETE FROM subversion WHERE checkout_date > 20091001;
    mysql>DELETE FROM TestInstance WHERE TestInstance_Date > 20091001;
    mysql>DELETE FROM TestInstanceBest WHERE TestInstance_Date > 20091001;
    mysql>DELETE FROM environment WHERE env_date > 20091001;

Please don't forget to set INTERVAL="600" back in your test script. Finally, submit your script as a cron job.