If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help, Where Are Tests Installed?

06-27-2008, 03:00 PM

Hi

I added one test under phoronix, right now I can install the test(even I don't know where it is, at least it has no error message), but when I run it, I got "The test executable could not be found.. Test terminating"
I did edit the install.sh under test-resources.

Comment

The Phoronix Test Suite can be ran locally or can be installed (either through a distribution page or running the included install script).

The first time you run the Phoronix Test Suite, whether it be locally or system-wide, it should create the ~/.phoronix-test-suite/ hidden home directory for storing the configuration files and installing the tests in installed-tests/

Okay, then with those two files (install.sh and downloads.xml) in say test-resources/javatest/ directory. Or a better name may be test-resources/javaogl-test/

Then you need to write the XML profile. It should then be called javatest.xml or javaogl-test.xml and be placed in the test-profiles/ folder. If you haven't looked at the documentation, check out http://www.phoronix-test-suite.com/d...irst_test.html and some of the other profiles to get a better idea.

Comment

I added echo pwd in the install.sh
and re-run the install, and find the .phoronix-test-suite under my home dir and there is installed-tests under it, my tests are there, looks like the problems is the permission, right now I can run it.

Comment

I did create javaogl-test.xml under test-profiles as well,
I can see the download working(files are there), and install.sh created a script which it should run the tests.

When I do ./phoronix-test-suite run javaogl-test, I got the executable would not found and terminating, but if I am in the .phoronix-test-suite/installed-tests/javaogl-test, and manaully call the script called javaogl-test by sh javaogl-test, it works.

So it make me think pts-run-cmd.php should call the script which created by install.sh in somewhere, am I right?

I am close to make it works, everything is there, but just executable wounld not found, but it is there, wondering which executable the harness wants to find.

Right now, I am trying to add some of our tests under the harness, rigI and evaluating the harness now.

The Phoronix Test Suite can be ran locally or can be installed (either through a distribution page or running the included install script).

The first time you run the Phoronix Test Suite, whether it be locally or system-wide, it should create the ~/.phoronix-test-suite/ hidden home directory for storing the configuration files and installing the tests in installed-tests/

Okay, then with those two files (install.sh and downloads.xml) in say test-resources/javatest/ directory. Or a better name may be test-resources/javaogl-test/

Then you need to write the XML profile. It should then be called javatest.xml or javaogl-test.xml and be placed in the test-profiles/ folder. If you haven't looked at the documentation, check out http://www.phoronix-test-suite.com/d...irst_test.html and some of the other profiles to get a better idea.

if you have any other questions, let me know.

Comment

If there is a javaogl-test script that's executable within ~/.phoronix-test-suite/installed-tests/javaogl-test/ it should be automatically called. Otherwise you'd need to add an executable tag within the javaogl-test.xml profile that specifies an alternate name (example: http://www.phorogit.com/index.php?p=...43a24bce43d54a). As to why it wouldn't be calling it if you do indeed have it named exactly the same, that is puzzling.

if you're continuing to run into issues with it and want me to take a look, you can email any of the scripts to michael [at] phoronix.com and would be glad to figure out what's going wrong.

Comment

Thanks for the help. Right now, I can use phoronix run our tests, but looks like the results are not saved, when I run the tests, it asks me Y/N for save a result, I type Y and gave a file name and the number, after the test is completed, I checked savefile dir, there are no results saved, only the sample-program which I tried before.

Besides giving the options during launch the test, what I should do in order to save our results in the dir, so I can use phoronix to view the results.

If there is a javaogl-test script that's executable within ~/.phoronix-test-suite/installed-tests/javaogl-test/ it should be automatically called. Otherwise you'd need to add an executable tag within the javaogl-test.xml profile that specifies an alternate name (example: http://www.phorogit.com/index.php?p=...43a24bce43d54a). As to why it wouldn't be calling it if you do indeed have it named exactly the same, that is puzzling.

if you're continuing to run into issues with it and want me to take a look, you can email any of the scripts to michael [at] phoronix.com and would be glad to figure out what's going wrong.

Comment

What type of data is the test returning? Is it say a frame-rate or just a pass-fail scenario or what? Unless the only thing returned is the result (with no extra text), you'll need a parse-results.php file. The entire contents of whatever was printed to the screen during testing is set as $argv[1] inside the parse-results.php and from there you need to strip out everything except for the actual number (permitting it is a numerical result you're testing). That number should just be echo'ed inside the script. Look at some of the other test profiles for more examples.

Permitting that's going on, then it should automatically save the results for you. Right now it's likely not saving the results as the Phoronix Test Suite isn't detecting the result.

If that's not clear or you're still running into problems, let me know.