blob: ff8a379e4f9dfe8c15603e3bd4dd4b595acda745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
#!/bin/sh
# Phoronix Test Suite
# Copyright (C) 2008, Phoronix Media.
# http://www.phoronix.com/
# http://www.phoronix-test-suite.com/
# The Phoronix Test Suite is licensed under the GNU GPLv3. For more information see COPYING
# Full path to root directory of the actual Phoronix Test Suite code
export PTS_DIR=`pwd`
if [ ! -x /usr/bin/php ] && [ ! -x /usr/local/bin/php ]
then
echo "\n\nPHP5 CLI Must Be Installed To Run The Phoronix Test Suite!"
echo "Only PHP For The Command Line Is Needed, Not A Full-Blown PHP w/ Web Server"
echo "The PHP CLI package is usually called php-cli or php5-cli. Also required is the PHP GD library (php-gd)"
echo "To attempt to have the dependencies installed automatically, run: phoronix-test-suite install-dependencies pts"
echo "For support visit: http://www.phoronix.com/forums/forumdisplay.php?f=49\n\n"
fi
if [ $PTS_DIR != `pwd` ]
then
cd $PTS_DIR
fi
case "$1" in
"install")
php pts-core/pts-run-cmd.php INSTALL_BENCHMARK $2
;;
"install-dependencies")
php pts-core/pts-run-cmd.php INSTALL_EXTERNAL_DEPENDENCIES $2
;;
"run")
php pts-core/pts-run-benchmark.php $2
;;
"batch-run")
php pts-core/pts-run-benchmark.php $2 BATCH
;;
"benchmark")
php pts-core/pts-run-cmd.php INSTALL_BENCHMARK $2
php pts-core/pts-run-benchmark.php $2
;;
"batch-benchmark")
php pts-core/pts-run-cmd.php INSTALL_BENCHMARK $2
php pts-core/pts-run-benchmark.php $2 BATCH
;;
"merge-results")
php pts-core/pts-merge-results.php $2 $3 $4
;;
"remove-result")
php pts-core/pts-run-cmd.php REMOVE_RESULT $2
;;
"upload")
php pts-core/pts-run-cmd.php UPLOAD_RESULT $2
;;
"list-tests")
php pts-core/pts-run-cmd.php LIST_TESTS
;;
"list-suites")
php pts-core/pts-run-cmd.php LIST_SUITES
;;
"list-results" | "list-saved-results")
php pts-core/pts-run-cmd.php LIST_SAVED_RESULTS
;;
"show-result")
php pts-core/pts-run-cmd.php SHOW_RESULT $2
;;
"suite-info" | "suite-information")
php pts-core/pts-run-cmd.php SUITE_INFO $2
;;
"test-info" | "test-information")
php pts-core/pts-run-cmd.php TEST_INFO $2
;;
"system-info" | "system-information")
php pts-core/pts-run-cmd.php SYS_INFO
;;
"diagnostics")
php pts-core/pts-run-cmd.php DIAGNOSTICS_DUMP
;;
"remote-comparison")
php pts-core/pts-run-cmd.php REMOTE_COMPARISON $2 $3
;;
"initial-config")
php pts-core/pts-run-cmd.php INITIAL_CONFIG
;;
"login")
php pts-core/pts-run-cmd.php LOGIN
;;
*)
echo "\n================================="
echo "Phoronix Test Suite"
echo "http://www.phoronix-test-suite.com/"
echo "=================================\n"
# echo "gui: Launch The Phoronix Test Suite GUI"
echo "install <suite OR test>: Install or Update The Specified Test(s)"
echo "install-dependencies <suite OR test>: Install The External (Distribution) Dependencies For Specified Test(s)"
echo "run <suite OR test>: Run The Specified Test/Suite"
echo "batch-run <suite OR test>: Run The Specified Test/Suite in Batch Mode"
echo "benchmark <suite OR test OR saved file>: Same as manually running install and then run"
echo "batch-benchmark <suite OR test OR saved file>: Same as manually running install and then run in Batch Mode"
echo "merge-results <Saved File 1 OR Global ID> <Saved File 2 OR Global ID> <Save To>: Merge two saved result sets"
echo "remove-result <Saved File>: Remove this saved result file and associated files"
echo "list-tests: List all Phoronix Test Suite test profiles"
echo "list-suites: List all Phoronix Test Suites"
echo "list-results: List all saved results"
echo "suite-info: Show tests in a suite and other information about the suite"
echo "test-info: Show information about a test"
echo "system-info: Dump detected software and hardware information detected by PTS"
echo "upload <Saved File>: Upload these results to be shared globally"
echo "show-result <Saved File>: Show this result file in your web browser"
echo "login: Enter in your PTS Global log-in information for uploading results"
echo "\n"
;;
esac
|