Compare commits
1000 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b1f7f191f | ||
|
|
516b41017a | ||
|
|
0ea2375c87 | ||
|
|
be1a4dec8a | ||
|
|
7aadba1d57 | ||
|
|
7bf6c03113 | ||
|
|
60716494e6 | ||
|
|
51acdc67c7 | ||
|
|
c279b0a3a3 | ||
|
|
bf2e8dcc16 | ||
|
|
791d82ecdf | ||
|
|
ed27e1a36f | ||
|
|
da86cd5046 | ||
|
|
78b7da54ef | ||
|
|
f8f16f3e87 | ||
|
|
6885629cb7 | ||
|
|
024189d25d | ||
|
|
8782fcdaa5 | ||
|
|
5bbf8a8caf | ||
|
|
1d21ea4a53 | ||
|
|
ea890b7b8b | ||
|
|
da2648fec8 | ||
|
|
767e8641e1 | ||
|
|
1658bf1e65 | ||
|
|
5245f152a1 | ||
|
|
3cae6d56a6 | ||
|
|
22e0a1134a | ||
|
|
18f8662c24 | ||
|
|
42b9a5b6fd | ||
|
|
2e57174e46 | ||
|
|
39aef2d526 | ||
|
|
9af4fe7a0e | ||
|
|
894364a09c | ||
|
|
3bbd06d599 | ||
|
|
1907838b35 | ||
|
|
8eda4a5a91 | ||
|
|
712de905a4 | ||
|
|
a1d05a987c | ||
|
|
abbe900f13 | ||
|
|
5a96db3380 | ||
|
|
56ef1a00b6 | ||
|
|
e6f19c8988 | ||
|
|
0d768702e0 | ||
|
|
a45895b0ff | ||
|
|
c1a6dcc851 | ||
|
|
eafc5b7a7f | ||
|
|
1c31a919b6 | ||
|
|
5e02c1202c | ||
|
|
2c9cfa4aa7 | ||
|
|
9b22974ea4 | ||
|
|
bee7eeb30a | ||
|
|
a7a0a85183 | ||
|
|
be6ee9b44e | ||
|
|
98a9f44146 | ||
|
|
9004ab7410 | ||
|
|
43e0657d62 | ||
|
|
639a4739e5 | ||
|
|
5d988fb686 | ||
|
|
602ad4bd8e | ||
|
|
7ea7799327 | ||
|
|
edce918fc2 | ||
|
|
66966c63bd | ||
|
|
4fdbf3e04d | ||
|
|
28689112ef | ||
|
|
bfbd5600bf | ||
|
|
4ba6342b94 | ||
|
|
d72518f471 | ||
|
|
e1340308aa | ||
|
|
e9788b9f35 | ||
|
|
3b65a0329e | ||
|
|
7c02413dc6 | ||
|
|
9a4d519a18 | ||
|
|
218f5cfab0 | ||
|
|
82389c8e6a | ||
|
|
fd26da038a | ||
|
|
0c84dd460c | ||
|
|
05e5b13b17 | ||
|
|
976a1564c2 | ||
|
|
803e11d274 | ||
|
|
4f60331beb | ||
|
|
5219e0a08d | ||
|
|
c166443a11 | ||
|
|
d8d72f6d4e | ||
|
|
4be09f1155 | ||
|
|
c4a82ae8f6 | ||
|
|
a19b10d401 | ||
|
|
5d941004e2 | ||
|
|
c3c47d7829 | ||
|
|
ec013399f0 | ||
|
|
60154761b5 | ||
|
|
afa41dcb8b | ||
|
|
200f25160d | ||
|
|
a21ae0bbc1 | ||
|
|
ffdd31d273 | ||
|
|
460fda86bf | ||
|
|
7607477254 | ||
|
|
1bf2f3239a | ||
|
|
c569da824c | ||
|
|
f3891dc41d | ||
|
|
c5908f1979 | ||
|
|
7b734c9cd9 | ||
|
|
e1d75936de | ||
|
|
7d0b809ea9 | ||
|
|
a71bd2cbf8 | ||
|
|
8941860e9b | ||
|
|
a000c0ef20 | ||
|
|
e4b47aa5a4 | ||
|
|
3b95afe1f0 | ||
|
|
d279629ee4 | ||
|
|
a28727598e | ||
|
|
5f23296e9b | ||
|
|
09e721cfda | ||
|
|
a87b8fbad7 | ||
|
|
2ccaf6eab9 | ||
|
|
5d26bc75ab | ||
|
|
38b813186e | ||
|
|
f66269971b | ||
|
|
b10d6d62bb | ||
|
|
d2f7ef4d59 | ||
|
|
eaac34ce9b | ||
|
|
4f3c6d1046 | ||
|
|
ee17c558b5 | ||
|
|
1adc5604d7 | ||
|
|
c5d6fbe9b7 | ||
|
|
c6170880ed | ||
|
|
bba7a462b7 | ||
|
|
a023c9ffb8 | ||
|
|
98f536a827 | ||
|
|
aec95545da | ||
|
|
e10563d25c | ||
|
|
360b2ea52c | ||
|
|
d7000da52b | ||
|
|
52f97d07fe | ||
|
|
a469cd9b24 | ||
|
|
d3c26130d8 | ||
|
|
b6958aea66 | ||
|
|
cd9f20a553 | ||
|
|
327315004f | ||
|
|
b1cabd5cce | ||
|
|
9cf7ecd68c | ||
|
|
2fd7fd58ca | ||
|
|
1939c50960 | ||
|
|
2d6953fe67 | ||
|
|
7592fd09b1 | ||
|
|
c271719825 | ||
|
|
de63dcd52e | ||
|
|
fbb21fcba7 | ||
|
|
358e0e019e | ||
|
|
6e15b68e82 | ||
|
|
6347c3f982 | ||
|
|
d152ee6166 | ||
|
|
f28d8eff3d | ||
|
|
4049811246 | ||
|
|
7b2446ee52 | ||
|
|
e30f391520 | ||
|
|
32073ad075 | ||
|
|
5b1da20a39 | ||
|
|
01b3030ef8 | ||
|
|
d35d61ed7a | ||
|
|
86ccf1f872 | ||
|
|
7277d957d2 | ||
|
|
3742302f6a | ||
|
|
04e0bb96ed | ||
|
|
6f9e7feb1f | ||
|
|
60ce0b5727 | ||
|
|
c6da014d03 | ||
|
|
dcd5b41ae7 | ||
|
|
bdc952bd0c | ||
|
|
f823d6475f | ||
|
|
3c5e61286b | ||
|
|
63bc93c74c | ||
|
|
f3575e663a | ||
|
|
fefc17b87c | ||
|
|
a26f2f5223 | ||
|
|
81dc40f174 | ||
|
|
283ea3f704 | ||
|
|
97619f5014 | ||
|
|
bf934fb90b | ||
|
|
f497023529 | ||
|
|
6ee8cb107d | ||
|
|
7330df29ae | ||
|
|
a314034df7 | ||
|
|
e78beb7e8a | ||
|
|
4628e1cbb3 | ||
|
|
0b8fdfc13f | ||
|
|
dd0b6056a6 | ||
|
|
b9d5108479 | ||
|
|
566ae6d648 | ||
|
|
fdd0f5c6d1 | ||
|
|
f4435c54f6 | ||
|
|
5c765b0b86 | ||
|
|
01efc7eeb7 | ||
|
|
8b01a910f6 | ||
|
|
22a966553b | ||
|
|
8bc6d4ab3c | ||
|
|
e28ab9feaf | ||
|
|
916bf5ef25 | ||
|
|
9dea655699 | ||
|
|
160210de1f | ||
|
|
85b8fa1561 | ||
|
|
390552847f | ||
|
|
041a10ab71 | ||
|
|
a6f0208080 | ||
|
|
afc3319808 | ||
|
|
04e34a9785 | ||
|
|
669d64fccd | ||
|
|
d34da778eb | ||
|
|
2e7f7004bc | ||
|
|
924b3f1ebf | ||
|
|
6bee435df4 | ||
|
|
914a1632dd | ||
|
|
3a68779c1b | ||
|
|
6e1a5fe51f | ||
|
|
a63d7ccbe4 | ||
|
|
2c05f1a225 | ||
|
|
f1866f7675 | ||
|
|
47bab9f402 | ||
|
|
131812eb54 | ||
|
|
d22ab87bd3 | ||
|
|
5172376256 | ||
|
|
4a48da0cf4 | ||
|
|
372e3102bd | ||
|
|
b6a42d4fae | ||
|
|
c42e629d12 | ||
|
|
eb241892bb | ||
|
|
ea65b2f735 | ||
|
|
84de65a0b2 | ||
|
|
a9e05b8296 | ||
|
|
db31e1536d | ||
|
|
1536c6160d | ||
|
|
f1a480380a | ||
|
|
edbde811fc | ||
|
|
e38d5bedc2 | ||
|
|
5ee3eb0a29 | ||
|
|
12f25faebe | ||
|
|
506d650e9e | ||
|
|
0229f0a924 | ||
|
|
88c627b624 | ||
|
|
f6d4ddd838 | ||
|
|
7bb2550573 | ||
|
|
bbb5009e80 | ||
|
|
1ca04b1f70 | ||
|
|
dff1263dab | ||
|
|
f50fd289ed | ||
|
|
2cc521ee61 | ||
|
|
7c87cbcf35 | ||
|
|
a5e4944c0f | ||
|
|
59b63bc26d | ||
|
|
c364e89793 | ||
|
|
3a88d83254 | ||
|
|
0015567d24 | ||
|
|
30d79511bf | ||
|
|
e6a12eceb4 | ||
|
|
b05ca034c9 | ||
|
|
b9da25a040 | ||
|
|
f23f336477 | ||
|
|
41168d7dd5 | ||
|
|
493ebd2b41 | ||
|
|
a351cdd3ba | ||
|
|
e1e10bbd75 | ||
|
|
88a7740dfb | ||
|
|
b318833d1d | ||
|
|
296485afac | ||
|
|
d280772507 | ||
|
|
29fcf362a1 | ||
|
|
28710178d5 | ||
|
|
b20f9c7e29 | ||
|
|
dfe945e04c | ||
|
|
ed1455e68f | ||
|
|
2ecb8426c8 | ||
|
|
a92ac2c2c6 | ||
|
|
165e824630 | ||
|
|
24128fc243 | ||
|
|
e2942f164c | ||
|
|
d8189a32ec | ||
|
|
744d380253 | ||
|
|
ad9aace274 | ||
|
|
42cac172f3 | ||
|
|
89d094f990 | ||
|
|
f2b8d5406e | ||
|
|
4e3de6da21 | ||
|
|
8242022047 | ||
|
|
d582c84f5a | ||
|
|
73abf2bda8 | ||
|
|
d58fe95958 | ||
|
|
8257565f1e | ||
|
|
8bc425049e | ||
|
|
502ef8ee6d | ||
|
|
934a1334d4 | ||
|
|
999fc361d1 | ||
|
|
1aa0cd3020 | ||
|
|
ab9a509ded | ||
|
|
1569432b97 | ||
|
|
44c73e0bb0 | ||
|
|
d719cb2a40 | ||
|
|
650056633f | ||
|
|
326cfa2025 | ||
|
|
42498edb51 | ||
|
|
6ee7341e31 | ||
|
|
92343153de | ||
|
|
09dda94575 | ||
|
|
6c594d4266 | ||
|
|
64dbfad097 | ||
|
|
092d4eacad | ||
|
|
2f51c1cea7 | ||
|
|
f4627c0119 | ||
|
|
a5bce454bc | ||
|
|
2ac16b4feb | ||
|
|
0462cbbcc8 | ||
|
|
d3a4bc7c5d | ||
|
|
87b6be4094 | ||
|
|
964155f6f6 | ||
|
|
389be3a5af | ||
|
|
3a513f7741 | ||
|
|
4762cba5b8 | ||
|
|
58f06fec29 | ||
|
|
d8ec55f206 | ||
|
|
1c21aecdcb | ||
|
|
4db83fd42b | ||
|
|
a177e0865c | ||
|
|
c20fd451a8 | ||
|
|
15949b11d8 | ||
|
|
3048d6753a | ||
|
|
7fc086e792 | ||
|
|
3046b4d707 | ||
|
|
4d388174a5 | ||
|
|
bda8ebc88d | ||
|
|
ae90e14b49 | ||
|
|
55f5eefb3f | ||
|
|
3ddc3f1f53 | ||
|
|
080a3574e9 | ||
|
|
50fd4f6c3b | ||
|
|
676373d32a | ||
|
|
e68f0c1ad0 | ||
|
|
d4bbd9569f | ||
|
|
db6856ef47 | ||
|
|
7fa2427eb7 | ||
|
|
2d889bca8b | ||
|
|
6f8d84dbc3 | ||
|
|
045be30ab5 | ||
|
|
153f7fed30 | ||
|
|
5d71f521a1 | ||
|
|
2a74fb3cdc | ||
|
|
18498c11ea | ||
|
|
ca12daceac | ||
|
|
a2e8b3ffb4 | ||
|
|
6a4489701c | ||
|
|
c26817bfbd | ||
|
|
402bd85cc9 | ||
|
|
c4da765b71 | ||
|
|
0c0d9ad583 | ||
|
|
29afd4c7fb | ||
|
|
415e2e4038 | ||
|
|
f466eb0775 | ||
|
|
9afcd28ee6 | ||
|
|
f81c3fcc57 | ||
|
|
157fc269a3 | ||
|
|
4f5390a40d | ||
|
|
7899b11cb1 | ||
|
|
669990ddd1 | ||
|
|
e4f0c5f788 | ||
|
|
6820316a92 | ||
|
|
20f6e77a72 | ||
|
|
2cee8b9ed7 | ||
|
|
ba4f9cc7be | ||
|
|
4d9515ea7c | ||
|
|
9758c83067 | ||
|
|
31ec58a747 | ||
|
|
2c4a2aa320 | ||
|
|
e4c69e609b | ||
|
|
e007f901f8 | ||
|
|
0943b37e69 | ||
|
|
d65daf9f8f | ||
|
|
fd7c47bb91 | ||
|
|
4470c5fec8 | ||
|
|
081e03ddc0 | ||
|
|
c4b5638538 | ||
|
|
c2825d0346 | ||
|
|
130da0b0b0 | ||
|
|
7fcd9e553a | ||
|
|
8ecf60f515 | ||
|
|
3b48647c21 | ||
|
|
09ed6afa51 | ||
|
|
3ae1b271ed | ||
|
|
5fdaf18860 | ||
|
|
95982a1c3c | ||
|
|
3602260228 | ||
|
|
753edc4e1c | ||
|
|
b6ba411800 | ||
|
|
084914dfdf | ||
|
|
4972815427 | ||
|
|
e6671137cd | ||
|
|
16164afac9 | ||
|
|
918ac8834a | ||
|
|
03b83fb293 | ||
|
|
2e943c8a1d | ||
|
|
2ca8dcc896 | ||
|
|
84f73d952b | ||
|
|
111bab9c27 | ||
|
|
547738f354 | ||
|
|
f95218a616 | ||
|
|
1c7849239c | ||
|
|
1f09021a4a | ||
|
|
caa4594972 | ||
|
|
b6dd727ea3 | ||
|
|
9876d4b554 | ||
|
|
f6b1ea4990 | ||
|
|
3a29cf1d63 | ||
|
|
f61e10589e | ||
|
|
14c4658425 | ||
|
|
82da68b23e | ||
|
|
404b804616 | ||
|
|
9c6b50367d | ||
|
|
2234680bf6 | ||
|
|
5029fc62e7 | ||
|
|
2cf8eed156 | ||
|
|
ab84278515 | ||
|
|
c318e1c07f | ||
|
|
9aadf99d39 | ||
|
|
bc9e566e38 | ||
|
|
7ec6c6f214 | ||
|
|
d2a33177a7 | ||
|
|
7918bd4cc4 | ||
|
|
a89ce4375b | ||
|
|
553f5d16cf | ||
|
|
420c570b09 | ||
|
|
d99e57fb68 | ||
|
|
9aec757040 | ||
|
|
7cbf772db5 | ||
|
|
70e6bc7825 | ||
|
|
63d1401f0e | ||
|
|
3908736fd9 | ||
|
|
e7a5b8b6ec | ||
|
|
4628a69c1d | ||
|
|
e45b81b8a2 | ||
|
|
ef7be984ac | ||
|
|
290f28394c | ||
|
|
d0cbc9c46a | ||
|
|
4db4ce29b3 | ||
|
|
daee43f7a1 | ||
|
|
c82e6509d6 | ||
|
|
d21d59fdee | ||
|
|
14d9bc8d81 | ||
|
|
c3d8bc31e9 | ||
|
|
61d0555fe5 | ||
|
|
106d565ffd | ||
|
|
716a2635eb | ||
|
|
5d2f5ac6eb | ||
|
|
c2193e9844 | ||
|
|
c501adc0f9 | ||
|
|
7954f94868 | ||
|
|
3fad54cefe | ||
|
|
54e667ed2b | ||
|
|
ce1acaa6fb | ||
|
|
2a730dc94a | ||
|
|
c1f92941cb | ||
|
|
a2b0ff2c76 | ||
|
|
70834b9d0a | ||
|
|
4d1413e5d5 | ||
|
|
678b3d95b9 | ||
|
|
33cab40573 | ||
|
|
0cf46fd198 | ||
|
|
cea88fe829 | ||
|
|
2b3246f88b | ||
|
|
fe7563d3ad | ||
|
|
cbbcb0cb9a | ||
|
|
8bd52e82f0 | ||
|
|
480cf94d0c | ||
|
|
5748a84a88 | ||
|
|
7e05c67dde | ||
|
|
4a87fb301e | ||
|
|
472fdeea03 | ||
|
|
d7186a11ac | ||
|
|
9896d0a1d5 | ||
|
|
1887b4431d | ||
|
|
fa006e04f6 | ||
|
|
dc18aa5b0c | ||
|
|
470f2dbd80 | ||
|
|
b026cb1ada | ||
|
|
ab1adb6276 | ||
|
|
2755eff0ac | ||
|
|
a29af9da51 | ||
|
|
3673eaf57d | ||
|
|
2b698d630c | ||
|
|
47417cc126 | ||
|
|
8fac5c73b0 | ||
|
|
ee99fb31b3 | ||
|
|
08ae7da2a2 | ||
|
|
d565f79c05 | ||
|
|
7085e4b2cf | ||
|
|
c41e7b3460 | ||
|
|
7038cad520 | ||
|
|
ea9df9424f | ||
|
|
b580e615cf | ||
|
|
8910c2fb9a | ||
|
|
070b2ed512 | ||
|
|
a280b288ff | ||
|
|
e792c7bef2 | ||
|
|
2ca57c5d8c | ||
|
|
fad2cd4e5d | ||
|
|
0bc981e517 | ||
|
|
852fb9378b | ||
|
|
db6037dd7b | ||
|
|
ac289cc8ff | ||
|
|
c61b7a09c0 | ||
|
|
6c2f939266 | ||
|
|
64b0483248 | ||
|
|
8765e26c5e | ||
|
|
5f093b7919 | ||
|
|
4a51138f02 | ||
|
|
b2e6aa8bac | ||
|
|
077f9dd659 | ||
|
|
17ccadb307 | ||
|
|
79f0b2b535 | ||
|
|
658d624f32 | ||
|
|
34c86410c2 | ||
|
|
bc81c03158 | ||
|
|
d3d8942cb6 | ||
|
|
bb5ac80ee7 | ||
|
|
15ab3d3434 | ||
|
|
a2ce8583de | ||
|
|
33a15ca53f | ||
|
|
22ea9587bb | ||
|
|
06e7f695be | ||
|
|
432def01d2 | ||
|
|
9d677ef936 | ||
|
|
e428d3781b | ||
|
|
25fcf9f3be | ||
|
|
73fb1b3ace | ||
|
|
33be563142 | ||
|
|
69b1b5dc1a | ||
|
|
960245ac7b | ||
|
|
f2495baadb | ||
|
|
7dbde7e982 | ||
|
|
849fa769e4 | ||
|
|
fa34e629de | ||
|
|
99ed71c045 | ||
|
|
4fc9b5046f | ||
|
|
2276ea9611 | ||
|
|
7718da8d06 | ||
|
|
b5c58544d1 | ||
|
|
92c5a89757 | ||
|
|
a5639a25b1 | ||
|
|
798a3e6fba | ||
|
|
e2fac00203 | ||
|
|
d6d64bdd13 | ||
|
|
e65f6e913f | ||
|
|
0e62d0c4c1 | ||
|
|
367b8e680f | ||
|
|
6c98586662 | ||
|
|
f17a504909 | ||
|
|
835d06be2d | ||
|
|
c1262c4476 | ||
|
|
81b2145f2a | ||
|
|
a97b5fbff8 | ||
|
|
414098f601 | ||
|
|
11b8283843 | ||
|
|
7d81b9224c | ||
|
|
673e37a22b | ||
|
|
6f8f6150a1 | ||
|
|
1698818efb | ||
|
|
297bc4206d | ||
|
|
79bee6a042 | ||
|
|
6b6c70b649 | ||
|
|
142e2f92c1 | ||
|
|
120638b8ff | ||
|
|
23c7f8ad8c | ||
|
|
eb6d354c94 | ||
|
|
94ace3c885 | ||
|
|
4a544ffb56 | ||
|
|
54898f7377 | ||
|
|
0f51b6b3a2 | ||
|
|
faf1b27b2c | ||
|
|
610fb640ad | ||
|
|
e31385f604 | ||
|
|
a3f2256336 | ||
|
|
e4b7e7f2d9 | ||
|
|
bf78f2db13 | ||
|
|
ebb76e4752 | ||
|
|
5fe117b776 | ||
|
|
1ec700cee9 | ||
|
|
2bab1bda45 | ||
|
|
036b735a69 | ||
|
|
ab2c13b82e | ||
|
|
fa148e7553 | ||
|
|
8ec8eab7cb | ||
|
|
03a122e87a | ||
|
|
5102ccd9a7 | ||
|
|
4f14e3314c | ||
|
|
3806120ef7 | ||
|
|
4097daeeb7 | ||
|
|
9aabbab6e5 | ||
|
|
7cc0abd595 | ||
|
|
14ad1180a4 | ||
|
|
5eaa004c70 | ||
|
|
6b687e75f8 | ||
|
|
597ef4c764 | ||
|
|
48fa67f007 | ||
|
|
a8fb00a7d6 | ||
|
|
b002052840 | ||
|
|
7e61625fa5 | ||
|
|
9a5f42e0c9 | ||
|
|
a17e271dad | ||
|
|
d71296dd0b | ||
|
|
8838244dc0 | ||
|
|
0208723886 | ||
|
|
db92ec4195 | ||
|
|
14589143da | ||
|
|
db4f94fdee | ||
|
|
95b3e69384 | ||
|
|
349a2a0d1a | ||
|
|
6b644b22ef | ||
|
|
0c73c8fee2 | ||
|
|
d878e36de9 | ||
|
|
db94680cb6 | ||
|
|
7f511d0805 | ||
|
|
c76354b40e | ||
|
|
700a88f598 | ||
|
|
60697dd0d5 | ||
|
|
b3c9e690e0 | ||
|
|
fdf797476b | ||
|
|
01fdd8a353 | ||
|
|
29d304474e | ||
|
|
9897174f10 | ||
|
|
f887a37971 | ||
|
|
fc2dabd639 | ||
|
|
c9c2207efc | ||
|
|
50cb6ce77a | ||
|
|
98c05394d3 | ||
|
|
e7b31a2f43 | ||
|
|
3d204682b5 | ||
|
|
11ab3743e6 | ||
|
|
7aeaeca131 | ||
|
|
a31749f1cd | ||
|
|
82f3231b35 | ||
|
|
91b3ece67d | ||
|
|
c05d0ce5c2 | ||
|
|
a706dbb72d | ||
|
|
5396c9961d | ||
|
|
9139fbaefc | ||
|
|
1ffa9c6da7 | ||
|
|
f8c4acb98a | ||
|
|
c80df7572e | ||
|
|
2b505aa3c6 | ||
|
|
9402058de9 | ||
|
|
84c3d11373 | ||
|
|
a446543681 | ||
|
|
1e77843914 | ||
|
|
e2c5bd1cc8 | ||
|
|
f1a0ecba6d | ||
|
|
f539b25374 | ||
|
|
bf4625ab70 | ||
|
|
e4f156072b | ||
|
|
ff972c3729 | ||
|
|
8e37ba9957 | ||
|
|
3f27a44916 | ||
|
|
33c942b5a4 | ||
|
|
b593bec216 | ||
|
|
a905d212d9 | ||
|
|
8a3dfe542c | ||
|
|
894b08eb1c | ||
|
|
67210f71a1 | ||
|
|
3ee4d142c3 | ||
|
|
5fad4a2a82 | ||
|
|
ab295eac25 | ||
|
|
6b6f0c7977 | ||
|
|
52f8e0ab8c | ||
|
|
8e585dcbd4 | ||
|
|
38ae716570 | ||
|
|
c38c9d10b2 | ||
|
|
ab2342035b | ||
|
|
f0d0ee0866 | ||
|
|
039d70827b | ||
|
|
f118eb4f48 | ||
|
|
2059360879 | ||
|
|
d118bb0b6e | ||
|
|
4b846a6778 | ||
|
|
0d2d37f14b | ||
|
|
259e0f4e9d | ||
|
|
2671b36d23 | ||
|
|
190aad8ce7 | ||
|
|
68b5d3776e | ||
|
|
37d3696aff | ||
|
|
df4cc7fa65 | ||
|
|
8003b1205d | ||
|
|
6adcb24f1d | ||
|
|
8be5e74092 | ||
|
|
9fc24919c7 | ||
|
|
ae90fae8a8 | ||
|
|
a574958843 | ||
|
|
ef57724ae2 | ||
|
|
e344551fea | ||
|
|
2e08a956f4 | ||
|
|
ef18199cbc | ||
|
|
fa5f02aaf6 | ||
|
|
734fdeb3e3 | ||
|
|
a3ac1d50e3 | ||
|
|
28c90a0822 | ||
|
|
de7e80ba6b | ||
|
|
81ce4e894c | ||
|
|
a521a04c78 | ||
|
|
e8137f7328 | ||
|
|
27a88e1cd4 | ||
|
|
643f454568 | ||
|
|
01a6b50e06 | ||
|
|
51af8a47ba | ||
|
|
6310f9f87c | ||
|
|
f8f3002882 | ||
|
|
524caa60b0 | ||
|
|
6639c56762 | ||
|
|
41c57a9414 | ||
|
|
872e9eb1cd | ||
|
|
c2eeb47041 | ||
|
|
bb86af2ee3 | ||
|
|
25e4f51629 | ||
|
|
9e890c7df5 | ||
|
|
a3222463ac | ||
|
|
a53df5b4ff | ||
|
|
e779ffdeaf | ||
|
|
fdb6d0f1b6 | ||
|
|
26d157ebee | ||
|
|
06bb9cdaeb | ||
|
|
6224ff2341 | ||
|
|
be5a7c4d39 | ||
|
|
f6a1eac273 | ||
|
|
b7b9d7a979 | ||
|
|
ffb6f0227f | ||
|
|
19fd1a389b | ||
|
|
b821807895 | ||
|
|
e03fc64a46 | ||
|
|
2924a1a959 | ||
|
|
ee61f69e0f | ||
|
|
a7183c313a | ||
|
|
c2983ee7f0 | ||
|
|
2f3b7ad195 | ||
|
|
8149dadb52 | ||
|
|
e9aa202a80 | ||
|
|
09a74f1b12 | ||
|
|
5e7f241682 | ||
|
|
03f5fa199b | ||
|
|
417ddc89a2 | ||
|
|
c7598310b9 | ||
|
|
cf0d4c2fd0 | ||
|
|
ef4fb2eae1 | ||
|
|
4ff4c7a333 | ||
|
|
840d19faaf | ||
|
|
6f831b6a83 | ||
|
|
24bfaecfca | ||
|
|
a7d825b6a5 | ||
|
|
02a4fdf2e6 | ||
|
|
344633e96a | ||
|
|
62838ca856 | ||
|
|
d32f62965e | ||
|
|
a273e35ecc | ||
|
|
afaf83d0f3 | ||
|
|
335f422f99 | ||
|
|
2ef8300927 | ||
|
|
1f8eb41fa0 | ||
|
|
36ee0ba814 | ||
|
|
6f6360c722 | ||
|
|
88cf1f29e2 | ||
|
|
efcdddeece | ||
|
|
7f42665dcf | ||
|
|
a46c231a1f | ||
|
|
b4c8d27e70 | ||
|
|
ca3ee1635f | ||
|
|
7f070caca2 | ||
|
|
ac1d806826 | ||
|
|
e5b807de54 | ||
|
|
6e3e89eb41 | ||
|
|
f938146c2c | ||
|
|
60db32bff9 | ||
|
|
5a1420ed7d | ||
|
|
11eca4c258 | ||
|
|
bd9ce2b541 | ||
|
|
2d1678ebad | ||
|
|
44d1b6ec8f | ||
|
|
b7a5644216 | ||
|
|
0bc2849a07 | ||
|
|
2fa2c072c7 | ||
|
|
b6d08efcb5 | ||
|
|
60c3715ab7 | ||
|
|
a92793152e | ||
|
|
3bfc86c3b1 | ||
|
|
29c709cd3c | ||
|
|
01f784ce49 | ||
|
|
9035b8c4a0 | ||
|
|
4b6b7b3b58 | ||
|
|
67d64b164a | ||
|
|
913a0a66d8 | ||
|
|
1184bd468d | ||
|
|
415058062b | ||
|
|
3dad2c0cd3 | ||
|
|
c3c668b863 | ||
|
|
6c9ed8ec67 | ||
|
|
7a35da766d | ||
|
|
ba9a280db7 | ||
|
|
78e1ff1463 | ||
|
|
d59d48fed1 | ||
|
|
1bf75bdd5e | ||
|
|
f401b4aa32 | ||
|
|
9e155e42ae | ||
|
|
76f13e29e5 | ||
|
|
1a602c6b4a | ||
|
|
23e93187ac | ||
|
|
ad17aa6d52 | ||
|
|
57ba629867 | ||
|
|
6a21fc9bdc | ||
|
|
bc7da46250 | ||
|
|
e5ee7200bd | ||
|
|
892913cea3 | ||
|
|
545728bd60 | ||
|
|
948044a809 | ||
|
|
b7d0f8c648 | ||
|
|
4f1ecf6e4f | ||
|
|
fbb7386a30 | ||
|
|
4fc35f0304 | ||
|
|
0297d70ea2 | ||
|
|
7be51e615f | ||
|
|
8aa6273250 | ||
|
|
2ee7deefb3 | ||
|
|
d4eaee2c3d | ||
|
|
0430d89ee4 | ||
|
|
7992908b9d | ||
|
|
47f617ef80 | ||
|
|
ab1e967cf2 | ||
|
|
61066a4e10 | ||
|
|
d6e1dbf8d5 | ||
|
|
cfb534aa2b | ||
|
|
f3143d1e50 | ||
|
|
19cadf6a62 | ||
|
|
0d0b19ed61 | ||
|
|
1933ffa349 | ||
|
|
483b08e584 | ||
|
|
067c9e2995 | ||
|
|
89dae4f137 | ||
|
|
859da61732 | ||
|
|
a2c514c4e3 | ||
|
|
55246e453a | ||
|
|
2702958233 | ||
|
|
9e226552cb | ||
|
|
e469794c89 | ||
|
|
b986bccd46 | ||
|
|
b430d883c6 | ||
|
|
ded8b0e28d | ||
|
|
d3f457ba4b | ||
|
|
00251658b2 | ||
|
|
7110810bbc | ||
|
|
7cf8ba5dc7 | ||
|
|
4df0f25898 | ||
|
|
59767a93fe | ||
|
|
f80adcb8a0 | ||
|
|
e163437c8c | ||
|
|
69824dc939 | ||
|
|
4f596f7b8f | ||
|
|
e6af7a2675 | ||
|
|
8e6aa772c4 | ||
|
|
875820aa78 | ||
|
|
e61f1b7400 | ||
|
|
3ff2a9690f | ||
|
|
1536d5356c | ||
|
|
b9e055b4ec | ||
|
|
7d4058d90c | ||
|
|
2655819be6 | ||
|
|
c476f28dd8 | ||
|
|
07823c37a0 | ||
|
|
d10a3e736f | ||
|
|
78a8f8fe26 | ||
|
|
06d672b969 | ||
|
|
309e66c4fb | ||
|
|
7b7e330d20 | ||
|
|
751ae49d7d | ||
|
|
2003299875 | ||
|
|
53932a23f4 | ||
|
|
08a02584ff | ||
|
|
7232b549a1 | ||
|
|
c79cd9a341 | ||
|
|
2f799644cd | ||
|
|
4cf4978f6f | ||
|
|
b9f4cb393e | ||
|
|
ffdc063cbc | ||
|
|
65b09adf6e | ||
|
|
82a3224ccf | ||
|
|
6f08299562 | ||
|
|
e9ef328b49 | ||
|
|
53fb5570ee | ||
|
|
d72aa3625f | ||
|
|
7f233b2d9f | ||
|
|
b2f76bf424 | ||
|
|
c22702e591 | ||
|
|
76528582ba | ||
|
|
34b2463350 | ||
|
|
65437851f8 | ||
|
|
f8c9cdf013 | ||
|
|
d3e7a4d1a5 | ||
|
|
274c12a65c | ||
|
|
a12089475b | ||
|
|
a8ad8334f4 | ||
|
|
fe8240cbbe | ||
|
|
c432861f31 | ||
|
|
e80b48f74f | ||
|
|
ea4550fb01 | ||
|
|
ca4d333056 | ||
|
|
0f85d39ac9 | ||
|
|
c83672bf20 | ||
|
|
8b540a428f | ||
|
|
4cfe873dac | ||
|
|
ca321c594f | ||
|
|
3124472ff5 | ||
|
|
732c150321 | ||
|
|
b8e7817a8b | ||
|
|
3eb475733d | ||
|
|
e27f2cd4f5 | ||
|
|
7cb188c075 | ||
|
|
28e4024346 | ||
|
|
e8131f8f6e | ||
|
|
df0ab2c3a7 | ||
|
|
4e9dd6093f | ||
|
|
0dd9037d7c | ||
|
|
a0fca3a7ce | ||
|
|
fc076ca6f1 | ||
|
|
296fa8120e | ||
|
|
f4de8dbaaa | ||
|
|
7542d5e9ce | ||
|
|
8285b21d17 | ||
|
|
a0d18794ba | ||
|
|
abcf66fded | ||
|
|
190131429f | ||
|
|
6e5a42759f | ||
|
|
bac1b88951 | ||
|
|
de378032de | ||
|
|
f7cc4be402 | ||
|
|
84f6e8e1a3 | ||
|
|
505b4071af | ||
|
|
1b94484a5a | ||
|
|
9f67da01bd | ||
|
|
6d15fcc721 | ||
|
|
3703a1636a | ||
|
|
2041283b29 | ||
|
|
570acd1ae1 | ||
|
|
a1a8d6beb2 | ||
|
|
f281a47a3b | ||
|
|
f66ddc072c | ||
|
|
63e0277f7d | ||
|
|
9b33ee556a | ||
|
|
afa5dcd193 | ||
|
|
7833413e65 | ||
|
|
bdc2613613 | ||
|
|
923bc85ebe | ||
|
|
05ebc7d1bc | ||
|
|
5ec87112cc | ||
|
|
d7d1528412 | ||
|
|
becf3cd9ed | ||
|
|
3838aa2565 | ||
|
|
c4df437840 | ||
|
|
a2e41e5cec | ||
|
|
1a5ec4bab1 | ||
|
|
8ec2cc189b | ||
|
|
a802571353 | ||
|
|
7e6cf58a1e | ||
|
|
53ea8d57ac | ||
|
|
cc6e7dcefb | ||
|
|
fed8b63258 | ||
|
|
9f3855df61 | ||
|
|
9c811bded1 | ||
|
|
e11b9faa07 | ||
|
|
2c1ff71aa3 | ||
|
|
8d26c39037 | ||
|
|
cc43f12ab6 | ||
|
|
c530590922 | ||
|
|
5109dabd47 | ||
|
|
a0ec388f1c | ||
|
|
eb24e07602 | ||
|
|
af8fca7503 | ||
|
|
a12b9b4e7c | ||
|
|
7edb910c35 | ||
|
|
378e1438f1 | ||
|
|
5310e8889a | ||
|
|
e254c1a6f5 | ||
|
|
dc88345069 | ||
|
|
e19504328e | ||
|
|
7ac0cdffc1 | ||
|
|
66b1474564 | ||
|
|
419c77f2d1 | ||
|
|
47ad3e82b0 | ||
|
|
755646ff19 | ||
|
|
37ab81a488 | ||
|
|
2834582dff | ||
|
|
5ab9ff4669 | ||
|
|
2ff04c4b19 | ||
|
|
b8af975c3d | ||
|
|
365318b91e | ||
|
|
b20c159f1f | ||
|
|
ddcbdc77fb | ||
|
|
893e1909e9 | ||
|
|
96c3ae5565 | ||
|
|
327c096682 | ||
|
|
e6fbee9e42 | ||
|
|
421734cbe1 | ||
|
|
712bed1f82 |
4
AUTHORS
4
AUTHORS
@@ -1,8 +1,8 @@
|
||||
Copyright 2008 - 2015 by Phoronix Media.
|
||||
Copyright 2008 - 2017 by Phoronix Media.
|
||||
|
||||
Lead Architects:
|
||||
|
||||
- Michael Larabel <michael@phoronix.com>
|
||||
- Matthew Tippett <matthew@phoronix.com>
|
||||
|
||||
There's also other individuals and organizations who have contributed patches, ideas, and made other contributions to the Phoronix Test Suite. These names are mentioned in the HTML / PDF documentation.
|
||||
There's also other individuals and organizations who have contributed patches, ideas, and made other contributions to the Phoronix Test Suite.
|
||||
|
||||
18
README.md
18
README.md
@@ -1,8 +1,8 @@
|
||||
# Phoronix Test Suite 5.8.1
|
||||
# Phoronix Test Suite 7.0.0
|
||||
http://www.phoronix-test-suite.com/
|
||||
|
||||
The **Phoronix Test Suite** is the most comprehensive testing and benchmarking
|
||||
platform available for Linux, Solaris, Mac OS X, and BSD operating systems. The
|
||||
platform available for Linux, Solaris, OS X, and BSD operating systems. The
|
||||
Phoronix Test Suite allows for carrying out tests in a fully automated manner
|
||||
from test installation to execution and reporting. All tests are meant to be
|
||||
easily reproducible, easy-to-use, and support fully automated execution. The
|
||||
@@ -27,7 +27,7 @@ able to upload their test results, profiles, and suites to OpenBenchmarking.org.
|
||||
A test profile is a single test that can be executed by the Phoronix Test Suite
|
||||
-- with a series of options possible within every test -- and a test suite is a
|
||||
seamless collection of test profiles and/or additional test suites. A test
|
||||
profile consists of a set of bash/shell scripts and XML files while a test suite
|
||||
profile consists of a set of Bash/shell scripts and XML files while a test suite
|
||||
is a single XML file.
|
||||
|
||||
[OpenBenchmarking.org](http://www.openbenchmarking.org/) also allows for
|
||||
@@ -46,9 +46,9 @@ Phoromatic, and OpenBenchmarking.org is available by contacting
|
||||
|
||||
Full details on the Phoronix Test Suite setup and usage is available from the
|
||||
included HTML/PDF documentation within the phoronix-test-suite package and from
|
||||
the Phoronix Test Suite web-site.
|
||||
the Phoronix Test Suite website.
|
||||
|
||||
## INSTALLATION & SETUP:
|
||||
## Installation & Setup
|
||||
|
||||
The Phoronix Test Suite is supported on Linux, *BSD, Solaris, Mac OS X, and
|
||||
Windows systems. However, the most full-featured and well supported operating
|
||||
@@ -61,11 +61,11 @@ architectures.
|
||||
The Phoronix Test Suite can be installed for system-wide usage or run locally
|
||||
without installation from the extracted tar.gz/zip package. The only hard
|
||||
dependency on the Phoronix Test Suite is having command-line support for PHP
|
||||
(PHP 5.2+) installed. A complete PHP stack (e.g. with web-server) is NOT needed,
|
||||
but merely the PHP command-line support, which is widely available from
|
||||
(PHP 5.3+) installed. A complete PHP stack (e.g. with web server) is **not**
|
||||
needed, but merely the PHP command-line support, which is widely available from
|
||||
operating system package managers under the name `php`, `php5-cli`, or `php5`.
|
||||
|
||||
## USAGE:
|
||||
## Usage
|
||||
|
||||
The process to download, install/setup, execute, and report the results of a
|
||||
benchmark can be as simple as a command such as `phoronix-test-suite benchmark
|
||||
@@ -84,7 +84,7 @@ running, for example, `phoronix-test-suite benchmark 1204293-BY-PHORONIX357` if
|
||||
wishing to compare the results of the
|
||||
`http://openbenchmarking.org/result/1204293-BY-PHORONIX357` result file.
|
||||
|
||||
Additional information is available from the Phoronix Test Suite web-site
|
||||
Additional information is available from the Phoronix Test Suite website
|
||||
<http://www.phoronix-test-suite.com/> and the material bundled within the
|
||||
`phoronix-test-suite/documentation/` directory. A man page is also bundled with
|
||||
the phoronix-test-suite software.
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
Copyright (C) 2008 - 2016, Phoronix Media
|
||||
Copyright (C) 2008 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -23,7 +23,7 @@
|
||||
if(!is_executable("phoronix-test-suite") || !is_dir("pts-core/"))
|
||||
{
|
||||
echo "\nYou must run this script from the root directory of the phoronix-test-suite/ folder!\n";
|
||||
echo "Example: php5 deploy/deb-package/build-package-deb.php\n";
|
||||
echo "Example: php deploy/deb-package/build-package-deb.php\n";
|
||||
exit(0);
|
||||
}
|
||||
if(!is_executable('/usr/bin/dpkg'))
|
||||
@@ -63,8 +63,8 @@ $control_file .= "Section: Utilities\n";
|
||||
$control_file .= "Installed-Size: " . shell_exec("cd /tmp/pts-deb-builder/; du -s | cut -f 1");
|
||||
$control_file .= "Priority: optional\n";
|
||||
$control_file .= "Architecture: all\n";
|
||||
$control_file .= "Depends: php5-cli, php5-gd, php5-json\n";
|
||||
$control_file .= "Recommends: build-essential\n";
|
||||
$control_file .= "Depends: php-cli|php5-cli,php5-cli|php-xml\n";
|
||||
$control_file .= "Recommends: build-essential, php-gd|php5-gd\n";
|
||||
$control_file .= "Maintainer: Phoronix Media <trondheim-pts@phoronix-test-suite.com>\n";
|
||||
$control_file .= "Description: An Automated, Open-Source Testing Framework\n " . @str_replace("\n", " ", file_get_contents('pts-core/static/short-description.txt')) . "\n";
|
||||
$control_file .= "Homepage: http://www.phoronix-test-suite.com/ \n";
|
||||
|
||||
@@ -12,6 +12,7 @@ Section "Device"
|
||||
Option "Virtualheads" "1"
|
||||
Option "Vsync" "0"
|
||||
Option "SwapbuffersWait" "0"
|
||||
Option "DRI" "3"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
|
||||
@@ -2,6 +2,7 @@ Section "Device"
|
||||
Identifier "Device0"
|
||||
Driver "radeon"
|
||||
Option "SwapBuffersWait" "0"
|
||||
Option "DRI "3"
|
||||
EndSection
|
||||
|
||||
Section "Monitor"
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
set -e
|
||||
|
||||
run_benchmark() {
|
||||
chlp benchmark-start || true
|
||||
|
||||
params="$@"
|
||||
|
||||
mkdir -p /opt/pts/results
|
||||
@@ -20,9 +18,10 @@ run_benchmark() {
|
||||
|
||||
phoronix-test-suite batch-install $params > /dev/null 2>&1
|
||||
|
||||
benchmark-start || true
|
||||
phoronix-test-suite batch-run $params
|
||||
benchmark-finish || true
|
||||
rsync -aqz /root/.phoronix-test-suite /opt/pts/results/$run
|
||||
|
||||
scripts/parse /opt/pts/results/$run/.phoronix-test-suite/test-results/$(date +%Y)-*/test-1.xml
|
||||
chlp benchmark-finish || true
|
||||
}
|
||||
|
||||
@@ -110,6 +110,9 @@ install_phoronix() {
|
||||
apt-get install -qqy unzip build-essential default-jre-headless mesa-utils
|
||||
apt-get install -qqy phoronix-test-suite
|
||||
|
||||
apt-get install -qqy python python-pip
|
||||
pip install --upgrade charms.benchmark
|
||||
|
||||
# puppet helper to distribute facts between scripts
|
||||
apt-get install -qqy facter-customfacts-plugin
|
||||
|
||||
|
||||
@@ -8,25 +8,28 @@ PHORONIX TEST SUITE PUBLIC TODO LIST:
|
||||
- Support for multiple languages / internationalization.
|
||||
- BLKID fall-back support for determining file-system [e.g. /sbin/blkid -s TYPE -o value /dev/sda1].
|
||||
- Possibly restore "weighted suites" [http://phorogit.com/index.php?p=phoronix-test-suite.git&a=commitdiff&h=548e5c073cc90d92ac3f382ca4933d5f556e78c6&hb=444441f9be866f51920e0ad8ca3909951b4d90c5]
|
||||
- Integrate recover-run command into the run command, auto-detect if the result file was a partial save and then ask if to perform run recovery' [ POSSIBLY DO THE SAME FOR FINISH-RUN]
|
||||
- Integrate finish-run command into the run command, auto-detect if the result file was a partial save and then ask if to perform run recovery'
|
||||
- Multi-threaded downloading of test files
|
||||
- Numerous pts_render improvements [see in-line code comments]
|
||||
- Optimus / DRI_PRIME=1 / xrandr --listproviders better GPU detection
|
||||
- NVIDIA make use of UsedDedicatedGPUMemory as new GPU sensor
|
||||
- Clean up all the WebSocket code and make it fit to spec
|
||||
- Incremental result uploads support
|
||||
- Check with Phodevi's parsers what other tools support JSON outputs - e.g. http://karelzak.blogspot.com/2015/06/json-output-for-basic-tools.html for cleaner parsing
|
||||
|
||||
- Figure out why TestClientVersion in result file XML is missing after adding multiple systems, the previous ones are then blank
|
||||
- Restore the ReferenceID support in the results XML
|
||||
- Improve titles on tables like in: http://openbenchmarking.org/result/1603172-GA-AMDTONGA973
|
||||
|
||||
### PTS-GRAPH ###
|
||||
|
||||
- Rotated text alignment for some PNG graphixs is sometimes off by 90/180 degrees compared to SVG, e.g. http://openbenchmarking.org/s/Compiler
|
||||
- SVG graph improvements
|
||||
|
||||
### OPENBENCHMARKING.ORG ###
|
||||
|
||||
- Shorten long change-logs on test profile pages - e.g. http://openbenchmarking.org/test/pts/hpcc
|
||||
|
||||
### NEW TEST PROFILES ###
|
||||
### POSSIBLE NEW TEST PROFILES ###
|
||||
|
||||
- Python-libmemcached [http://code.google.com/p/python-libmemcached/]
|
||||
- Intel HiBench [https://github.com/intel-hadoop/HiBench]
|
||||
- Hadoop Benchmarks / TeraSort
|
||||
- LATT Latency Tests [git://git.kernel.dk/latt.git]
|
||||
@@ -59,7 +62,18 @@ PHORONIX TEST SUITE PUBLIC TODO LIST:
|
||||
- https://openfoamwiki.net/index.php/Benchmarks_standard_v1
|
||||
- Cassandra 1.2 stress - http://docs.datastax.com/en/cassandra/1.2/cassandra/tools/toolsCStress_t.html
|
||||
- http://gcc.opensuse.org/c++bench-frescobaldi/
|
||||
|
||||
- https://github.com/GoogleCloudPlatform/PerfKitBenchmarker
|
||||
- https://gooseberry.blender.org/gooseberry-production-benchmark-file/
|
||||
- https://github.com/hhvm/oss-performance
|
||||
- https://github.com/gormanm/mmtests
|
||||
- https://github.com/pandegroup/fahbench
|
||||
- https://github.com/STH-Dev/linux-bench
|
||||
- http://anzwix.com/a/FFmpeg/CryptobenchAddSupportForBlowfish
|
||||
- https://wiki.mikejung.biz/Benchmarking
|
||||
- http://dacapobench.org/
|
||||
- https://github.com/soumith/convnet-benchmarks
|
||||
- https://github.com/cavazos-lab/FinanceBench
|
||||
- https://svail.github.io/DeepBench/
|
||||
|
||||
### WEB SOCKET / HTML5 USER INTERFACE WORK ###
|
||||
|
||||
@@ -72,7 +86,6 @@ PHORONIX TEST SUITE PUBLIC TODO LIST:
|
||||
### PHOROMATIC ####
|
||||
|
||||
- Implement the complementary WebSocket communication to HTTP pulls
|
||||
- More mobile form factor optimizations
|
||||
- Ensure sane validating of more user input / resource uploads
|
||||
- Hook up TriggerTarget for allowing event.php to optionally specify a sub-set of systems/groups to target for a given trigger
|
||||
- Clean up the code and modularize more of the code into functions
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.TH phoronix-test-suite 1 "www.phoronix-test-suite.com" "5.8.1"
|
||||
.TH phoronix-test-suite 1 "www.phoronix-test-suite.com" "7.0.0"
|
||||
.SH NAME
|
||||
phoronix-test-suite \- The Phoronix Test Suite is an extensible open-source platform for performing testing and performance evaluation.
|
||||
.SH SYNOPSIS
|
||||
@@ -6,14 +6,14 @@ phoronix-test-suite \- The Phoronix Test Suite is an extensible open-source plat
|
||||
.br
|
||||
.B phoronix-test-suite benchmark [test | suite]
|
||||
.SH DESCRIPTION
|
||||
The **Phoronix Test Suite** is the most comprehensive testing and benchmarking platform available for Linux, Solaris, Mac OS X, and BSD operating systems. The Phoronix Test Suite allows for carrying out tests in a fully automated manner from test installation to execution and reporting. All tests are meant to be easily reproducible, easy-to-use, and support fully automated execution. The Phoronix Test Suite is open-source under the GNU GPLv3 license and is developed by Phoronix Media in cooperation with partners.
|
||||
The **Phoronix Test Suite** is the most comprehensive testing and benchmarking platform available for Linux, Solaris, OS X, and BSD operating systems. The Phoronix Test Suite allows for carrying out tests in a fully automated manner from test installation to execution and reporting. All tests are meant to be easily reproducible, easy-to-use, and support fully automated execution. The Phoronix Test Suite is open-source under the GNU GPLv3 license and is developed by Phoronix Media in cooperation with partners.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.SH TEST INSTALLATION
|
||||
.B install [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B install [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will install the selected test(s) inside the testing environment directory. The install process from downloading of the test files to the installation is fully automated. The install option needs to be supplied with the test name or suite as an argument. Optionally, a OpenBenchmarking.org ID or the name of a saved results file can be supplied as well and the test(s) to install will automatically be extracted from that information. If the test is already installed and was run by the latest version of the installation process, no action will be taken. Multiple arguments can be supplied to install additional tests at the same time.
|
||||
.TP
|
||||
.B install-dependencies [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B install-dependencies [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will install the external dependencies needed by the selected test(s) using the distribution's package management system. For example, some tests depend upon GCC for compiling code. If GCC is not detected on the system, the Phoronix Test Suite will attempt to install GCC using the distribution's package management system. If you are running this command as a local user, you may be prompted for the root password while the process is running. For unsupported distributions, the dependency names will be displayed along with common names for the package. The install-dependencies option needs to be supplied with the test name or suite as an argument. When using the install option, the external dependencies are automatically checked.
|
||||
.TP
|
||||
.B make-download-cache
|
||||
@@ -26,13 +26,13 @@ This option will permanently remove a installed test by the Phoronix Test Suite.
|
||||
.B auto-compare
|
||||
This option will autonomously determine the most relevant test(s) to run for any selected sub-system(s). The tests to run are determined via OpenBenchmarking.org integration with the global results pool. Related test results from OpenBenchmarking.org are also merged to provide a straight-forward and effective means of carrying out a system comparison. If wishing to find comparable results for any particular test profile(s), simply pass the test profile names as additional arguments to this command.
|
||||
.TP
|
||||
.B benchmark [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B benchmark [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will install the selected test(s) (if needed) and will proceed to run the test(s). This option is equivalent to running phoronix-test-suite with the install option followed by the run option. Multiple arguments can be supplied to run additional tests at the same time and save the results into one file.
|
||||
.TP
|
||||
.B finish-run [Test Result]
|
||||
This option can be used if a test run had not properly finished running all tests within a saved results file. Using this option when specifying a saved results file where all tests had not completed will attempt to finish testing on the remaining tests where there are missing results.
|
||||
.TP
|
||||
.B run [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B run [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will run the selected test(s).
|
||||
.TP
|
||||
.B run-random-tests
|
||||
@@ -41,34 +41,34 @@ This option will query OpenBenchmarking.org to run random benchmarks and result
|
||||
.B run-tests-in-suite
|
||||
This option can be used if you wish to run all of the tests found in a supplied suite, but you wish to re-configure each of the test options rather than using the defaults supplied by the suite.
|
||||
.TP
|
||||
.B stress-run [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B stress-run [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will run the passed tests/suites in the multi-process stress-testing mode. The stress-run mode will not produce a result file but is rather intended for running multiple test profiles concurrently to stress / burn-in the system. The number of tests to run concurrently can be toggled via the PTS_CONCURRENT_TEST_RUNS environment variable and by default is set to a value of 2.
|
||||
.TP
|
||||
.SH BATCH TESTING
|
||||
.B batch-benchmark [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B batch-benchmark [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option and its arguments are equivalent to the benchmark option, but the process will be run in the Phoronix Test Suite batch mode.
|
||||
.TP
|
||||
.B batch-install [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B batch-install [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
If you wish to run the install process in the Phoronix Test Suite batch mode but do not wish to run any tests at this time. Running the install process in the batch mode will use the default values and not prompt the user of any possible options, to ensure the process is fully automated.
|
||||
.TP
|
||||
.B batch-run [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B batch-run [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option and its arguments are equivalent to the run option, but the process will be run in the Phoronix Test Suite batch mode.
|
||||
.TP
|
||||
.B batch-setup
|
||||
This option is used to configure the batch mode options for the Phoronix Test Suite, which is subsequently written to the user configuration file. Among the options are whether to automatically upload the test results to OpenBenchmarking.org and prompting for the saved file name.
|
||||
.TP
|
||||
.B default-benchmark [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B default-benchmark [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will install the selected test(s) (if needed) and will proceed to run the test(s) in the defaults mode. This option is equivalent to running phoronix-test-suite with the install option followed by the default-run option.
|
||||
.TP
|
||||
.B default-run [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B default-run [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will run the selected test(s). The name of the test or suite must be supplied or the OpenBenchmarking.org ID or saved local file name. Multiple arguments can be supplied to run additional tests at the same time and save the results in a suite-like fashion. Unlike the normal run option, the default-run will not prompt the user to select from the available test options but will instead use the default options as automatically set by pts-core or the test profile. Use batch-run to automatically test all of the available options.
|
||||
.TP
|
||||
.B internal-run [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B internal-run [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option and its arguments pre-set the Phoronix Test Suite batch run mode with sane values for carrying out benchmarks in a semi-automated manner and without uploading any of the result data to the public OpenBenchmarking.org.
|
||||
.TP
|
||||
.SH OPENBENCHMARKING.ORG
|
||||
.B clone-result [OpenBenchmarking ID] ...
|
||||
This option will download a local copy of a file that was saved to OpenBenchmarking.org, as long as a valid public ID is supplied. More than one ID can be specified and the results will then be merged.
|
||||
This option will download a local copy of a file that was saved to OpenBenchmarking.org, as long as a valid public ID is supplied.
|
||||
.TP
|
||||
.B list-recommended-tests
|
||||
This option will list recommended test profiles for benchmarking sorted by hardware sub-system. The recommended tests are determined via querying OpenBenchmarking.org and determining the most popular tests for a given environment based upon the number of times a test profile has been downloaded, the number of test results available on OpenBenchmarking.org for a given test profile, the age of the test profile, and other weighted factors.
|
||||
@@ -101,15 +101,15 @@ This option can be used for uploading a test profile to your account on OpenBenc
|
||||
This option can be used for uploading a test suite to your account on OpenBenchmarking.org. By uploading your test suite to OpenBenchmarking.org, others are then able to browse and access this test suite for easy distribution.
|
||||
.TP
|
||||
.SH SYSTEM
|
||||
.B detailed-system-info
|
||||
Display detailed information about the installed system hardware and software information as detected by the Phoronix Test Suite Phodevi Library.
|
||||
.TP
|
||||
.B diagnostics
|
||||
This option will print information that is useful to developers when debugging problems with the Phoronix Test Suite and/or test profiles and test suites.
|
||||
.TP
|
||||
.B interactive
|
||||
A simple text-driven interactive interface to the Phoronix Test Suite.
|
||||
.TP
|
||||
.B php-conf
|
||||
This option will print information that is useful to developers when debugging problems with the Phoronix Test Suite and/or test profiles and test suites.
|
||||
.TP
|
||||
.B system-info
|
||||
Display the installed system hardware and software information as detected by the Phoronix Test Suite Phodevi Library.
|
||||
.TP
|
||||
@@ -117,7 +117,10 @@ Display the installed system hardware and software information as detected by th
|
||||
Display the installed system hardware and software sensors in real-time as detected by the Phoronix Test Suite Phodevi Library.
|
||||
.TP
|
||||
.SH INFORMATION
|
||||
.B info [Test | Suite | OpenBenchmarking.org ID | Test Result]
|
||||
.B estimate-run-time [Test | Suite | OpenBenchmarking ID | Test Result]
|
||||
This option will provide estimates for test run-time / length.
|
||||
.TP
|
||||
.B info [Test | Suite | OpenBenchmarking ID | Test Result]
|
||||
This option will show details about the supplied test, suite, virtual suite, or result file.
|
||||
.TP
|
||||
.B list-available-suites
|
||||
@@ -141,6 +144,9 @@ This option will list all test profiles that are currently installed on the syst
|
||||
.B list-missing-dependencies
|
||||
This option will list all of the packages / external test dependencies that are missing from the system that the Phoronix Test Suite may potentially need by select test profiles.
|
||||
.TP
|
||||
.B list-not-installed-tests
|
||||
This option will list all test profiles that are supported and available but presently NOT installed on the system.
|
||||
.TP
|
||||
.B list-possible-dependencies
|
||||
This option will list all of the packages / external test dependencies that are are potentially used by the Phoronix Test Suite.
|
||||
.TP
|
||||
@@ -154,19 +160,22 @@ This option will list various details about installed tests and their usage.
|
||||
This option will list all available test profiles that are available from the enabled OpenBenchmarking.org repositories but are NOT SUPPORTED on the given hardware/software platform. This is mainly a debugging option for those looking for test profiles to potentially port to new platforms, etc.
|
||||
.TP
|
||||
.SH ASSET CREATION
|
||||
.B debug-benchmark [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B debug-benchmark [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option is intended for use by test profile writers and is identical to the <em>run</em> option but will yield more information during the run process that can be used to debug issues with a test profile or to verify the test profile is functioning correctly.
|
||||
.TP
|
||||
.B debug-install [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B debug-install [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option is intended for use by test profile writers and is identical to the install option but will yield more information during the run process that can be used to debug issues with a test profile installer or to verify the test profile is functioning correctly.
|
||||
.TP
|
||||
.B debug-test-download-links [Test | Suite]
|
||||
.B debug-result-parser [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option is intended for use by test profile writers and is used for debugging a result parser. No test execution is done, but there must already be PTS-generated .log files present within the test's installation directory.
|
||||
.TP
|
||||
.B debug-test-download-links [Test | Suite | OpenBenchmarking ID | Test Result]
|
||||
This option will check all download links within the specified test profile(s) to ensure there are no broken URLs.
|
||||
.TP
|
||||
.B download-test-files [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B download-test-files [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This will download the selected test file(s) to the Phoronix Test Suite download cache but will not install the tests.
|
||||
.TP
|
||||
.B force-install [Test | Suite | OpenBenchmarking.org ID | Test Result] ...
|
||||
.B force-install [Test | Suite | OpenBenchmarking ID | Test Result] ...
|
||||
This option will force the installation (or re-installation) of a test or suite. The arguments and process is similar to the install option but even if the test is installed, the entire installation process will automatically be executed. This option is generally used when debugging a test installation problem.
|
||||
.TP
|
||||
.B result-file-to-suite [Test Result]
|
||||
@@ -185,9 +194,6 @@ This option can be used for validating a Phoronix Test Suite test suite as being
|
||||
.B auto-sort-result-file [Test Result]
|
||||
This option is used if you wish to automatically attempt to sort the results by their result identifier string.
|
||||
.TP
|
||||
.B copy-run-in-result-file [Test Result]
|
||||
This option is used if you wish to change an existing test run within a saved results file.
|
||||
.TP
|
||||
.B edit-result-file [Test Result]
|
||||
This option is used if you wish to edit the title and description of an existing result file.
|
||||
.TP
|
||||
@@ -230,20 +236,23 @@ This option will read a saved test results file and output the system hardware a
|
||||
.B show-result [Test Result]
|
||||
Open up the test results in the Phoronix Test Suite Result Viewer or on OpenBenchmarking.org.
|
||||
.TP
|
||||
.B winners-and-losers [Test Result]
|
||||
This option is used if you wish to analyze a result file to see which runs produced the most wins/losses of those result identifiers in the saved file.
|
||||
.TP
|
||||
.SH RESULT ANALYTICS
|
||||
.B analyze-all-runs [Test Result]
|
||||
This option will generate a candlestick graph showing the distribution of results from all trial runs. The candlestick graph is similar to the Japanese candlestick charts used by the financial industry, except instead of representing stock data it is numerical result data from all trial runs.\n\nThe tip of the upper-wick represents the highest value of the test runs with the tip of the lower-wick representing the lowest value of all test runs. The upper-edge of the candle body represents the first or last run value and the lower-edge represents the first or last run value. Lastly, if the last run value is less than the first run value, the candle body is the same color as the graph background, otherwise the last run value is greater.
|
||||
.TP
|
||||
.B analyze-batch [Test Result]
|
||||
This option will analyze a batch results file and plot out the performance impact from the different options onto a line graph (i.e. to see the impact that changing the video resolution has on the system's performance).
|
||||
.TP
|
||||
.B analyze-image-delta [Test Result]
|
||||
This option will analyze a test result file if it contains any test results that produced an image quality comparison (IQC) and will render image deltas illustrating the difference between images from two test results.
|
||||
.TP
|
||||
.SH OTHER
|
||||
.B build-suite
|
||||
This option will guide the user through the process of generating their own test suite, which they can then run. Optionally, passed as arguments can be the test(s) or suite(s) to add to the suite to be created, instead of being prompted through the process.
|
||||
.TP
|
||||
.B debug-dependency-handler
|
||||
This option is used for testing the distribution-specific dependency handler for external dependencies.
|
||||
.TP
|
||||
.B debug-render-test
|
||||
This option is used during the development of the Phoronix Test Suite software for testing of the result and graph rendering code-paths This option will download a large number of reference test results from LinuxBenchmarking.com.
|
||||
.TP
|
||||
.B debug-self-test
|
||||
This option is used during the development of the Phoronix Test Suite software for testing of internal interfaces, commands, and other common code-paths. The produced numbers should only be comparable for the same version of the Phoronix Test Suite, on the same hardware/software system, conducted on the same day of testing. This isn't intended as any scientific benchmark but simply to stress common PHP code-paths and looking for hot areas to optimize, etc.
|
||||
.TP
|
||||
@@ -256,9 +265,6 @@ This option will display the list of available Phoronix Test Suite commands.
|
||||
.B network-setup
|
||||
This option allows the user to configure how the Phoronix Test Suite connects to OpenBenchmarking.org and other web-services. Connecting through an HTTP proxy can be configured through this option.
|
||||
.TP
|
||||
.B rebuild-composite-xml [Test Result]
|
||||
This option can be used to rebuild your composite XML file in the event that the main result file was corrupted and the test-X.xml files are still present in the result file directory.
|
||||
.TP
|
||||
.B user-config-reset
|
||||
This option can be used for resetting the Phoronix Test Suite user configuration file to its default state.
|
||||
.TP
|
||||
@@ -270,7 +276,7 @@ This option will display the Phoronix Test Suite client version.
|
||||
.TP
|
||||
.SH WEB / GUI SUPPORT
|
||||
.B gui
|
||||
Launch the Phoronix Test Suite HTML5 web user-interface in the local GUI mode (no remote web support) and attempt to auto-launch the web-browser.
|
||||
Launch the Phoronix Test Suite HTML5 web user-interface in the local GUI mode (no remote web support) and attempt to auto-launch the web-browser. THIS FEATURE IS CURRENTLY EXPERIMENTAL AND NO LONGER ACTIVE DEVELOPMENT. See Phoronix Test Suite Phoromatic as an alternative web UI approach.
|
||||
.TP
|
||||
.B start-remote-gui-server
|
||||
Start the GUI web server and WebSocket server processes for remote (or local) access via the web-browser. The settings can be configured via the Phoronix Test Suite's XML configuration file.
|
||||
@@ -292,8 +298,8 @@ This option will allow you to configure all available end-user options for a Pho
|
||||
This option can be used for debugging a Phoronix Test Suite module.
|
||||
.TP
|
||||
.SH PHOROMATIC
|
||||
.B g
|
||||
n
|
||||
.B n
|
||||
_
|
||||
.TP
|
||||
.SH SEE ALSO
|
||||
.B Websites:
|
||||
@@ -308,5 +314,5 @@ http://www.phoronix.com/
|
||||
.br
|
||||
http://www.phoronix.com/forums/
|
||||
.SH AUTHORS
|
||||
Copyright 2008 - 2015 by Phoronix Media, Michael Larabel.
|
||||
Copyright 2008 - 2017 by Phoronix Media, Michael Larabel.
|
||||
.TP
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -5,10 +5,12 @@
|
||||
<body>
|
||||
<h1>Setup Overview</h1>
|
||||
<p>The Phoronix Test Suite supports Linux, Apple Mac OS X, Microsoft Windows, Solaris, Hurd, BSD, and other operating system environments. The only Linux distribution-specific code deals with the external dependencies support feature that are set by individual test profiles. If you are not running one of the supported Linux distributions, Solaris, BSD, or Mac OS X, you may need to install a package manually (as instructed by the Phoronix Test Suite) in order for a test to run. An example of an external dependency would be GCC and the OpenGL Utility Toolkit being needed for test profiles that build an OpenGL benchmark from source-code.</p>
|
||||
<p>Among the distributions where the Phoronix Test Suite has been officially tested include Ubuntu, Fedora, Mandriva / Mageia, Gentoo, PCLinuxOS, Arch Linux, Pardus, OpenSuSE, Optware, webOS, Zenwalk, CentOS, Red Hat Enterprise Linux, Oracle Linux, Scientific Linux, Debian, Mint, MEPIS, and Amazon Linux EC2.</p>
|
||||
<p>Among the distributions where the Phoronix Test Suite has been officially tested include Ubuntu, Fedora, Mandriva / Mageia, Gentoo, PCLinuxOS, Arch Linux, Pardus, OpenSuSE, Optware, webOS, Zenwalk, CentOS, Red Hat Enterprise Linux, Oracle Linux, Scientific Linux, Debian, Mint, MEPIS, Alpine Linux, Void Linux, Intel Clear Linux, and Amazon Linux EC2.</p>
|
||||
<p>Among the tested BSD distributions are FreeBSD, PC-BSD, NetBSD, OpenBSD, Debian GNU/kFreeBSD, and DragonflyBSD. Tested Solaris distributions include OpenSolaris, Solaris Express 11, Oracle Solaris 11, OpenIndiana, Illumos, and Nexenta.</p>
|
||||
<h1>Dependencies</h1>
|
||||
<p>The only required dependency for the Phoronix Test Suite is PHP 5.2 or newer. On Linux distributions, the needed package is commonly called <em>php5-cli</em> or <em>php-cli</em> or <em>php</em>. It is important to note that only PHP for the command-line is needed and not a web server (Apache) or other packages commonly associated with PHP and its usage by web-sites. The PHP5 version required is PHP 5.2+ and can also be found at <a href="http://www.php.net/">www.php.net</a>.</p>
|
||||
<p>The only required dependency for the Phoronix Test Suite is PHP 5.3 or newer. On Linux distributions, the needed package is commonly called <em>php5-cli</em> or <em>php-cli</em> or <em>php7</em> or <em>php</em>. It is important to note that only PHP for the command-line is needed and not a web server (Apache) or other packages commonly associated with PHP and its usage by web-sites. The PHP5 version required is PHP 5.3+ and can also be found at <a href="http://www.php.net/">www.php.net</a>. PHP 7 is fully supported by the Phoronix Test Suite as well as HHVM.</p>
|
||||
|
||||
<p>For installing PHP on Windows, the <a href="https://www.microsoft.com/web/platform/phponwindows.aspx">Microsoft Web Platform Installer</a> provides an automated alternative that will install PHP into the directory expected by Phoronix Test Suite. Users opting to install PHP manually must extract the files to <em>C:\Program Files (x86)\PHP\</em> or a subdirectory.</p>
|
||||
<p>As part of the PHP requirement, the following PHP extensions are required and/or highly recommended in order to take advantage of the Phoronix Test Suite capabilities:</p>
|
||||
<ul>
|
||||
<li><strong>PHP DOM</strong> is needed for XML operations and must be installed for the Phoronix Test Suite to function.</li>
|
||||
@@ -46,14 +48,17 @@
|
||||
<h2>OpenSolaris Installation</h2>
|
||||
<p>The Phoronix Test Suite core (pts-core) is supported on Solaris and OpenSolaris platforms, but some features may not fully function. Additionally, the PTS External Dependencies feature is supported on OpenSolaris using IPS (the Image Packaging System). However, not all test profiles are supported on Solaris / OpenSolaris, and it may be in violation of your end-user agreement to perform such benchmarks on the Sun Solaris operating system. Using the OpenSolaris Image Packaging System, installing <em>SUNWphp524</em> will provide PHP, PHP GD, and related dependencies. The Phoronix Test Suite has also been tested on Oracle Solaris 11 Express, OpenIndiana, StormOS, and Nexenta Core Platform.</p>
|
||||
<h2>BSD Installation</h2>
|
||||
<p>The Phoronix Test Suite also supports *BSD operating systems. However, like the Solaris support, not all test profiles are compatible with BSD operating systems, but pts-core has been tested against FreeBSD 7.x/8.x/9.x, NetBSD, PC-BSD 7/8/9, DragonFlyBSD 3.0/3.2/3.4/3.6, and OpenBSD 4.4/4.6. The Phoronix Test Suite will also work with Debian GNU/kFreeBSD.</p>
|
||||
<p>For DragonFlyBSD, it's a matter of just using <em>pkg_radd</em> with php5, php5-json, php5-dom, and php5-zip or <em>pkgsrc</em>. Under FreeBSD/PC-BSD, PHP can be obtained from the <em>php5</em> and <em>php5-extensions</em> Ports collection.</p>
|
||||
<p>The Phoronix Test Suite also supports *BSD operating systems. However, like the Solaris support, not all test profiles are compatible with BSD operating systems, but pts-core has been tested against FreeBSD 7.x/8.x/9.x, NetBSD, PC-BSD 7/8/9, DragonFlyBSD 3.0/3.2/3.4/3.6/4.2, and OpenBSD 4.4/4.6. The Phoronix Test Suite will also work with Debian GNU/kFreeBSD.</p>
|
||||
<p>For DragonFlyBSD, it's a matter of just using <em>pkg_radd</em> with php5, php5-json, php5-dom, and php5-zip or <em>pkgsrc</em>. With DragonFlyBSD using dports, the command is <em>pkg install php5 php5-dom php5-zip php5-json php5-simplexml</em>. Under FreeBSD/PC-BSD, PHP can be obtained from the <em>php5</em> and <em>php5-extensions</em> Ports collection.</p>
|
||||
<h2>Mac OS X Installation</h2>
|
||||
<p>The Phoronix Test Suite is fully supported on Apple's Mac OS X operating system as of Mac OS X 10.5 with improved support under Mac OS X 10.6. PHP ships with Mac OS X by default so it's simply a matter of downloading the Phoronix Test Suite package, extracting it, and running the executable. For tests that rely upon a compiler, Apple's XCode with GCC and LLVM can be utilized.</p>
|
||||
<h2>Windows Installation</h2>
|
||||
<p>The Phoronix Test Suite support on Windows is in development and will function just fine, but is not yet feature complete compared to the other operating systems support. At this time the Phoronix Test Suite client is dependent upon PHP being installed to <em>C:\Program Files (x86)\PHP\php</em>. The Phoronix Test Suite also uses <a href="http://www.cpuid.com/cpuz.php">CPU-Z</a> for much of the hardware detection support on Windows and is dependent upon CPU-Z being installed to <em>C:\Program Files\CPUID\CPU-Z\cpuz.exe</em> if you wish to utilize this hardware reporting feature. In terms of the Microsoft Windows support, right now the Phoronix Test Suite is developed and solely tested against Microsoft Windows 7 x64 and Microsoft Windows 8 x64.</p>
|
||||
<p>The Phoronix Test Suite support on Microsoft Windows is in development and will function just fine, but is not yet feature complete compared to the other operating systems support. Only a small subset of test profiles, mostly related to graphics, are supported. In terms of the version support, right now the Phoronix Test Suite is developed and tested solely against Microsoft Windows 7 x64 and Microsoft Windows 8 x64.</p>
|
||||
<p>At this time the Phoronix Test Suite client is dependent upon the <em>php.exe</em> executable being installed to <em>C:\Program Files (x86)\PHP\ </em> or one of its subdirectories (see PHP installation notes above). Once this requirement is met, simply download the Phoronix Test Suite package, extract it to a directory of your choice, and run <em>phoronix-test-suite.bat</em></p>
|
||||
<p>The Phoronix Test Suite also uses <a href="http://www.cpuid.com/cpuz.php">CPU-Z</a> for much of the hardware detection support on Windows and is dependent upon CPU-Z being installed to <em>C:\Program Files\CPUID\CPU-Z\cpuz.exe</em> if you wish to utilize this hardware reporting feature. </p>
|
||||
<p>NOTE: because of lack of external dependencies support, it is necessary to manually download and install the files for some test profiles, such as the Unigine graphics benchmarks. See Troubleshooting for more information.</p>
|
||||
<h2>Facebook HipHop</h2>
|
||||
<p>The Phoronix Test Suite can use Facebook's <a href="https://github.com/facebook/hiphop-php">HopHop HHVM</a> virtual machine as an alternative to the de facto PHP implementation. The Phoronix Test Suite has been tested against HHVM 2.0. If HHVM is present on the system but not PHP, it will automatically be used by the Phoronix Test Suite. Alternatively, the <em>PHP_BIN</em> environment variable can be set to point to an alternative <em>hhvm</em> binary.</p>
|
||||
<p>The Phoronix Test Suite can use Facebook's <a href="https://github.com/facebook/hiphop-php">HipHop HHVM</a> virtual machine as an alternative to the de facto PHP implementation. The Phoronix Test Suite has been tested against HHVM 2.0. If HHVM is present on the system but not PHP, it will automatically be used by the Phoronix Test Suite. Alternatively, the <em>PHP_BIN</em> environment variable can be set to point to an alternative <em>hhvm</em> binary.</p>
|
||||
<p>The Phoronix Test Suite also supports the older version of Facebook HipHop that serves as a PHP to C++ translator and compiler with GCC. This support though is primitive and not officially supported. To compile the Phoronix Test Suite using HipHop/GCC, run <em>find . -name "*.php" > files.list && hphp --input-list=files.list -k 1 --log=3 --include-path="." --cluster-count=50 -v "AllDynamic=true" -v "AllVolatile=true"</em> from the root <em>phoronix-test-suite/</em> directory. It can then be executed in the form of <em>/tmp/hphp_XXX/program -f pts-core/phoronix-test-suite.php system-info</em>.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>External Dependencies</title></head><body><p>The Phoronix Test Suite has a feature known as "External Dependencies" where the Phoronix Test Suite can attempt to automatically install some of the test-specific dependencies on supported distributions. If running on a distribution where there is currently no External Dependencies profile, the needed package name(s) are listed for manual installation.</p><p>Below are a list of the operating systems that currently have external dependencies support within the Phoronix Test Suite for the automatic installation of needed test files.<hr><ul></ul><li>Amazon</li><li>Angstrom</li><li>Arch Linux</li><li>CentOS</li><li>ClearOS</li><li>ClearOS Core Server</li><li>Debian</li><li>DragonFlyBSD</li><li>Fedora</li><li>Fluxbuntu</li><li>FreeBSD</li><li>GNU KFreeBSD</li><li>Gentoo</li><li>Goobuntu</li><li>HP</li><li>Joli Cloud</li><li>Linaro</li><li>Linux Mint</li><li>MEPIS</li><li>Mac OS X</li><li>MacPorts</li><li>Mageia</li><li>Mandriva</li><li>MeeGo</li><li>Moblin</li><li>Mythbuntu</li><li>NetBSD</li><li>Nexenta Core</li><li>OLPC</li><li>OpenIndiana</li><li>OpenMandriva</li><li>OpenSolaris</li><li>OpenSuSE</li><li>Optware</li><li>Oracle Server</li><li>PCLinuxOS</li><li>PTS Desktop Live</li><li>PTS Linux Live</li><li>Palm</li><li>Pardus Linux</li><li>Red Hat Enterprise</li><li>Red Hat Enterprise Server</li><li>SUSE</li><li>SUSE Linux</li><li>Scientific</li><li>ScientificSL</li><li>Ubuntu</li><li>Zenwalk</li><li>gNewSense</li></p></body></html>
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>External Dependencies</title></head><body><p>The Phoronix Test Suite has a feature known as "External Dependencies" where the Phoronix Test Suite can attempt to automatically install some of the test-specific dependencies on supported distributions. If running on a distribution where there is currently no External Dependencies profile, the needed package name(s) are listed for manual installation.</p><p>Below are a list of the operating systems that currently have external dependencies support within the Phoronix Test Suite for the automatic installation of needed test files.<hr><ul></ul><li>Alpine Linux</li><li>Amazon</li><li>Angstrom</li><li>Arch Linux</li><li>CentOS</li><li>ClearOS</li><li>ClearOS Core Server</li><li>Debian</li><li>DragonFlyBSD</li><li>Fedora</li><li>Fluxbuntu</li><li>FreeBSD</li><li>GNU KFreeBSD</li><li>Gentoo</li><li>Goobuntu</li><li>HP</li><li>Joli Cloud</li><li>Linaro</li><li>Linux Mint</li><li>MEPIS</li><li>Mac OS X</li><li>MacPorts</li><li>Mageia</li><li>Mandriva</li><li>MeeGo</li><li>Moblin</li><li>Mythbuntu</li><li>NetBSD</li><li>Nexenta Core</li><li>OLPC</li><li>OpenIndiana</li><li>OpenMandriva</li><li>OpenSolaris</li><li>OpenSuSE</li><li>Optware</li><li>Oracle Server</li><li>PCLinuxOS</li><li>PTS Desktop Live</li><li>PTS Linux Live</li><li>Palm</li><li>Pardus Linux</li><li>Red Hat Enterprise</li><li>Red Hat Enterprise Server</li><li>SUSE</li><li>SUSE Linux</li><li>Scientific</li><li>ScientificSL</li><li>Solus</li><li>Solus Linux</li><li>Ubuntu</li><li>Void Linux</li><li>Zenwalk</li><li>gNewSense</li></p></body></html>
|
||||
|
||||
@@ -57,6 +57,8 @@
|
||||
<p>This is similar to the FORCE_TIMES_TO_RUN option but will only be used if the test profile's run count is less than this defined value.</p>
|
||||
<p><strong>NO_FILE_HASH_CHECKS</strong></p>
|
||||
<p>To disable MD5/SHA256 check-sums from being checked when downloading test files, set this variable to 1. This variable used to be known as <em>NO_MD5_CHECKS</em>, which is still honored but was changed to <em>NO_FILE_HASH_CHECKS</em> to reflect other kind of file hash sum checks.</p>
|
||||
<p><strong>NO_HTTPS</strong></p>
|
||||
<p>Set this environment variable to 1 if you don't wish to use HTTPS download links for test profiles (or the system/network lacks HTTPS support). When enabled, HTTPS links will then be done over HTTP.</p>
|
||||
<p><strong>PTS_DOWNLOAD_CACHE</strong></p>
|
||||
<p>While non-standard Phoronix Test Suite download caches can be specified within the <em>user-config.xml</em> file, an additional directory to look for potential Phoronix Test Suite download files can be specified by this variable.</p>
|
||||
<p><strong>GRAPH_HIGHLIGHT</strong></p>
|
||||
|
||||
@@ -34,6 +34,13 @@
|
||||
<p>- If you want the specified test(s) to run in a loop for a set period of time, use the <em>TOTAL_LOOP_TIME</em> environment variable. For instance, running <em>TOTAL_LOOP_TIME=120 phoronix-test-suite benchmark ffmpeg</em> would keep running the ffmpeg test profile for 120 minutes.</p>
|
||||
<p>- If you want the specified test(s) to run in a loop for a set number of times, use the <em>TOTAL_LOOP_COUNT</em> environment variable. For instance, running <em>TOTAL_LOOP_COUNT=3 phoronix-test-suite benchmark ffmpeg</em> would keep running the ffmpeg test profile three times.</p>
|
||||
<p>- When any tests are being installed and when tests are being run, a lock is created in the system's temporary directory with the name <em>phoronix-test-suite.active</em> (i.e. <em>/tmp/phoronix-test-suite.active</em>) and is removed upon completion. Thus if you have any system scripts that you wish to run when tests are not running or being installed as to not impact the results, one simple way to handle this is by having the script check for the existence of this lock.</p>
|
||||
<h2>Troubleshooting</h2>
|
||||
In the event that a test profile fails to install or run, the following general troubleshooting steps may be helpful:
|
||||
|
||||
<p>- If a test profile fails immediately after starting, check the test profile's directory in <em>~/.phoronix-test-suite/installed-tests/</em> to confirm that the needed files are present. On platforms without External Dependencies support (Windows), it may be necessary to download the files manually and place them in this directory. If this is the case, you will notice that the "Downloading" phase of test installation completes instantly.</p>
|
||||
<p>- Inspect the scripts inside the above test profile's directory and confirm that directories or search paths for the test correspond to those on your system</p>
|
||||
<p>- Try running the test profile with the <em>debug-benchmark</em> command, or reinstalling with the <em>debug-install</em> command and make note of any unusual output.
|
||||
|
||||
<h2>Configuration</h2>
|
||||
<p>- The user configuration options for the Phoronix Test Suite are stored in <em>~/.phoronix-test-suite/user-config.xml</em>. The batch mode options are also stored within this file and those can be adjusted by running <em>phoronix-test-suite batch-setup</em>.</p>
|
||||
<p>- The colors, size, and other attributes for the graphs found within the Phoronix Test Suite Results Viewer can be modified via the file <em>~/.phoronix-test-suite/graph-config.json</em>.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -4,54 +4,3 @@
|
||||
</head>
|
||||
<body>
|
||||
<p>The Phoronix Test Suite is based upon the extensive testing and internal tools developed by <a href="http://www.phoronix.com/">Phoronix.com</a> since 2004 along with support from leading tier-one computer hardware and software vendors. The principal architects of the Phoronix Test Suite are <a href="http://www.michaellarabel.com/">Michael Larabel</a> and Matthew Tippett. The phoronix-test-suite, pts_Graph, Phoromatic, Phodevi, tandem_Xml, and nye_Xml are some of the related open-source projects provided by <a href="http://www.phoronix-media.com/">Phoronix Media</a>.</p>
|
||||
<p>Below is a list of individuals and organizations that have contributed upstream patches, test profiles, and/or made other contributions to the Phoronix Test Suite that Phoronix Media would like to thank.</p>
|
||||
<ul>
|
||||
<li>Achim Gottinger</li>
|
||||
<li>Achim Lange</li>
|
||||
<li>Andrew Schofield</li>
|
||||
<li>Apaige</li>
|
||||
<li>Ben Kero</li>
|
||||
<li>Bryan Quigley</li>
|
||||
<li>Chris Campbell</li>
|
||||
<li>Daniel Díaz</li>
|
||||
<li>Daniel Stodden / Citrix</li>
|
||||
<li>Dean Hilkewich</li>
|
||||
<li>ESET s.r.o.</li>
|
||||
<li>Fatima Sheremetyeva</li>
|
||||
<li>Fujitsu</li>
|
||||
<li>Hans Ulrich Niedermann</li>
|
||||
<li>Intel Open-Source Technology Center</li>
|
||||
<li>Jeroen van Rijn</li>
|
||||
<li>Johannes Obermayr</li>
|
||||
<li>Juan Aguado</li>
|
||||
<li>Jörg Schirottke</li>
|
||||
<li>Kenney Phillis</li>
|
||||
<li>Kim Bisgaard</li>
|
||||
<li>Laminar Research</li>
|
||||
<li>Marco Poletti</li>
|
||||
<li>Matthew Tippett</li>
|
||||
<li>Michael Larabel</li>
|
||||
<li>Michael Opdenacker</li>
|
||||
<li>Michael Ploujnikov</li>
|
||||
<li>Michal Zatloukal</li>
|
||||
<li>Mufasa72</li>
|
||||
<li>Nicholas Omann</li>
|
||||
<li>NickZ</li>
|
||||
<li>Nils Kneuper</li>
|
||||
<li>NVIDIA Corporation</li>
|
||||
<li>Pekka Panula</li>
|
||||
<li>Peter Kraus</li>
|
||||
<li>Rainer König</li>
|
||||
<li>SOMA Networks, Inc.</li>
|
||||
<li>Stefan Doesinger</li>
|
||||
<li>Stepan Hrbek</li>
|
||||
<li>Stéphane Teletchéa</li>
|
||||
<li>Sun Microsystems</li>
|
||||
<li>Tao Zhang</li>
|
||||
<li>Thomas Klausner</li>
|
||||
<li>Unigine Corp</li>
|
||||
<li>Vadim Peretokin</li>
|
||||
<li>Zachary Powers</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
The Phoronix Test Suite itself is an open-source framework for conducting automated tests along with reporting of test results, detection of installed system software/hardware, and other features. Modules for the Phoronix Test Suite also allow for integration with git-bisect and other revision control systems for per-commit regression testing, system sensor monitoring, and other extras.
|
||||
|
||||
This framework is designed to be an extensible architecture so that new test profiles and suites can be easily added to represent performance benchmarks, unit tests, and other quantitative and qualitative (e.g. image quality comparison) measurements. Available through OpenBenchmarking.org, a collaborative storage platform developed in conjunction with the Phoronix Test Suite, are more than 200 individual test profiles and more than 60 test suites available by default from the Phoronix Test Suite. Independent users are also able to upload their test results, profiles, and suites to OpenBenchmarking.org. A test profile is a single test that can be executed by the Phoronix Test Suite -- with a series of options possible within every test -- and a test suite is a seamless collection of test profiles and/or additional test suites. A test profile consists of a set of bash/shell scripts and XML files while a test suite is a single XML file.
|
||||
This framework is designed to be an extensible architecture so that new test profiles and suites can be easily added to represent performance benchmarks, unit tests, and other quantitative and qualitative (e.g. image quality comparison) measurements. Available through OpenBenchmarking.org, a collaborative storage platform developed in conjunction with the Phoronix Test Suite, are more than 200 individual test profiles and more than 60 test suites available by default from the Phoronix Test Suite. Independent users are also able to upload their test results, profiles, and suites to OpenBenchmarking.org. A test profile is a single test that can be executed by the Phoronix Test Suite -- with a series of options possible within every test -- and a test suite is a seamless collection of test profiles and/or additional test suites. A test profile consists of a set of Bash/shell scripts and XML files while a test suite is a single XML file.
|
||||
|
||||
[OpenBenchmarking.org](http://www.openbenchmarking.org/) also allows for conducting side-by-side result comparisons, a central location for storing and sharing test results, and collaborating over test data. [Phoromatic](http://www.phoromatic.com/) is a complementary platform to OpenBenchmarking.org and the Phoronix Test Suite for interfacing with Phoronix Test Suite client(s) to automatically execute test runs on a timed, per-commit, or other trigger-driven basis. Phoromatic is designed for enterprise and allows for the easy management of multiple networked systems running Phoronix Test Suite clients via a single web-based interface.
|
||||
|
||||
Professional support and custom engineering for the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org is available by contacting <http://www.phoronix-test-suite.com/>.
|
||||
|
||||
Full details on the Phoronix Test Suite setup and usage is available from the included HTML/PDF documentation within the phoronix-test-suite package and from the Phoronix Test Suite web-site.
|
||||
Full details on the Phoronix Test Suite setup and usage is available from the included HTML/PDF documentation within the phoronix-test-suite package and from the Phoronix Test Suite website.
|
||||
|
||||
## INSTALLATION & SETUP:
|
||||
## Installation & Setup
|
||||
|
||||
The Phoronix Test Suite is supported on Linux, *BSD, Solaris, Mac OS X, and Windows systems. However, the most full-featured and well supported operating system for conducting the tests is Linux with some non-basic functionality not being available under all platforms. The Phoronix Test Suite software/framework is compatible with all major CPU architectures (e.g. i686, x86_64, ARM, PowerPC), but not all of the test profiles/suites are compatible with all architectures.
|
||||
|
||||
The Phoronix Test Suite can be installed for system-wide usage or run locally without installation from the extracted tar.gz/zip package. The only hard dependency on the Phoronix Test Suite is having command-line support for PHP (PHP 5.2+) installed. A complete PHP stack (e.g. with web-server) is NOT needed, but merely the PHP command-line support, which is widely available from operating system package managers under the name `php`, `php5-cli`, or `php5`.
|
||||
The Phoronix Test Suite can be installed for system-wide usage or run locally without installation from the extracted tar.gz/zip package. The only hard dependency on the Phoronix Test Suite is having command-line support for PHP (PHP 5.3+) installed. A complete PHP stack (e.g. with web server) is **not** needed, but merely the PHP command-line support, which is widely available from operating system package managers under the name `php`, `php5-cli`, or `php5`.
|
||||
|
||||
## USAGE:
|
||||
## Usage
|
||||
|
||||
The process to download, install/setup, execute, and report the results of a benchmark can be as simple as a command such as `phoronix-test-suite benchmark smallpt` to run a simple CPU test profile. If wishing to simply install a test, it's a matter of running `phoronix-test-suite install <test or suite name>` and to run it's `phoronix-test-suite run <test or suite name>`. There's also a batch mode for non-interactive benchmarking by first running `phoronix-test-suite batch-setup` and then using the `batch-run` sub-command rather than `run`.
|
||||
|
||||
@@ -22,4 +22,4 @@ Viewing installed system hardware and software is available via `phoronix-test-s
|
||||
|
||||
Facilitating a result comparison from OpenBenchmarking.org can be done by running, for example, `phoronix-test-suite benchmark 1204293-BY-PHORONIX357` if wishing to compare the results of the `http://openbenchmarking.org/result/1204293-BY-PHORONIX357` result file.
|
||||
|
||||
Additional information is available from the Phoronix Test Suite web-site <http://www.phoronix-test-suite.com/> and the material bundled within the `phoronix-test-suite/documentation/` directory. A man page is also bundled with the phoronix-test-suite software.
|
||||
Additional information is available from the Phoronix Test Suite website <http://www.phoronix-test-suite.com/> and the material bundled within the `phoronix-test-suite/documentation/` directory. A man page is also bundled with the phoronix-test-suite software.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Phoronix Test Suite
|
||||
# URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
# Copyright (C) 2008 - 2015, Phoronix Media
|
||||
# Copyright (C) 2008 - 2017, Phoronix Media
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#
|
||||
# Phoronix Test Suite
|
||||
# URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
# Copyright (C) 2008 - 2015, Phoronix Media
|
||||
# Copyright (C) 2008 - 2015, Michael Larabel
|
||||
# Copyright (C) 2008 - 2017, Phoronix Media
|
||||
# Copyright (C) 2008 - 2017, Michael Larabel
|
||||
# phoronix-test-suite: The Phoronix Test Suite is an extensible open-source testing / benchmarking platform
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -44,12 +44,18 @@ fi
|
||||
if [ ! "X$PHP_BIN" = "X" ] && [ -x $PHP_BIN ]
|
||||
then
|
||||
export PHP_BIN=$PHP_BIN
|
||||
elif [ -x /usr/bin/php7 ] || [ -x /usr/local/bin/php7 ] || [ -x /usr/pkg/bin/php7 ]
|
||||
then
|
||||
export PHP_BIN="php7"
|
||||
elif [ -x /usr/bin/php5 ] || [ -x /usr/local/bin/php5 ] || [ -x /usr/pkg/bin/php5 ]
|
||||
then
|
||||
export PHP_BIN="php5"
|
||||
elif [ -x /usr/bin/php ] || [ -x /usr/local/bin/php ] || [ -x /usr/pkg/bin/php ]
|
||||
then
|
||||
export PHP_BIN="php"
|
||||
elif [ -x /usr/php7/bin/php ]
|
||||
then
|
||||
export PHP_BIN="/usr/php7/bin/php"
|
||||
elif [ -x /usr/php5/bin/php ]
|
||||
then
|
||||
export PHP_BIN="/usr/php5/bin/php"
|
||||
@@ -65,6 +71,9 @@ then
|
||||
elif which php >/dev/null 2>&1 ;
|
||||
then
|
||||
export PHP_BIN="php"
|
||||
elif which php7 >/dev/null 2>&1 ;
|
||||
then
|
||||
export PHP_BIN="php7"
|
||||
elif which php5 >/dev/null 2>&1 ;
|
||||
then
|
||||
export PHP_BIN="php5"
|
||||
@@ -83,37 +92,96 @@ if [ "X$PHP_BIN" = "X" ]
|
||||
then
|
||||
cat <<'EOT'
|
||||
|
||||
PHP 5.2 or newer must be installed for the Phoronix Test Suite
|
||||
PHP 5.3 or newer or PHP 7 must be installed for the Phoronix Test Suite
|
||||
The PHP command-line package is commonly called php-cli, php5-cli, or php.
|
||||
For more information visit: http://www.phoronix-test-suite.com/
|
||||
|
||||
EOT
|
||||
|
||||
if [ -x /usr/bin/apt-get ]
|
||||
if [ -x /usr/bin/zypper ]
|
||||
then
|
||||
# SUSE / OpenSUSE
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# apt-get install php5-cli php5-json php5-gd"
|
||||
echo "# zypper install php7 php7-zip"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/apt-get ]
|
||||
then
|
||||
# Debian / Ubuntu Based Systems
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# apt-get install php-cli php-xml"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/dnf ]
|
||||
then
|
||||
# Modern Fedora
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# dnf install php-cli php-xml"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/yum ]
|
||||
then
|
||||
# Red Hat / Fedora / etc
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# yum install php-cli php-xml"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/zypper ]
|
||||
then
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# zypper install php5 php5-zip"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/pkg_radd ]
|
||||
then
|
||||
# BSD
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# pkg_radd php5 php5-json php5-zip php5-dom"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/pacman ]
|
||||
then
|
||||
# Arch Linux
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# pacman -S php"
|
||||
echo " "
|
||||
elif [ -x /usr/local/sbin/pkg ] || [ -x /usr/sbin/pkg ]
|
||||
then
|
||||
# DragonFlyBSD and others
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# pkg install php70 php70-dom php70-zip php70-json php70-simplexml"
|
||||
echo " "
|
||||
elif [ -x /usr/local/swupd ]
|
||||
then
|
||||
# Clear Linux
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# swupd bundle-add os-testsuite-phoronix"
|
||||
echo " "
|
||||
elif [ -x /usr/sbin/pkg_add ]
|
||||
then
|
||||
# OpenBSD
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# pkg_add php php-zip"
|
||||
echo " "
|
||||
elif [ -x /usr/sbin/equo ]
|
||||
then
|
||||
# Sabayon
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# equo install dev-lang/php"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/xbps-install ] || [ -x /usr/sbin/xbps-install ]
|
||||
then
|
||||
# Void Linux
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# xbps-install -Sy php unzip"
|
||||
echo " "
|
||||
elif [ -x /usr/sbin/netpkg ]
|
||||
then
|
||||
# Zenwalk / Slackware
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# netpkg php"
|
||||
echo " "
|
||||
elif [ -x /sbin/apk ]
|
||||
then
|
||||
# Alpine Linux
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# apk add php5 php5-dom php5-zip php5-json"
|
||||
echo " "
|
||||
elif [ -x /usr/bin/urpmi ]
|
||||
then
|
||||
# OpenMandriva Linux
|
||||
echo "The command to likely run for your operating system is: "
|
||||
echo "# urpmi php-cli"
|
||||
echo " "
|
||||
fi
|
||||
|
||||
exit
|
||||
|
||||
20
phoronix-test-suite.bat
Executable file → Normal file
20
phoronix-test-suite.bat
Executable file → Normal file
@@ -1,7 +1,7 @@
|
||||
:: Phoronix Test Suite
|
||||
:: URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
:: Copyright (C) 2008 - 2015, Phoronix Media
|
||||
:: Copyright (C) 2008 - 2015, Michael Larabel
|
||||
:: Copyright (C) 2008 - 2017, Phoronix Media
|
||||
:: Copyright (C) 2008 - 2017, Michael Larabel
|
||||
:: phoronix-test-suite: The Phoronix Test Suite is an extensible open-source testing / benchmarking platform
|
||||
::
|
||||
:: This program is free software; you can redistribute it and/or modify
|
||||
@@ -25,11 +25,19 @@ set PTS_MODE=CLIENT
|
||||
|
||||
:: TODO: Other work to bring this up to sync with the *NIX phoronix-test-suite launcher
|
||||
If defined PHP_BIN goto SkipBinSearch
|
||||
|
||||
echo "No PHP_BIN defined checking for usual locations."
|
||||
If exist "C:\Program Files (x86)\PHP"\php set PHP_BIN="C:\Program Files (x86)\PHP"\php
|
||||
If exist C:\php-gtk2\php set PHP_BIN=C:\php-gtk2\php
|
||||
set PHP_BIN="C:\Program Files (x86)\PHP"\php
|
||||
|
||||
:: Recursively search C:Program Files (x86)\PHP\ and subdirectories for the php executable
|
||||
:: (installed location may vary depending on the installation method.)
|
||||
|
||||
for /f "delims=" %%i in ('dir "C:\Program Files (x86)\PHP\php.exe" /s /b') do (set PHP_BIN="%%i")
|
||||
|
||||
If exist C:\php-gtk2\php.exe (
|
||||
set PHP_BIN=C:\php-gtk2\php.exe
|
||||
)
|
||||
|
||||
:SkipBinSearch
|
||||
cls
|
||||
%PHP_BIN% pts-core/phoronix-test-suite.php %*
|
||||
|
||||
%PHP_BIN% pts-core\phoronix-test-suite.php %*
|
||||
|
||||
@@ -1,30 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2011, Phoronix Media
|
||||
Copyright (C) 2008 - 2011, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class analyze_all_runs implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Result Analytics';
|
||||
const doc_description = 'This option will generate a candlestick graph showing the distribution of results from all trial runs. The candlestick graph is similar to the Japanese candlestick charts used by the financial industry, except instead of representing stock data it is numerical result data from all trial runs.\n\nThe tip of the upper-wick represents the highest value of the test runs with the tip of the lower-wick representing the lowest value of all test runs. The upper-edge of the candle body represents the first or last run value and the lower-edge represents the first or last run value. Lastly, if the last run value is less than the first run value, the candle body is the same color as the graph background, otherwise the last run value is greater.';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
@@ -33,8 +27,7 @@ class analyze_all_runs implements pts_option_interface
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
pts_client::regenerate_graphs($args[0], 'The ' . $args[0] . ' result file graphs have been re-rendered to show all test runs.', array('graph_render_type' => 'CANDLESTICK'));
|
||||
pts_client::regenerate_graphs($args[0], 'The ' . $args[0] . ' result file graphs have been re-rendered to show all test runs.', array('graph_render_type' => 'HORIZONTAL_BOX_PLOT'));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2011, Phoronix Media
|
||||
Copyright (C) 2008 - 2011, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class analyze_batch implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Result Analytics';
|
||||
const doc_description = 'This option will analyze a batch results file and plot out the performance impact from the different options onto a line graph (i.e. to see the impact that changing the video resolution has on the system\'s performance).';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'is_result_file'), null)
|
||||
);
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
$base_file = $args[0];
|
||||
|
||||
do
|
||||
{
|
||||
$rand_file = rand(1000, 9999);
|
||||
$save_to = 'analyze-' . $rand_file . '/';
|
||||
}
|
||||
while(is_dir(PTS_SAVE_RESULTS_PATH . $save_to));
|
||||
$save_to .= 'composite.xml';
|
||||
|
||||
// Analyze Results
|
||||
$SAVED_RESULTS = pts_merge::generate_analytical_batch_xml($base_file);
|
||||
pts_client::save_test_result($save_to, $SAVED_RESULTS);
|
||||
echo 'Results Saved To: ' . PTS_SAVE_RESULTS_PATH . $save_to . PHP_EOL . PHP_EOL;
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . dirname($save_to) . '/index.html');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,138 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2011, Phoronix Media
|
||||
Copyright (C) 2009 - 2011, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class analyze_image_delta implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Result Analytics';
|
||||
const doc_description = 'This option will analyze a test result file if it contains any test results that produced an image quality comparison (IQC) and will render image deltas illustrating the difference between images from two test results.';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'is_result_file'), null)
|
||||
);
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
$result = $args[0];
|
||||
|
||||
$result_file = new pts_result_file($result);
|
||||
$result_file_identifiers = $result_file->get_system_identifiers();
|
||||
|
||||
if(count($result_file_identifiers) < 2)
|
||||
{
|
||||
echo PHP_EOL . 'There are not multiple test runs in this result file.' . PHP_EOL;
|
||||
return false;
|
||||
}
|
||||
|
||||
$base_identifier = pts_user_io::prompt_text_menu('Select the base test run', $result_file_identifiers);
|
||||
$base_select = new pts_result_merge_select($result, $base_identifier);
|
||||
|
||||
$compare_identifier = pts_user_io::prompt_text_menu('Select the test run to compare', $result_file_identifiers);
|
||||
$compare_select = new pts_result_merge_select($result, $compare_identifier);
|
||||
|
||||
do
|
||||
{
|
||||
$extract_to = 'iqc-analyze-' . rand(100, 999);
|
||||
}
|
||||
while(is_dir(PTS_SAVE_RESULTS_PATH . $extract_to));
|
||||
|
||||
$extract_result = pts_merge::merge_test_results($base_select, $compare_select);
|
||||
pts_client::save_test_result($extract_to . '/composite.xml', $extract_result);
|
||||
|
||||
$compare_file = new pts_result_file($extract_to);
|
||||
$result_file_writer = new pts_result_file_writer('Image Delta');
|
||||
|
||||
foreach($compare_file->get_result_objects() as $result_object)
|
||||
{
|
||||
if($result_object->test_profile->get_display_format() != 'IMAGE_COMPARISON')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$base_result = null;
|
||||
$compare_result = null;
|
||||
|
||||
foreach($result_object->test_result_buffer->get_buffer_items() as $buffer_item)
|
||||
{
|
||||
if($buffer_item->get_result_identifier() == $base_identifier && $base_result == null)
|
||||
{
|
||||
$base_result = $buffer_item->get_result_value();
|
||||
}
|
||||
else if($buffer_item->get_result_identifier() == $compare_identifier && $compare_result == null)
|
||||
{
|
||||
$compare_result = $buffer_item->get_result_value();
|
||||
}
|
||||
|
||||
if($compare_result != null && $base_result != null)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if($compare_result == null || $base_result == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$base_img = imagecreatefromstring(base64_decode($base_result));
|
||||
$compare_img = imagecreatefromstring(base64_decode($compare_result));
|
||||
$delta_img = imagecreatefromstring(base64_decode($compare_result));
|
||||
$img_width = imagesx($base_img);
|
||||
$img_height = imagesy($base_img);
|
||||
$img_changed = false;
|
||||
|
||||
for($x = 0; $x < $img_width; $x++)
|
||||
{
|
||||
for($y = 0; $y < $img_height; $y++)
|
||||
{
|
||||
$base_image_color = pts_image::rgb_gd_color_at($base_img, $x, $y);
|
||||
$compare_image_color = pts_image::rgb_gd_color_at($compare_img, $x, $y);
|
||||
|
||||
if($base_image_color == $compare_image_color || pts_image::rgb_int_diff($base_image_color, $compare_image_color) < 9)
|
||||
{
|
||||
if(($cords = pts_image::color_pixel_delta($base_img, $compare_img, $x, $y)))
|
||||
{
|
||||
$pixel_rgb = pts_image::rgb_gd_color_at($delta_img, $cords[0], $cords[1]);
|
||||
$color_invert = imagecolorresolve($delta_img, 255 - $pixel_rgb[0], 255 - $pixel_rgb[1], 255 - $pixel_rgb[2]);
|
||||
imagesetpixel($delta_img, $x, $y, $color_invert);
|
||||
$img_changed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($img_changed)
|
||||
{
|
||||
imagepng($delta_img, PTS_SAVE_RESULTS_PATH . $extract_to . '/scratch.png');
|
||||
$result_value = base64_encode(file_get_contents(PTS_SAVE_RESULTS_PATH . $extract_to . '/scratch.png', FILE_BINARY));
|
||||
pts_file_io::unlink(PTS_SAVE_RESULTS_PATH . $extract_to . '/scratch.png');
|
||||
$result_file_writer->add_result_from_result_object_with_value_string($result_object, $result_value);
|
||||
}
|
||||
}
|
||||
|
||||
pts_client::save_result_file($result_file_writer, $extract_to);
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $extract_to . '/composite.xml');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2012, Phoronix Media
|
||||
Copyright (C) 2012, Michael Larabel
|
||||
Copyright (C) 2012 - 2016, Phoronix Media
|
||||
Copyright (C) 2012 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -39,7 +39,7 @@ class auto_compare implements pts_option_interface
|
||||
|
||||
if($test_object instanceof pts_test_profile)
|
||||
{
|
||||
array_push($compare_tests, $test_object->get_identifier(false));
|
||||
$compare_tests[] = $test_object->get_identifier(false);
|
||||
|
||||
if(!isset($compare_subsystems[$test_object->get_test_hardware_type()]))
|
||||
{
|
||||
@@ -113,11 +113,10 @@ class auto_compare implements pts_option_interface
|
||||
|
||||
foreach($json['auto_compare']['public_ids'] as $public_id)
|
||||
{
|
||||
$result_xml = pts_openbenchmarking::clone_openbenchmarking_result($public_id, true);
|
||||
|
||||
if($result_xml)
|
||||
$ret = pts_openbenchmarking::clone_openbenchmarking_result($public_id);
|
||||
if($ret)
|
||||
{
|
||||
$result_file = new pts_result_file($result_xml);
|
||||
$result_file = new pts_result_file($public_id);
|
||||
$result_objects = $result_file->get_result_objects();
|
||||
|
||||
foreach($result_objects as $i => &$result_object)
|
||||
@@ -140,54 +139,49 @@ class auto_compare implements pts_option_interface
|
||||
continue;
|
||||
}
|
||||
$result_file->override_result_objects($result_objects);
|
||||
|
||||
array_push($compare_results, $result_file);
|
||||
pts_client::save_test_result($result_file->get_file_location(), $result_file->get_xml());
|
||||
$compare_results[] = $public_id;
|
||||
}
|
||||
}
|
||||
|
||||
if(count($compare_results) > 0)
|
||||
{
|
||||
$result_xml = pts_merge::merge_test_results_array($compare_results);
|
||||
$result_file = new pts_result_file(null, true);
|
||||
$result_file->merge($compare_results);
|
||||
$result_objects = $result_file->get_result_objects();
|
||||
$system_count = $result_file->get_system_count();
|
||||
$result_count = count($result_objects);
|
||||
$result_match_count = array();
|
||||
|
||||
if(count($compare_results) > 2)
|
||||
if($result_count > 3)
|
||||
{
|
||||
$result_file = new pts_result_file($result_xml);
|
||||
$result_objects = $result_file->get_result_objects();
|
||||
$system_count = $result_file->get_system_count();
|
||||
$result_count = count($result_objects);
|
||||
$result_match_count = array();
|
||||
|
||||
if($result_count > 3)
|
||||
foreach($result_objects as $i => &$result_object)
|
||||
{
|
||||
foreach($result_objects as $i => &$result_object)
|
||||
{
|
||||
$result_match_count[$i] = $result_object->test_result_buffer->get_count();
|
||||
}
|
||||
$result_match_count[$i] = $result_object->test_result_buffer->get_count();
|
||||
}
|
||||
|
||||
arsort($result_match_count);
|
||||
$biggest_size = pts_arrays::first_element($result_match_count);
|
||||
if($biggest_size == $system_count || $biggest_size > 3)
|
||||
arsort($result_match_count);
|
||||
$biggest_size = pts_arrays::first_element($result_match_count);
|
||||
if($biggest_size == $system_count || $biggest_size > 3)
|
||||
{
|
||||
foreach($result_match_count as $key => $value)
|
||||
{
|
||||
foreach($result_match_count as $key => $value)
|
||||
if($value < 2)
|
||||
{
|
||||
if($value < 2)
|
||||
{
|
||||
unset($result_objects[$key]);
|
||||
}
|
||||
unset($result_objects[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
$result_file->override_result_objects($result_objects);
|
||||
$result_xml = pts_merge::merge_test_results_array(array($result_file));
|
||||
}
|
||||
$result_file->override_result_objects($result_objects);
|
||||
}
|
||||
|
||||
pts_client::save_test_result('auto-comparison/composite.xml', $result_xml);
|
||||
pts_client::save_test_result('auto-comparison/composite.xml', $result_file->get_xml());
|
||||
}
|
||||
}
|
||||
|
||||
pts_test_installer::standard_install(array('auto-comparison'));
|
||||
pts_test_run_manager::standard_run(array('auto-comparison'));
|
||||
$test_run_manager = new pts_test_run_manager();
|
||||
$test_run_manager->standard_run(array('auto-comparison'));
|
||||
}
|
||||
protected static function system_component_to_format(&$system_info, &$to_array, $component_types, $allow_trim_extra = false)
|
||||
{
|
||||
@@ -203,10 +197,10 @@ class auto_compare implements pts_option_interface
|
||||
{
|
||||
$value_r = explode(' ', str_replace('-', ' ', $value));
|
||||
array_pop($value_r);
|
||||
array_push($to_array, $component_type . ':' . implode(' ', $value_r));
|
||||
$to_array[] = $component_type . ':' . implode(' ', $value_r);
|
||||
}
|
||||
|
||||
array_push($to_array, $component_type . ':' . $value);
|
||||
$to_array[] = $component_type . ':' . $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2014, Phoronix Media
|
||||
Copyright (C) 2014, Michael Larabel
|
||||
Copyright (C) 2014 - 2015, Phoronix Media
|
||||
Copyright (C) 2014 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,9 +33,7 @@ class auto_sort_result_file implements pts_option_interface
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
$result = $args[0];
|
||||
|
||||
$result_file = new pts_result_file($result);
|
||||
$result_file = new pts_result_file($args[0]);
|
||||
$result_file_identifiers = $result_file->get_system_identifiers();
|
||||
|
||||
if(count($result_file_identifiers) < 2)
|
||||
@@ -48,14 +46,8 @@ class auto_sort_result_file implements pts_option_interface
|
||||
echo PHP_EOL . 'Automatically sorting the results...' . PHP_EOL;
|
||||
|
||||
sort($result_file_identifiers);
|
||||
|
||||
foreach($result_file_identifiers as $identifier)
|
||||
{
|
||||
array_push($extract_selects, new pts_result_merge_select($result, $identifier));
|
||||
}
|
||||
|
||||
$ordered_result = pts_merge::merge_test_results_array($extract_selects);
|
||||
pts_client::save_test_result($args[0] . '/composite.xml', $ordered_result);
|
||||
$result_file->reorder_runs($result_file_identifiers);
|
||||
pts_client::save_test_result($result_file->get_file_location(), $result_file->get_xml());
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $args[0] . '/index.html');
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009, Phoronix Media
|
||||
Copyright (C) 2009, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,8 +33,9 @@ class batch_benchmark implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_installer::standard_install($r, pts_c::batch_mode);
|
||||
pts_test_run_manager::standard_run($r, pts_c::batch_mode);
|
||||
pts_test_installer::standard_install($r, false, true);
|
||||
$test_run_manager = new pts_test_run_manager(true);
|
||||
$test_run_manager->standard_run($r);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ class batch_install implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_installer::standard_install($r, pts_c::batch_mode);
|
||||
pts_test_installer::standard_install($r, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2012, Phoronix Media
|
||||
Copyright (C) 2009 - 2012, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,7 +33,8 @@ class batch_run implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_run_manager::standard_run($r, pts_c::batch_mode);
|
||||
$test_run_manager = new pts_test_run_manager(true);
|
||||
$test_run_manager->standard_run($r);
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2011, Phoronix Media
|
||||
Copyright (C) 2008 - 2011, Michael Larabel
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -42,7 +42,8 @@ class benchmark implements pts_option_interface
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_installer::standard_install($r);
|
||||
pts_test_run_manager::standard_run($r);
|
||||
$run_manager = new pts_test_run_manager();
|
||||
$run_manager->standard_run($r);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
Copyright (C) 2008 - 2016, Phoronix Media
|
||||
Copyright (C) 2008 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -37,8 +37,12 @@ class build_suite implements pts_option_interface
|
||||
$possible_suites = pts_openbenchmarking::available_suites();
|
||||
$possible_tests = pts_openbenchmarking::available_tests();
|
||||
|
||||
$suite_writer = new pts_test_suite_writer();
|
||||
$suite_writer->add_suite_information($suite_name, '1.0.0', $suite_maintainer, $suite_test_type, $suite_description);
|
||||
$new_suite = new pts_test_suite();
|
||||
$new_suite->set_title($suite_name);
|
||||
$new_suite->set_version('1.0.0');
|
||||
$new_suite->set_maintainer($suite_maintainer);
|
||||
$new_suite->set_suite_type($suite_test_type);
|
||||
$new_suite->set_description($suite_description);
|
||||
|
||||
foreach($r as $test_object)
|
||||
{
|
||||
@@ -51,12 +55,12 @@ class build_suite implements pts_option_interface
|
||||
for($i = 0; $i < count($args); $i++)
|
||||
{
|
||||
// Not binding the test profile version to this suite, otherwise change false to true
|
||||
$suite_writer->add_to_suite($test_object->get_identifier(false), $args[$i], $description[$i]);
|
||||
$new_suite->add_to_suite($test_object, $args[$i], $description[$i]);
|
||||
}
|
||||
}
|
||||
else if($test_object instanceof pts_test_suite)
|
||||
{
|
||||
$suite_writer->add_to_suite($test_object->get_identifier(), null, null);
|
||||
$new_suite->add_suite_tests_to_suite($test_object);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,12 +78,13 @@ class build_suite implements pts_option_interface
|
||||
|
||||
for($i = 0; $i < count($args); $i++)
|
||||
{
|
||||
$suite_writer->add_to_suite($test_to_add, $args[$i], $description[$i]);
|
||||
$new_suite->add_to_suite($test_profile, $args[$i], $description[$i]);
|
||||
}
|
||||
break;
|
||||
case 'Add Sub-Suite':
|
||||
$suite_to_add = pts_user_io::prompt_text_menu('Enter test suite', $possible_suites);
|
||||
$suite_writer->add_to_suite($suite_to_add, null, null);
|
||||
$test_suite = new pts_test_suite($suite_to_add);
|
||||
$new_suite->add_suite_tests_to_suite($test_suite);
|
||||
break;
|
||||
}
|
||||
echo PHP_EOL . 'Available Options:' . PHP_EOL;
|
||||
@@ -87,13 +92,9 @@ class build_suite implements pts_option_interface
|
||||
}
|
||||
while($input_option != 'Save & Exit');
|
||||
|
||||
$suite_identifier = $suite_writer->clean_save_name_string($suite_name);
|
||||
$save_to = PTS_TEST_SUITE_PATH . 'local/' . $suite_identifier . '/suite-definition.xml';
|
||||
mkdir(dirname($save_to));
|
||||
|
||||
if($suite_writer->save_xml($save_to) != false)
|
||||
if($new_suite->save_xml($suite_name) != false)
|
||||
{
|
||||
echo PHP_EOL . PHP_EOL . 'Saved To: ' . $save_to . PHP_EOL . 'To run this suite, type: phoronix-test-suite benchmark ' . $suite_identifier . PHP_EOL . PHP_EOL;
|
||||
echo PHP_EOL . PHP_EOL . 'Saved -- to run this suite, type: phoronix-test-suite benchmark ' . $new_suite->get_identifier() . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2010, Phoronix Media
|
||||
Copyright (C) 2008 - 2010, Michael Larabel
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -24,7 +24,7 @@ class clone_openbenchmarking_result implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'OpenBenchmarking.org';
|
||||
const doc_use_alias = 'clone-result';
|
||||
const doc_description = 'This option will download a local copy of a file that was saved to OpenBenchmarking.org, as long as a valid public ID is supplied. More than one ID can be specified and the results will then be merged.';
|
||||
const doc_description = 'This option will download a local copy of a file that was saved to OpenBenchmarking.org, as long as a valid public ID is supplied.';
|
||||
|
||||
public static function command_aliases()
|
||||
{
|
||||
@@ -42,14 +42,13 @@ class clone_openbenchmarking_result implements pts_option_interface
|
||||
foreach($args as $id)
|
||||
{
|
||||
$xml = pts_openbenchmarking::clone_openbenchmarking_result($id, true);
|
||||
array_push($result_files, new pts_result_file($xml));
|
||||
if($xml)
|
||||
{
|
||||
$result_file = new pts_result_file($xml);
|
||||
pts_client::save_test_result($id . '/composite.xml', $result_file->get_xml(), true);
|
||||
echo PHP_EOL . 'Result Saved To: ' . PTS_SAVE_RESULTS_PATH . $id . '/composite.xml' . PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
$writer = new pts_result_file_writer(null);
|
||||
pts_merge::merge_test_results_process($writer, $result_files);
|
||||
pts_client::save_test_result($args[0] . '/composite.xml', $writer->get_xml(), true);
|
||||
|
||||
echo PHP_EOL . 'Result Saved To: ' . PTS_SAVE_RESULTS_PATH . $args[0] . '/composite.xml' . PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2010 - 2013, Phoronix Media
|
||||
Copyright (C) 2010 - 2013, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class copy_run_in_result_file implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Result Management';
|
||||
const doc_description = 'This option is used if you wish to change an existing test run within a saved results file.';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'is_result_file'), null)
|
||||
);
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
$result = $r[0];
|
||||
|
||||
$result_file = new pts_result_file($result);
|
||||
$result_file_identifiers = $result_file->get_system_identifiers();
|
||||
|
||||
$copy_identifier = pts_user_io::prompt_text_menu('Select the test run to copy', $result_file_identifiers);
|
||||
$copy_identifier_new = pts_user_io::prompt_user_input('Enter the new identifier of the copied run');
|
||||
$merge_selects = array();
|
||||
|
||||
foreach($result_file_identifiers as $identifier)
|
||||
{
|
||||
$this_merge_select = new pts_result_merge_select($result, $identifier);
|
||||
array_push($merge_selects, $this_merge_select);
|
||||
|
||||
if($identifier == $copy_identifier)
|
||||
{
|
||||
$this_merge_select = new pts_result_merge_select($result, $identifier);
|
||||
$this_merge_select->rename_identifier($copy_identifier_new);
|
||||
array_push($merge_selects, $this_merge_select);
|
||||
}
|
||||
}
|
||||
|
||||
$extract_result = pts_merge::merge_test_results_array($merge_selects);
|
||||
pts_client::save_test_result($r[0] . '/composite.xml', $extract_result);
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $r[0] . '/index.html');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2014, Phoronix Media
|
||||
Copyright (C) 2009 - 2014, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -42,7 +42,9 @@ class debug_benchmark implements pts_option_interface
|
||||
// For debugging, usually running just once is sufficient, unless FORCE_TIMES_TO_RUN is preset
|
||||
pts_client::pts_set_environment_variable('FORCE_TIMES_TO_RUN', 1);
|
||||
// Run the test(s) in debug mode
|
||||
pts_test_run_manager::standard_run($r, pts_c::debug_mode);
|
||||
pts_client::set_debug_mode(true);
|
||||
$test_run_manager = new pts_test_run_manager();
|
||||
$test_run_manager->standard_run($r);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
45
pts-core/commands/debug_dependency_handler.php
Normal file
45
pts-core/commands/debug_dependency_handler.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2015, Phoronix Media
|
||||
Copyright (C) 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class debug_dependency_handler implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Other';
|
||||
const doc_description = 'This option is used for testing the distribution-specific dependency handler for external dependencies.';
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
$exdep_parser = new pts_exdep_generic_parser();
|
||||
foreach($exdep_parser->get_available_packages() as $pkg)
|
||||
{
|
||||
$pkg_data = $exdep_parser->get_package_data($pkg);
|
||||
$files = explode(' ', str_replace(array(' OR ', ', '), ' ', $pkg_data['file_check']));
|
||||
foreach($files as $file)
|
||||
{
|
||||
echo (is_array($file) ? implode(' ', $file) : $file) . ': ';
|
||||
$deps = pts_external_dependencies::packages_that_provide($file);
|
||||
echo (is_array($deps) ? implode(' ', $deps) : null) . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2010, Phoronix Media
|
||||
Copyright (C) 2009 - 2010, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,7 +33,8 @@ class debug_install implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_installer::standard_install($r, pts_c::debug_mode | pts_c::force_install);
|
||||
pts_client::set_debug_mode(true);
|
||||
pts_test_installer::standard_install($r, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
125
pts-core/commands/debug_render_test.php
Normal file
125
pts-core/commands/debug_render_test.php
Normal file
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2015 - 2017, Phoronix Media
|
||||
Copyright (C) 2015 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class debug_render_test implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Other';
|
||||
const doc_description = 'This option is used during the development of the Phoronix Test Suite software for testing of the result and graph rendering code-paths This option will download a large number of reference test results from LinuxBenchmarking.com.';
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
$render_dir = pts_client::temporary_directory() . '/pts-render-test-310815/';
|
||||
if(!is_file($render_dir . 'mega-render-test.tar.bz2'))
|
||||
{
|
||||
pts_file_io::mkdir($render_dir);
|
||||
pts_network::download_file('http://linuxbenchmarking.com/misc/mega-render-test-310815.tar.bz2', $render_dir . 'mega-render-test.tar.bz2');
|
||||
pts_compression::archive_extract($render_dir . 'mega-render-test.tar.bz2');
|
||||
}
|
||||
|
||||
if(!defined('PATH_TO_EXPORTED_PHOROMATIC_DATA'))
|
||||
{
|
||||
define('PATH_TO_EXPORTED_PHOROMATIC_DATA', $render_dir . 'mega-render-test-310815/');
|
||||
}
|
||||
|
||||
error_reporting(E_ALL);
|
||||
ini_set('memory_limit','2048M');
|
||||
|
||||
$export_index_json = file_get_contents(PATH_TO_EXPORTED_PHOROMATIC_DATA . 'export-index.json');
|
||||
$export_index_json = json_decode($export_index_json, true);
|
||||
$dump_size = 0;
|
||||
$start = microtime(true);
|
||||
foreach(array_keys($export_index_json['phoromatic']) as $REQUESTED)
|
||||
{
|
||||
$this_render_test = time();
|
||||
$tracker = &$export_index_json['phoromatic'][$REQUESTED];
|
||||
$triggers = $tracker['triggers'];
|
||||
echo PHP_EOL . 'STARTING RENDER TEST ON: ' . $REQUESTED . ' (' . count($triggers) . ' Triggers)' . PHP_EOL;
|
||||
$length = count($tracker['triggers']);
|
||||
$result_files = array();
|
||||
|
||||
foreach($triggers as $trigger)
|
||||
{
|
||||
$results_for_trigger = glob(PATH_TO_EXPORTED_PHOROMATIC_DATA . '/' . $REQUESTED . '/' . $trigger . '/*/composite.xml');
|
||||
echo '.';
|
||||
if($results_for_trigger == false)
|
||||
continue;
|
||||
|
||||
foreach($results_for_trigger as $composite_xml)
|
||||
{
|
||||
// Add to result file
|
||||
$system_name = basename(dirname($composite_xml)) . ': ' . $trigger;
|
||||
$result_files[] = new pts_result_merge_select($composite_xml, null, $system_name);
|
||||
}
|
||||
}
|
||||
echo 'STARTING MERGE; ';
|
||||
$result_file = new pts_result_file(null, true);
|
||||
$result_file->merge($result_files);
|
||||
echo 'MAKING NEW RESULT FILE; ';
|
||||
$extra_attributes = array('reverse_result_buffer' => true, 'force_simple_keys' => true, 'force_line_graph_compact' => true, 'force_tracking_line_graph' => true);
|
||||
//$extra_attributes['normalize_result_buffer'] = true;
|
||||
|
||||
$intent = null;
|
||||
//$table = new pts_ResultFileTable($result_file, $intent);
|
||||
//echo '<p style="text-align: center; overflow: auto;" class="result_object">' . pts_render::render_graph_inline_embed($table, $result_file, $extra_attributes) . '</p>';
|
||||
echo 'STARTING RESULT LOOP; ';
|
||||
$html_dump = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
</head>
|
||||
<body>';
|
||||
foreach($result_file->get_result_objects((isset($_POST['show_only_changed_results']) ? 'ONLY_CHANGED_RESULTS' : -1)) as $i => $result_object)
|
||||
{
|
||||
echo $result_object->test_profile->get_title() . ' ';
|
||||
$html_dump .= '<h3>' . $result_object->get_arguments_description() . '</h3>';
|
||||
$html_dump .= pts_render::render_graph_inline_embed($result_object, $result_file, $extra_attributes);
|
||||
unset($result_object);
|
||||
}
|
||||
|
||||
$table = new pts_ResultFileSystemsTable($result_file);
|
||||
$html_dump .= pts_render::render_graph_inline_embed($table, $result_file, $extra_attributes);
|
||||
echo PHP_EOL . PHP_EOL . 'RENDER TEST ON: ' . $REQUESTED . ' TOOK ' . (time() - $this_render_test) . PHP_EOL;
|
||||
$dump_size += strlen($html_dump);
|
||||
file_put_contents(PATH_TO_EXPORTED_PHOROMATIC_DATA . $REQUESTED . '.html', $html_dump . '</body></html>');
|
||||
}
|
||||
|
||||
if(getenv('DEBUG_RENDER_TEST_LOCAL_TOO') != false)
|
||||
{
|
||||
echo PHP_EOL . 'LOCAL RENDER TEST TIME' . PHP_EOL;
|
||||
$extra_graph_attributes = null;
|
||||
foreach(pts_client::saved_test_results() as $saved_result)
|
||||
{
|
||||
$save_to_dir = pts_client::setup_test_result_directory($saved_result);
|
||||
$generated_graphs = pts_client::generate_result_file_graphs($saved_result, $save_to_dir, $extra_graph_attributes);
|
||||
echo $saved_result . ': ' . count($generated_graphs) . PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
echo PHP_EOL . 'RENDER TEST TOOK: ' . (time() - $start) . PHP_EOL . PHP_EOL;
|
||||
echo PHP_EOL . 'PEAK MEMORY USAGE: ' . round(memory_get_peak_usage(true) / 1048576, 3) . ' MB';
|
||||
echo PHP_EOL . 'PEAK MEMORY USAGE (emalloc): ' . round(memory_get_peak_usage() / 1048576, 3) . ' MB';
|
||||
echo PHP_EOL . 'TOTAL FILE SIZE: ' . ceil($dump_size / 1000) . ' KB';
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
48
pts-core/commands/debug_result_parser.php
Normal file
48
pts-core/commands/debug_result_parser.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2017, Phoronix Media
|
||||
Copyright (C) 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class debug_result_parser implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Asset Creation';
|
||||
const doc_description = 'This option is intended for use by test profile writers and is used for debugging a result parser. No test execution is done, but there must already be PTS-generated .log files present within the test\'s installation directory.';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check('VARIABLE_LENGTH', array('pts_types', 'identifier_to_object'), null)
|
||||
);
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
// Make sure you're debugging the latest test script...
|
||||
//pts_test_installer::standard_install($r);
|
||||
// For debugging, usually running just once is sufficient, unless FORCE_TIMES_TO_RUN is preset
|
||||
pts_client::pts_set_environment_variable('FORCE_TIMES_TO_RUN', 1);
|
||||
// Run the test(s) in debug mode
|
||||
pts_client::set_debug_mode(true);
|
||||
$test_run_manager = new pts_test_run_manager();
|
||||
$test_run_manager->DEBUG_no_test_execution_just_result_parse = true;
|
||||
$test_run_manager->standard_run($r);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2013, Phoronix Media
|
||||
Copyright (C) 2013, Michael Larabel
|
||||
Copyright (C) 2013 - 2016, Phoronix Media
|
||||
Copyright (C) 2013 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -27,16 +27,19 @@ class debug_self_test implements pts_option_interface
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
define('PHOROMATIC_PROCESS', true);
|
||||
$commands = array(
|
||||
'detailed_system_info' => null,
|
||||
'list_available_tests' => null,
|
||||
'list_available_suites' => null,
|
||||
'info' => array('xonotic'),
|
||||
'clone_openbenchmarking_result' => array('1107247-LI-MESACOMMI48'),
|
||||
// 'refresh_graphs' => array('1107247-LI-MESACOMMI48'),
|
||||
'info' => array('pts/all'),
|
||||
'clone_openbenchmarking_result' => array('1107247-LI-MESACOMMI48', '1509040-HA-GCCINTELS17', '1508201-HA-GTX95073337', '1508233-HA-INTELSKYL16'),
|
||||
'refresh_graphs' => array('1107247-LI-MESACOMMI48'),
|
||||
'result_file_to_text' => array('1107247-LI-MESACOMMI48'),
|
||||
'merge_results' => array('1107247-LI-MESACOMMI48', '1509040-HA-GCCINTELS17', '1508201-HA-GTX95073337', '1508233-HA-INTELSKYL16'),
|
||||
'diagnostics' => null,
|
||||
'dump_possible_options' => null,
|
||||
'debug_render_test' => null,
|
||||
);
|
||||
|
||||
$individual_times = array();
|
||||
@@ -54,7 +57,7 @@ class debug_self_test implements pts_option_interface
|
||||
$c_start = microtime(true);
|
||||
pts_client::execute_command($command, $args);
|
||||
$c_finish = microtime(true);
|
||||
array_push($individual_times[$command], ($c_finish - $c_start));
|
||||
$individual_times[$command][] = ($c_finish - $c_start);
|
||||
}
|
||||
}
|
||||
$finish = microtime(true);
|
||||
@@ -68,9 +71,9 @@ class debug_self_test implements pts_option_interface
|
||||
echo strtoupper($component) . ': ' . (str_repeat(' ', $longest_c - strlen($component))) . pts_math::set_precision(round(array_sum($times) / count($times), 3), 3) . ' seconds' . PHP_EOL;
|
||||
}
|
||||
|
||||
echo PHP_EOL . 'ELAPSED TIME: ' . (str_repeat(' ', $longest_c - strlen('ELAPSED TIME'))) . round($finish - $start, 3) . ' seconds';
|
||||
echo PHP_EOL . 'TOTAL ELAPSED TIME: ' . (str_repeat(' ', $longest_c - strlen('ELAPSED TIME'))) . round($finish - $start, 3) . ' seconds';
|
||||
echo PHP_EOL . 'PEAK MEMORY USAGE: ' . (str_repeat(' ', $longest_c - strlen('PEAK MEMORY USAGE'))) . round(memory_get_peak_usage(true) / 1048576, 3) . ' MB';
|
||||
echo PHP_EOL . 'PEAK MEMORY USAGE (emalloc): ' . (str_repeat(' ', $longest_c - strlen('PEAK MEMORY USAGE (emalloc)'))) . round(memory_get_peak_usage() / 1048576, 3) . ' MB';
|
||||
echo PHP_EOL . 'PEAK MEMORY USAGE EMALLOC: ' . (str_repeat(' ', $longest_c - strlen('PEAK MEMORY USAGE (emalloc)'))) . round(memory_get_peak_usage() / 1048576, 3) . ' MB';
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2010, Phoronix Media
|
||||
Copyright (C) 2010, Michael Larabel
|
||||
Copyright (C) 2010 - 2015, Phoronix Media
|
||||
Copyright (C) 2010 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -28,7 +28,7 @@ class debug_test_download_links implements pts_option_interface
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'is_test_or_suite'), null)
|
||||
new pts_argument_check(0, array('pts_types', 'identifier_to_object'), null)
|
||||
);
|
||||
}
|
||||
public static function run($r)
|
||||
@@ -48,7 +48,7 @@ class debug_test_download_links implements pts_option_interface
|
||||
|
||||
if($file_pointer == false)
|
||||
{
|
||||
echo PHP_EOL . 'DOWNLOAD: ' . $test_file_download->get_filename() . ' / ' . $url . PHP_EOL;
|
||||
echo PHP_EOL . 'BAD URL: ' . $test_file_download->get_filename() . ' / ' . $url . PHP_EOL;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2010, Phoronix Media
|
||||
Copyright (C) 2009 - 2010, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -34,7 +34,8 @@ class default_benchmark implements pts_option_interface
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_installer::standard_install($r);
|
||||
pts_test_run_manager::standard_run($r, pts_c::defaults_mode);
|
||||
$test_run_manager = new pts_test_run_manager(false, 2);
|
||||
$test_run_manager->standard_run($r);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2010, Phoronix Media
|
||||
Copyright (C) 2009 - 2010, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,7 +33,8 @@ class default_run implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_run_manager::standard_run($r, pts_c::defaults_mode);
|
||||
$test_run_manager = new pts_test_run_manager(false, 2);
|
||||
$test_run_manager->standard_run($r);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2011 - 2015, Phoronix Media
|
||||
Copyright (C) 2011 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class detailed_system_info implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'System';
|
||||
const doc_description = 'Display detailed information about the installed system hardware and software information as detected by the Phoronix Test Suite Phodevi Library.';
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
pts_client::$display->generic_heading('System Information');
|
||||
echo 'Hardware:' . PHP_EOL . phodevi::system_hardware(true) . PHP_EOL . PHP_EOL;
|
||||
echo 'Software:' . PHP_EOL . phodevi::system_software(true) . PHP_EOL . PHP_EOL;
|
||||
|
||||
//
|
||||
// Processor Information
|
||||
//
|
||||
|
||||
$cpu_flags = phodevi_cpu::get_cpu_flags();
|
||||
echo PHP_EOL . 'PROCESSOR:' . PHP_EOL . PHP_EOL;
|
||||
echo 'Core Count: ' . phodevi_cpu::cpuinfo_core_count() . PHP_EOL;
|
||||
echo 'Thread Count: ' . phodevi_cpu::cpuinfo_thread_count() . PHP_EOL;
|
||||
echo 'Cache Size: ' . phodevi_cpu::cpuinfo_cache_size() . ' KB' . PHP_EOL;
|
||||
|
||||
echo 'Instruction Set Extensions: ' . phodevi_cpu::instruction_set_extensions() . PHP_EOL;
|
||||
echo 'AES Encryption: ' . ($cpu_flags & phodevi_cpu::get_cpu_feature_constant('aes') ? 'YES' : 'NO') . PHP_EOL;
|
||||
echo 'Energy Performance Bias: ' . ($cpu_flags & phodevi_cpu::get_cpu_feature_constant('epb') ? 'YES' : 'NO') . PHP_EOL;
|
||||
echo 'Virtualization: ' . (phodevi_cpu::virtualization_technology() ? phodevi_cpu::virtualization_technology() : 'NO') . PHP_EOL;
|
||||
|
||||
// Other info
|
||||
foreach(pts_arrays::to_array(pts_test_run_manager::pull_test_notes(true)) as $test_note_head => $test_note)
|
||||
{
|
||||
echo ucwords(str_replace('-', ' ', $test_note_head)) . ': ' . $test_note . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -24,15 +24,15 @@ class dump_documentation implements pts_option_interface
|
||||
{
|
||||
public static function run($r)
|
||||
{
|
||||
$pdf = new pts_pdf_template(pts_title(false), 'Test Client Documentation');
|
||||
$html_doc = new pts_html_template(pts_title(false), 'Test Client Documentation');
|
||||
$pdf = new pts_pdf_template(pts_core::program_title(false), 'Test Client Documentation');
|
||||
$html_doc = new pts_html_template(pts_core::program_title(false), 'Test Client Documentation');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Image(PTS_CORE_STATIC_PATH . 'images/pts-308x160.png', 69, 85, 73, 38, 'PNG', 'http://www.phoronix-test-suite.com/');
|
||||
$pdf->Ln(120);
|
||||
$pdf->WriteStatement('www.phoronix-test-suite.com', 'C', 'http://www.phoronix-test-suite.com/');
|
||||
$pdf->Ln(15);
|
||||
$pdf->WriteBigHeaderCenter(pts_title(true));
|
||||
$pdf->WriteBigHeaderCenter(pts_core::program_title(true));
|
||||
$pdf->WriteHeaderCenter('User Manual');
|
||||
//$pdf->WriteText($result_file->get_description());
|
||||
|
||||
@@ -260,8 +260,8 @@ class dump_documentation implements pts_option_interface
|
||||
file_put_contents(PTS_PATH . 'README.md', $readme);
|
||||
|
||||
// Phoromatic Documentation
|
||||
$pdf = new pts_pdf_template(pts_title(false), 'Phoromatic Documentation');
|
||||
$html_doc = new pts_html_template(pts_title(false), 'Phoromatic Documentation');
|
||||
$pdf = new pts_pdf_template(pts_core::program_title(false), 'Phoromatic Documentation');
|
||||
$html_doc = new pts_html_template(pts_core::program_title(false), 'Phoromatic Documentation');
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Image(PTS_CORE_STATIC_PATH . 'images/pts-308x160.png', 69, 85, 73, 38, 'PNG', 'http://www.phoronix-test-suite.com/');
|
||||
@@ -270,7 +270,7 @@ class dump_documentation implements pts_option_interface
|
||||
$pdf->Ln(15);
|
||||
$pdf->Image(PTS_CORE_STATIC_PATH . 'images/phoromatic-390x56.png', 55, 250, 0, 0, 'PNG', 'http://www.phoronix-test-suite.com/');
|
||||
//$pdf->Image(PTS_CORE_STATIC_PATH . 'images/phoromatic-390x56.png', 69, 85, 73, 38, 'PNG', 'http://www.phoromatic.com/');
|
||||
$pdf->WriteBigHeaderCenter(pts_title(true));
|
||||
$pdf->WriteBigHeaderCenter(pts_core::program_title(true));
|
||||
$pdf->WriteHeaderCenter('Phoromatic User Manual');
|
||||
$pdf->html_to_pdf(PTS_PATH . 'documentation/phoromatic.html');
|
||||
$pdf_file = PTS_PATH . 'documentation/phoromatic.pdf';
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2010, Phoronix Media
|
||||
Copyright (C) 2009 - 2010, Michael Larabel
|
||||
Copyright (C) 2009 - 2016, Phoronix Media
|
||||
Copyright (C) 2009 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -32,7 +32,7 @@ class dump_possible_options implements pts_option_interface
|
||||
|
||||
if(!in_array(pts_strings::first_in_string($name, '-'), array('dump', 'debug', 'task')))
|
||||
{
|
||||
array_push($options, $name);
|
||||
$options[] = $name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2014, Phoronix Media
|
||||
Copyright (C) 2014, Michael Larabel
|
||||
Copyright (C) 2014 - 2015, Phoronix Media
|
||||
Copyright (C) 2014 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -38,30 +38,21 @@ class edit_result_file implements pts_option_interface
|
||||
public static function run($r)
|
||||
{
|
||||
$result_file = new pts_result_file($r[0]);
|
||||
|
||||
$result_title = $result_file->get_title();
|
||||
echo PHP_EOL . 'Current Result Title: ' . $result_title . PHP_EOL;
|
||||
$new_title = pts_user_io::prompt_user_input('Enter New Title');
|
||||
|
||||
if(!empty($new_title))
|
||||
{
|
||||
$result_title = $new_title;
|
||||
$result_file->set_title($new_title);
|
||||
}
|
||||
|
||||
$result_description = $result_file->get_description();
|
||||
echo PHP_EOL . 'Current Result Description: ' . $result_description . PHP_EOL;
|
||||
$new_description = pts_user_io::prompt_user_input('Enter New Description');
|
||||
|
||||
if(!empty($new_description))
|
||||
{
|
||||
$result_description = $new_description;
|
||||
$result_file->set_description($new_description);
|
||||
}
|
||||
|
||||
$result_file_writer = new pts_result_file_writer();
|
||||
$result_file_writer->add_result_file_meta_data($result_file, null, $new_title, $new_description);
|
||||
$result_file_writer->add_system_information_from_result_file($result_file);
|
||||
$result_file_writer->add_results_from_result_file($result_file);
|
||||
pts_client::save_test_result($r[0] . '/composite.xml', $result_file_writer->get_xml());
|
||||
pts_client::save_test_result($result_file->get_file_location(), $result_file->get_xml());
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $r[0] . '/index.html');
|
||||
}
|
||||
}
|
||||
|
||||
63
pts-core/commands/estimate_run_time.php
Normal file
63
pts-core/commands/estimate_run_time.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2017, Phoronix Media
|
||||
Copyright (C) 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class estimate_run_time implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Information';
|
||||
const doc_description = 'This option will provide estimates for test run-time / length.';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'identifier_to_object'))
|
||||
);
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
echo PHP_EOL;
|
||||
|
||||
if($args[0] == 'pts/all' || empty($args))
|
||||
{
|
||||
$args = pts_openbenchmarking::available_tests(false);
|
||||
}
|
||||
|
||||
$tests = array();
|
||||
$total_time = 0;
|
||||
$test_count = 0;
|
||||
foreach($args as $arg)
|
||||
{
|
||||
foreach(pts_types::identifiers_to_test_profile_objects($arg) as $t)
|
||||
{
|
||||
$tests[] = array($t->get_identifier(), pts_strings::format_time($t->get_estimated_run_time()));
|
||||
$total_time += $t->get_estimated_run_time();
|
||||
$test_count++;
|
||||
}
|
||||
}
|
||||
if($test_count > 1 && $total_time > 0)
|
||||
{
|
||||
echo pts_user_io::display_text_table($tests);
|
||||
echo PHP_EOL . PHP_EOL . 'TOTAL TIME ESTIMATE: ' . pts_strings::format_time($total_time) . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2013, Phoronix Media
|
||||
Copyright (C) 2009 - 2013, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,9 +33,7 @@ class extract_from_result_file implements pts_option_interface
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
$result = $args[0];
|
||||
|
||||
$result_file = new pts_result_file($result);
|
||||
$result_file = new pts_result_file($args[0]);
|
||||
$result_file_identifiers = $result_file->get_system_identifiers();
|
||||
|
||||
if(count($result_file_identifiers) < 2)
|
||||
@@ -45,12 +43,8 @@ class extract_from_result_file implements pts_option_interface
|
||||
}
|
||||
|
||||
$extract_identifiers = pts_strings::comma_explode(pts_user_io::prompt_text_menu('Select the test run(s) to extract', $result_file_identifiers, true));
|
||||
$extract_selects = array();
|
||||
|
||||
foreach($extract_identifiers as $extract_identifier)
|
||||
{
|
||||
array_push($extract_selects, new pts_result_merge_select($result, $extract_identifier));
|
||||
}
|
||||
$remove_identifiers = array_diff($result_file_identifiers, $extract_identifiers);
|
||||
$result_file->remove_run($remove_identifiers);
|
||||
|
||||
do
|
||||
{
|
||||
@@ -58,10 +52,9 @@ class extract_from_result_file implements pts_option_interface
|
||||
$extract_to = pts_user_io::read_user_input();
|
||||
$extract_to = pts_test_run_manager::clean_save_name($extract_to);
|
||||
}
|
||||
while(empty($extract_to) || pts_result_file::is_test_result_file($extract_to));
|
||||
while(empty($extract_to));
|
||||
|
||||
$extract_result = call_user_func_array(array('pts_merge', 'merge_test_results'), $extract_selects);
|
||||
pts_client::save_test_result($extract_to . '/composite.xml', $extract_result);
|
||||
pts_client::save_test_result($extract_to . '/composite.xml', $result_file->get_xml());
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $extract_to . '/index.html');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
Copyright (C) 2009 - 2016, Phoronix Media
|
||||
Copyright (C) 2009 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -43,9 +43,14 @@ class finish_run implements pts_option_interface
|
||||
$system_identifiers = $result_file->get_system_identifiers();
|
||||
$test_positions = array();
|
||||
|
||||
$pos = 0;
|
||||
foreach($result_file->get_result_objects() as $result_object)
|
||||
foreach($result_file->get_result_objects() as $pos => $result_object)
|
||||
{
|
||||
// Don't load null test profile identifier tests into the run queue
|
||||
if($result_object->test_profile->get_identifier() == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$this_result_object_identifiers = $result_object->test_result_buffer->get_identifiers();
|
||||
|
||||
foreach($system_identifiers as $system_identifier)
|
||||
@@ -57,13 +62,10 @@ class finish_run implements pts_option_interface
|
||||
$test_positions[$system_identifier] = array();
|
||||
}
|
||||
|
||||
array_push($test_positions[$system_identifier], $pos);
|
||||
$test_positions[$system_identifier][] = $pos;
|
||||
}
|
||||
}
|
||||
|
||||
$pos++;
|
||||
}
|
||||
|
||||
$incomplete_identifiers = array_keys($test_positions);
|
||||
|
||||
if(count($incomplete_identifiers) == 0)
|
||||
@@ -73,15 +75,14 @@ class finish_run implements pts_option_interface
|
||||
}
|
||||
|
||||
$selected = pts_user_io::prompt_text_menu('Select which incomplete test run you would like to finish', $incomplete_identifiers);
|
||||
$test_run_manager = new pts_test_run_manager();
|
||||
|
||||
// Now run it
|
||||
if(pts_test_run_manager::initial_checks($args[0]) == false)
|
||||
if($test_run_manager->initial_checks($args[0]) == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$test_run_manager = new pts_test_run_manager(pts_c::is_recovering);
|
||||
|
||||
// Load the tests to run
|
||||
if($test_run_manager->load_result_file_to_run($save_name, $selected, $result_file, $test_positions[$selected]) == false)
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2014, Phoronix Media
|
||||
Copyright (C) 2009 - 2014, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,7 +33,7 @@ class force_install implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_installer::standard_install($r, pts_c::force_install);
|
||||
pts_test_installer::standard_install($r, true);
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
class gui implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Web / GUI Support';
|
||||
const doc_description = 'Launch the Phoronix Test Suite HTML5 web user-interface in the local GUI mode (no remote web support) and attempt to auto-launch the web-browser.';
|
||||
const doc_description = 'Launch the Phoronix Test Suite HTML5 web user-interface in the local GUI mode (no remote web support) and attempt to auto-launch the web-browser. THIS FEATURE IS CURRENTLY EXPERIMENTAL AND NO LONGER ACTIVE DEVELOPMENT. See Phoronix Test Suite Phoromatic as an alternative web UI approach.';
|
||||
|
||||
public static function command_aliases()
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2010 - 2011, Phoronix Media
|
||||
Copyright (C) 2010 - 2011, Michael Larabel
|
||||
Copyright (C) 2010 - 2017, Phoronix Media
|
||||
Copyright (C) 2010 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -27,7 +27,7 @@ class help implements pts_option_interface
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
echo PHP_EOL . pts_title(true) . PHP_EOL . PHP_EOL;
|
||||
echo PHP_EOL . pts_client::cli_colored_text(pts_core::program_title(true), 'green', true) . PHP_EOL . PHP_EOL;
|
||||
echo pts_documentation::basic_description() . PHP_EOL . PHP_EOL . 'View the included PDF / HTML documentation or visit http://www.phoronix-test-suite.com/ for full details.' . PHP_EOL;
|
||||
$options = pts_documentation::client_commands_array();
|
||||
|
||||
@@ -38,13 +38,15 @@ class help implements pts_option_interface
|
||||
continue;
|
||||
}
|
||||
|
||||
echo PHP_EOL . strtoupper($section) . PHP_EOL . PHP_EOL;
|
||||
echo PHP_EOL . pts_client::cli_just_bold(strtoupper($section)) . PHP_EOL . PHP_EOL;
|
||||
|
||||
sort($contents);
|
||||
$tabled = array();
|
||||
foreach($contents as &$option)
|
||||
{
|
||||
echo ' ' . trim($option[0] . ' ' . implode(' ', $option[1])) . PHP_EOL;
|
||||
$tabled[] = array($option[0], pts_client::cli_colored_text(implode(' ', $option[1]), 'gray'));
|
||||
}
|
||||
echo pts_user_io::display_text_table($tabled, ' ') . PHP_EOL;
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2012, Phoronix Media
|
||||
Copyright (C) 2008 - 2012, Michael Larabel
|
||||
Copyright (C) 2008 - 2017, Phoronix Media
|
||||
Copyright (C) 2008 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -28,123 +28,147 @@ class info implements pts_option_interface
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'identifier_to_object'), 'object')
|
||||
new pts_argument_check(0, array('pts_types', 'identifier_to_object'))
|
||||
);
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
echo PHP_EOL;
|
||||
|
||||
if($args['object'] instanceof pts_test_suite)
|
||||
if($args[0] == 'pts/all')
|
||||
{
|
||||
pts_client::$display->generic_heading($args['object']->get_title());
|
||||
echo 'Run Identifier: ' . $args['object']->get_identifier() . PHP_EOL;
|
||||
echo 'Suite Version: ' . $args['object']->get_version() . PHP_EOL;
|
||||
echo 'Maintainer: ' . $args['object']->get_maintainer() . PHP_EOL;
|
||||
echo 'Suite Type: ' . $args['object']->get_suite_type() . PHP_EOL;
|
||||
echo 'Unique Tests: ' . $args['object']->get_unique_test_count() . PHP_EOL;
|
||||
echo 'Suite Description: ' . $args['object']->get_description() . PHP_EOL;
|
||||
echo PHP_EOL;
|
||||
echo $args['object']->pts_format_contained_tests_string();
|
||||
echo PHP_EOL;
|
||||
$args = pts_openbenchmarking::available_tests(false);
|
||||
}
|
||||
else if($args['object'] instanceof pts_test_profile)
|
||||
|
||||
foreach($args as $arg)
|
||||
{
|
||||
$test_title = $args['object']->get_title();
|
||||
$test_version = $args['object']->get_app_version();
|
||||
if(!empty($test_version))
|
||||
$o = pts_types::identifier_to_object($arg);
|
||||
|
||||
if($o instanceof pts_test_suite)
|
||||
{
|
||||
$test_title .= ' ' . $test_version;
|
||||
}
|
||||
|
||||
pts_client::$display->generic_heading($test_title);
|
||||
echo 'Run Identifier: ' . $args['object']->get_identifier() . PHP_EOL;
|
||||
echo 'Profile Version: ' . $args['object']->get_test_profile_version() . PHP_EOL;
|
||||
echo 'Maintainer: ' . $args['object']->get_maintainer() . PHP_EOL;
|
||||
echo 'Test Type: ' . $args['object']->get_test_hardware_type() . PHP_EOL;
|
||||
echo 'Software Type: ' . $args['object']->get_test_software_type() . PHP_EOL;
|
||||
echo 'License Type: ' . $args['object']->get_license() . PHP_EOL;
|
||||
echo 'Test Status: ' . $args['object']->get_status() . PHP_EOL;
|
||||
echo 'Project Web-Site: ' . $args['object']->get_project_url() . PHP_EOL;
|
||||
if($args['object']->get_estimated_run_time() > 1)
|
||||
{
|
||||
echo 'Estimated Run-Time: ' . $args['object']->get_estimated_run_time() . ' Seconds' . PHP_EOL;
|
||||
}
|
||||
|
||||
$download_size = $args['object']->get_download_size();
|
||||
if(!empty($download_size))
|
||||
{
|
||||
echo 'Download Size: ' . $download_size . ' MB' . PHP_EOL;
|
||||
}
|
||||
|
||||
$environment_size = $args['object']->get_environment_size();
|
||||
if(!empty($environment_size))
|
||||
{
|
||||
echo 'Environment Size: ' . $environment_size . ' MB' . PHP_EOL;
|
||||
}
|
||||
|
||||
echo PHP_EOL . 'Description: ' . $args['object']->get_description() . PHP_EOL;
|
||||
|
||||
if($args['object']->test_installation != false)
|
||||
{
|
||||
$last_run = $args['object']->test_installation->get_last_run_date();
|
||||
$last_run = $last_run == '0000-00-00' ? 'Never' : $last_run;
|
||||
|
||||
$avg_time = $args['object']->test_installation->get_average_run_time();
|
||||
$avg_time = !empty($avg_time) ? pts_strings::format_time($avg_time, 'SECONDS') : 'N/A';
|
||||
$latest_time = $args['object']->test_installation->get_latest_run_time();
|
||||
$latest_time = !empty($latest_time) ? pts_strings::format_time($latest_time, 'SECONDS') : 'N/A';
|
||||
|
||||
echo PHP_EOL . 'Test Installed: Yes' . PHP_EOL;
|
||||
echo 'Last Run: ' . $last_run . PHP_EOL;
|
||||
|
||||
if($last_run != 'Never')
|
||||
pts_client::$display->generic_heading($o->get_title());
|
||||
echo pts_client::cli_just_bold('Run Identifier: ') . $o->get_identifier() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Suite Version: ') . $o->get_version() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Maintainer: ') . $o->get_maintainer() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Suite Type: ') . $o->get_suite_type() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Unique Tests: ') . $o->get_unique_test_count() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Suite Description: ') . $o->get_description() . PHP_EOL;
|
||||
echo PHP_EOL . pts_client::cli_just_bold('Contained Tests: ') . PHP_EOL;
|
||||
$test_table = array();
|
||||
foreach($o->get_contained_test_result_objects() as $result_obj)
|
||||
{
|
||||
if($args['object']->test_installation->get_run_count() > 1)
|
||||
{
|
||||
echo 'Average Run-Time: ' . $avg_time . PHP_EOL;
|
||||
}
|
||||
|
||||
echo 'Latest Run-Time: ' . $latest_time . PHP_EOL;
|
||||
echo 'Times Run: ' . $args['object']->test_installation->get_run_count() . PHP_EOL;
|
||||
$test_table[] = array($result_obj->test_profile->get_title(), $result_obj->get_arguments_description());
|
||||
}
|
||||
echo pts_user_io::display_text_table($test_table, ' ', 1);
|
||||
echo PHP_EOL;
|
||||
}
|
||||
else
|
||||
else if($o instanceof pts_test_profile)
|
||||
{
|
||||
echo PHP_EOL . 'Test Installed: No' . PHP_EOL;
|
||||
}
|
||||
$test_title = $o->get_title();
|
||||
$test_version = $o->get_app_version();
|
||||
if(!empty($test_version))
|
||||
{
|
||||
$test_title .= ' ' . $test_version;
|
||||
}
|
||||
|
||||
$dependencies = $args['object']->get_dependencies();
|
||||
if(!empty($dependencies) && !empty($dependencies[0]))
|
||||
{
|
||||
echo PHP_EOL . 'Software Dependencies:' . PHP_EOL;
|
||||
echo pts_user_io::display_text_list($args['object']->get_dependency_names());
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
else if($args['object'] instanceof pts_result_file)
|
||||
{
|
||||
echo 'Title: ' . $args['object']->get_title() . PHP_EOL . 'Identifier: ' . $args['object']->get_identifier() . PHP_EOL;
|
||||
echo PHP_EOL . 'Test Result Identifiers:' . PHP_EOL;
|
||||
echo pts_user_io::display_text_list($args['object']->get_system_identifiers());
|
||||
pts_client::$display->generic_heading($test_title);
|
||||
echo pts_client::cli_just_bold('Run Identifier: ') . $o->get_identifier() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Profile Version: ') . $o->get_test_profile_version() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Maintainer: ') . $o->get_maintainer() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Test Type: ') . $o->get_test_hardware_type() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Software Type: ') . $o->get_test_software_type() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('License Type: ') . $o->get_license() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Test Status: ') . $o->get_status() . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Project Web-Site: ') . $o->get_project_url() . PHP_EOL;
|
||||
if($o->get_estimated_run_time() > 1)
|
||||
{
|
||||
echo pts_client::cli_just_bold('Estimated Run-Time: ') . $o->get_estimated_run_time() . ' Seconds' . PHP_EOL;
|
||||
}
|
||||
|
||||
if(count(($tests = $args['object']->get_unique_test_titles())) > 0)
|
||||
{
|
||||
echo PHP_EOL . 'Contained Tests:' . PHP_EOL;
|
||||
echo pts_user_io::display_text_list($tests);
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
else if($args['object'] instanceof pts_virtual_test_suite)
|
||||
{
|
||||
pts_client::$display->generic_heading($args['object']->get_title());
|
||||
echo 'Virtual Suite Description: ' . $args['object']->get_description() . PHP_EOL . PHP_EOL;
|
||||
$download_size = $o->get_download_size();
|
||||
if(!empty($download_size))
|
||||
{
|
||||
echo pts_client::cli_just_bold('Download Size: ') . $download_size . ' MB' . PHP_EOL;
|
||||
}
|
||||
|
||||
foreach($args['object']->get_contained_test_profiles() as $test_profile)
|
||||
{
|
||||
echo '- ' . $test_profile . PHP_EOL;
|
||||
$environment_size = $o->get_environment_size();
|
||||
if(!empty($environment_size))
|
||||
{
|
||||
echo pts_client::cli_just_bold('Environment Size: ') . $environment_size . ' MB' . PHP_EOL;
|
||||
}
|
||||
|
||||
echo PHP_EOL . pts_client::cli_just_bold('Description: ') . $o->get_description() . PHP_EOL;
|
||||
|
||||
if($o->test_installation != false)
|
||||
{
|
||||
$last_run = $o->test_installation->get_last_run_date();
|
||||
$last_run = $last_run == '0000-00-00' ? 'Never' : $last_run;
|
||||
|
||||
$avg_time = $o->test_installation->get_average_run_time();
|
||||
$avg_time = !empty($avg_time) ? pts_strings::format_time($avg_time, 'SECONDS') : 'N/A';
|
||||
$latest_time = $o->test_installation->get_latest_run_time();
|
||||
$latest_time = !empty($latest_time) ? pts_strings::format_time($latest_time, 'SECONDS') : 'N/A';
|
||||
|
||||
echo PHP_EOL . pts_client::cli_just_bold('Test Installed: ') . 'Yes' . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Last Run: ') . $last_run . PHP_EOL;
|
||||
|
||||
if($last_run != 'Never')
|
||||
{
|
||||
if($o->test_installation->get_run_count() > 1)
|
||||
{
|
||||
echo pts_client::cli_just_bold('Average Run-Time: ') . $avg_time . PHP_EOL;
|
||||
}
|
||||
|
||||
echo pts_client::cli_just_bold('Latest Run-Time: ') . $latest_time . PHP_EOL;
|
||||
echo pts_client::cli_just_bold('Times Run: ') . $o->test_installation->get_run_count() . PHP_EOL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo PHP_EOL . pts_client::cli_just_bold('Test Installed: ') . 'No' . PHP_EOL;
|
||||
}
|
||||
|
||||
$dependencies = $o->get_external_dependencies();
|
||||
if(!empty($dependencies) && !empty($dependencies[0]))
|
||||
{
|
||||
echo PHP_EOL . pts_client::cli_just_bold('Software Dependencies:') . PHP_EOL;
|
||||
echo pts_user_io::display_text_list($o->get_dependency_names());
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
else if($o instanceof pts_result_file)
|
||||
{
|
||||
echo pts_client::cli_just_bold('Title: ') . $o->get_title() . PHP_EOL . pts_client::cli_just_bold('Identifier: ') . $o->get_identifier() . PHP_EOL;
|
||||
echo PHP_EOL . pts_client::cli_just_bold('Test Result Identifiers:') . PHP_EOL;
|
||||
echo pts_user_io::display_text_list($o->get_system_identifiers());
|
||||
|
||||
$test_titles = array();
|
||||
foreach($o->get_result_objects() as $result_object)
|
||||
{
|
||||
if($result_object->test_profile->get_display_format() == 'BAR_GRAPH')
|
||||
{
|
||||
$test_titles[] = $result_object->test_profile->get_title();
|
||||
}
|
||||
}
|
||||
|
||||
if(count($test_titles) > 0)
|
||||
{
|
||||
echo PHP_EOL . pts_client::cli_just_bold('Contained Tests:') . PHP_EOL;
|
||||
echo pts_user_io::display_text_list(array_unique($test_titles));
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
else if($o instanceof pts_virtual_test_suite)
|
||||
{
|
||||
pts_client::$display->generic_heading($o->get_title());
|
||||
echo pts_client::cli_just_bold('Virtual Suite Description: ') . $o->get_description() . PHP_EOL . PHP_EOL;
|
||||
|
||||
foreach($o->get_contained_test_profiles() as $test_profile)
|
||||
{
|
||||
echo '- ' . $test_profile . PHP_EOL;
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2010, Phoronix Media
|
||||
Copyright (C) 2008 - 2010, Michael Larabel
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -34,7 +34,6 @@ class install_dependencies implements pts_option_interface
|
||||
public static function run($r)
|
||||
{
|
||||
$test_profiles = pts_types::identifiers_to_test_profile_objects($r, true, true);
|
||||
//pts_client::set_test_flags(pts_c::auto_mode);
|
||||
pts_external_dependencies::install_dependencies($test_profiles);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2011 - 2013, Phoronix Media
|
||||
Copyright (C) 2011 - 2013, Michael Larabel
|
||||
Copyright (C) 2011 - 2016, Phoronix Media
|
||||
Copyright (C) 2011 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -27,45 +27,10 @@ class interactive implements pts_option_interface
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
$is_moscow = pts_flags::os_identifier_hash() == 'b28d6a7148b34595c5b397dfcf5b12ac7932b3dc';
|
||||
|
||||
if($is_moscow)
|
||||
{
|
||||
// Auto mount?
|
||||
$drives = pts_file_io::glob('/dev/sda*');
|
||||
sort($drives);
|
||||
|
||||
if(false && count($drives) > 0 && !is_dir('/media/pts-auto-mount') && is_writable('/media/'))
|
||||
{
|
||||
$last_drive = array_pop($drives);
|
||||
echo PHP_EOL . 'Attempting to auto-mount drive: ' . $last_drive . PHP_EOL;
|
||||
mkdir('/media/pts-auto-mount');
|
||||
exec('mount ' . $last_drive . ' /media/pts-auto-mount');
|
||||
putenv('PTS_TEST_INSTALL_ROOT_PATH=/media/pts-auto-mount/');
|
||||
}
|
||||
|
||||
// Auto save results
|
||||
$test_results_name = phodevi::read_property('motherboard', 'serial-number');
|
||||
|
||||
if($test_results_name == null)
|
||||
{
|
||||
$test_results_name = phodevi::read_name('motherboard');
|
||||
}
|
||||
if($test_results_name == null)
|
||||
{
|
||||
$test_results_name = phodevi::read_property('system', 'vendor-identifier');
|
||||
}
|
||||
|
||||
putenv('TEST_RESULTS_NAME=' . str_replace(' ', null, $test_results_name));
|
||||
putenv('TEST_RESULTS_IDENTIFIER=' . $test_results_name);
|
||||
putenv('TEST_RESULTS_DESCRIPTION=Tests using ' . phodevi::read_property('system', 'operating-system') . ' on ' . date('d F Y') . ' of ' . $test_results_name . '.');
|
||||
self::select_drive_mount();
|
||||
}
|
||||
|
||||
pts_openbenchmarking::refresh_repository_lists();
|
||||
pts_client::$display->generic_heading('Interactive Benchmarking');
|
||||
echo 'System Hardware:' . PHP_EOL . phodevi::system_hardware(true) . (phodevi::read_property('motherboard', 'serial-number') != null ? PHP_EOL . 'System Serial Number: ' . phodevi::read_property('motherboard', 'serial-number') : null) . PHP_EOL . PHP_EOL . PHP_EOL;
|
||||
$reboot_on_exit = pts_flags::is_live_cd() && pts_client::user_home_directory() == '/root/';
|
||||
$reboot_on_exit = false;
|
||||
|
||||
do
|
||||
{
|
||||
@@ -78,12 +43,6 @@ class interactive implements pts_option_interface
|
||||
'SET_RUN_COUNT' => 'Set Test Run Repetition'
|
||||
);
|
||||
|
||||
if($is_moscow)
|
||||
{
|
||||
unset($options['RUN_SUITE']);
|
||||
// $options['SELECT_DRIVE_MOUNT'] = 'Select Disk Drive To Use For Testing';
|
||||
}
|
||||
|
||||
if(count(pts_client::saved_test_results()) > 0)
|
||||
{
|
||||
$options['BACKUP_RESULTS_TO_USB'] = 'Backup Results To Media Storage';
|
||||
@@ -101,17 +60,11 @@ class interactive implements pts_option_interface
|
||||
|
||||
foreach($supported_tests as $i => &$test_profile)
|
||||
{
|
||||
if($test_profile->get_title() == null || pts_test_run_manager::test_profile_system_compatibility_check($test_profile) == false)
|
||||
if($test_profile->get_title() == null)
|
||||
{
|
||||
unset($supported_tests[$i]);
|
||||
continue;
|
||||
}
|
||||
if($is_moscow && pts_test_install_request::test_files_available_locally($test_profile) == false)
|
||||
{
|
||||
// Don't show tests where files need to be downloaded
|
||||
unset($supported_tests[$i]);
|
||||
continue;
|
||||
}
|
||||
|
||||
$longest_title_length = max($longest_title_length, strlen($test_profile->get_title()));
|
||||
}
|
||||
@@ -130,7 +83,8 @@ class interactive implements pts_option_interface
|
||||
$tests_to_run = pts_user_io::prompt_text_menu('Select Test', $supported_tests, true, true);
|
||||
$tests_to_run = explode(',', $tests_to_run);
|
||||
pts_test_installer::standard_install($tests_to_run);
|
||||
$run_manager = pts_test_run_manager::standard_run($tests_to_run, (pts_c::defaults_mode | pts_c::auto_mode));
|
||||
$run_manager = new pts_test_run_manager(false, 2);
|
||||
$run_manager->standard_run($tests_to_run);
|
||||
if($run_manager != false)
|
||||
{
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $run_manager->get_file_name() . '/index.html', null, true, true);
|
||||
@@ -141,14 +95,15 @@ class interactive implements pts_option_interface
|
||||
|
||||
foreach(array_map('strtolower', pts_types::subsystem_targets()) as $subsystem)
|
||||
{
|
||||
array_push($possible_suites, 'pts/' . $subsystem);
|
||||
$possible_suites[] = 'pts/' . $subsystem;
|
||||
}
|
||||
|
||||
$suites_to_run = pts_user_io::prompt_text_menu('Select Suite', $possible_suites, true);
|
||||
foreach(explode(',', $suites_to_run) as $suite_to_run)
|
||||
{
|
||||
pts_test_installer::standard_install($suite_to_run);
|
||||
pts_test_run_manager::standard_run($suite_to_run, (pts_c::defaults_mode | pts_c::auto_mode));
|
||||
$run_manager = new pts_test_run_manager(false, 2);
|
||||
$run_manager->standard_run($suite_to_run);
|
||||
}
|
||||
break;
|
||||
case 'SELECT_DRIVE_MOUNT':
|
||||
@@ -158,7 +113,8 @@ class interactive implements pts_option_interface
|
||||
pts_client::$display->generic_heading('System Test');
|
||||
$system_tests = array('apache', 'c-ray', 'ramspeed', 'postmark');
|
||||
pts_test_installer::standard_install($system_tests);
|
||||
$run_manager = pts_test_run_manager::standard_run($system_tests, (pts_c::defaults_mode | pts_c::auto_mode));
|
||||
$run_manager = new pts_test_run_manager(false, 2);
|
||||
$run_manager->standard_run($system_tests);
|
||||
if($run_manager != false)
|
||||
{
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $run_manager->get_file_name() . '/index.html', null, true, true);
|
||||
@@ -170,11 +126,7 @@ class interactive implements pts_option_interface
|
||||
echo 'Software:' . PHP_EOL . phodevi::system_software(true) . PHP_EOL . PHP_EOL;
|
||||
break;
|
||||
case 'SHOW_SENSORS':
|
||||
pts_client::$display->generic_heading('Detected System Sensors');
|
||||
foreach(phodevi::supported_sensors() as $sensor)
|
||||
{
|
||||
echo phodevi::sensor_name($sensor) . ': ' . phodevi::read_sensor($sensor) . ' ' . phodevi::read_sensor_unit($sensor) . PHP_EOL;
|
||||
}
|
||||
pts_client::execute_command('system_sensors');
|
||||
break;
|
||||
case 'SET_RUN_COUNT':
|
||||
$run_count = pts_user_io::prompt_user_input('Set the minimum number of times each test should repeat', false);
|
||||
@@ -183,20 +135,6 @@ class interactive implements pts_option_interface
|
||||
case 'BACKUP_RESULTS_TO_USB':
|
||||
pts_client::$display->generic_heading('Backing Up Test Results');
|
||||
|
||||
if($is_moscow)
|
||||
{
|
||||
$drives = pts_file_io::glob('/dev/sd*');
|
||||
sort($drives);
|
||||
|
||||
if(count($drives) > 0 && is_writable('/media/'))
|
||||
{
|
||||
$select_drive = pts_user_io::prompt_text_menu('Select Drive / Partition To Save Results', $drives);
|
||||
echo PHP_EOL . 'Attempting to mount: ' . $select_drive . PHP_EOL;
|
||||
mkdir('/media/00-results-backup');
|
||||
exec('mount ' . $select_drive . ' /media/00-results-backup');
|
||||
}
|
||||
}
|
||||
|
||||
foreach(pts_file_io::glob('/media/*') as $media_dir)
|
||||
{
|
||||
if(!is_writable($media_dir))
|
||||
@@ -209,12 +147,6 @@ class interactive implements pts_option_interface
|
||||
pts_file_io::copy(PTS_SAVE_RESULTS_PATH, $media_dir . '/');
|
||||
break;
|
||||
}
|
||||
|
||||
if($is_moscow && is_dir('/media/00-results-backup'))
|
||||
{
|
||||
exec('umount /media/00-results-backup');
|
||||
rmdir('/media/00-results-backup');
|
||||
}
|
||||
break;
|
||||
}
|
||||
echo PHP_EOL . PHP_EOL;
|
||||
@@ -242,7 +174,7 @@ class interactive implements pts_option_interface
|
||||
}
|
||||
else
|
||||
{
|
||||
array_push($drives, 'No HDD');
|
||||
$drives[] = 'No HDD';
|
||||
$to_mount = pts_user_io::prompt_text_menu('Select Drive / Partition To Mount', $drives);
|
||||
|
||||
if($to_mount != 'No HDD')
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2013, Phoronix Media
|
||||
Copyright (C) 2013, Michael Larabel
|
||||
Copyright (C) 2013 - 2015, Phoronix Media
|
||||
Copyright (C) 2013 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,7 +33,7 @@ class internal_run implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_test_run_manager::set_batch_mode(array(
|
||||
$test_run_manager = new pts_test_run_manager(array(
|
||||
'UploadResults' => false,
|
||||
'SaveResults' => true,
|
||||
'PromptForTestDescription' => true,
|
||||
@@ -43,7 +43,7 @@ class internal_run implements pts_option_interface
|
||||
'OpenBrowser' => true
|
||||
));
|
||||
|
||||
pts_test_run_manager::standard_run($r, pts_c::batch_mode);
|
||||
$test_run_manager->standard_run($r);
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ class list_available_suites implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
$available_suites = pts_openbenchmarking::available_suites(false);
|
||||
$available_suites = array_merge(pts_openbenchmarking::available_suites(false), pts_tests::local_suites());
|
||||
pts_client::$display->generic_heading('Available Suites');
|
||||
|
||||
if(count($available_suites) > 0)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
Copyright (C) 2008 - 2016, Phoronix Media
|
||||
Copyright (C) 2008 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -39,7 +39,7 @@ class list_available_tests implements pts_option_interface
|
||||
$id = substr($identifier, strlen($repo) + 1);
|
||||
$repo_index = pts_openbenchmarking::read_repository_index($repo);
|
||||
|
||||
if(!in_array(phodevi::operating_system(), $repo_index['tests'][$id]['supported_platforms']) || empty($repo_index['tests'][$id]['title']))
|
||||
if((!empty($repo_index['tests'][$id]['supported_platforms']) && !in_array(phodevi::operating_system(), $repo_index['tests'][$id]['supported_platforms'])) || empty($repo_index['tests'][$id]['title']))
|
||||
{
|
||||
// Don't show unsupported tests
|
||||
continue;
|
||||
@@ -49,9 +49,9 @@ class list_available_tests implements pts_option_interface
|
||||
$test_count++;
|
||||
}
|
||||
|
||||
foreach(pts_file_io::glob(PTS_TEST_PROFILE_PATH . 'local/*/test-definition.xml') as $path)
|
||||
foreach(pts_tests::local_tests() as $identifier)
|
||||
{
|
||||
$test_profile = new pts_test_profile('local/' . basename(dirname($path)));
|
||||
$test_profile = new pts_test_profile($identifier);
|
||||
|
||||
if($test_profile->get_title() != null && $test_profile->is_supported(false))
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2013, Phoronix Media
|
||||
Copyright (C) 2009 - 2013, Michael Larabel
|
||||
Copyright (C) 2009 - 2016, Phoronix Media
|
||||
Copyright (C) 2009 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -34,7 +34,7 @@ class list_installed_suites implements pts_option_interface
|
||||
$suite = new pts_test_suite($suite);
|
||||
if($suite->needs_updated_install() == false)
|
||||
{
|
||||
array_push($installed_suites, $suite);
|
||||
$installed_suites[] = $suite;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2011, Phoronix Media
|
||||
Copyright (C) 2008 - 2011, Michael Larabel
|
||||
Copyright (C) 2008 - 2016, Phoronix Media
|
||||
Copyright (C) 2008 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
82
pts-core/commands/list_not_installed_tests.php
Normal file
82
pts-core/commands/list_not_installed_tests.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2016, Phoronix Media
|
||||
Copyright (C) 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class list_not_installed_tests implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Information';
|
||||
const doc_description = 'This option will list all test profiles that are supported and available but presently NOT installed on the system.';
|
||||
|
||||
public static function command_aliases()
|
||||
{
|
||||
return array('list_uninstalled_tests');
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
pts_client::$display->generic_heading('Available Tests Not Installed');
|
||||
$test_count = 0;
|
||||
foreach(pts_openbenchmarking::available_tests(false) as $identifier)
|
||||
{
|
||||
$repo = substr($identifier, 0, strpos($identifier, '/'));
|
||||
$id = substr($identifier, strlen($repo) + 1);
|
||||
$repo_index = pts_openbenchmarking::read_repository_index($repo);
|
||||
|
||||
if((!empty($repo_index['tests'][$id]['supported_platforms']) && !in_array(phodevi::operating_system(), $repo_index['tests'][$id]['supported_platforms'])) || empty($repo_index['tests'][$id]['title']))
|
||||
{
|
||||
// Don't show unsupported tests
|
||||
continue;
|
||||
}
|
||||
|
||||
$test_profile = new pts_test_profile($identifier);
|
||||
if($test_profile->is_test_installed())
|
||||
{
|
||||
// Only show uninstalled tests
|
||||
continue;
|
||||
}
|
||||
|
||||
echo sprintf('%-30ls - %-35ls %-9ls', $identifier, $repo_index['tests'][$id]['title'], $repo_index['tests'][$id]['test_type']) . PHP_EOL;
|
||||
$test_count++;
|
||||
}
|
||||
|
||||
foreach(pts_tests::local_tests() as $identifier)
|
||||
{
|
||||
$test_profile = new pts_test_profile($identifier);
|
||||
if($test_profile->is_test_installed())
|
||||
{
|
||||
// Only show uninstalled tests
|
||||
continue;
|
||||
}
|
||||
|
||||
if($test_profile->get_title() != null && $test_profile->is_supported(false))
|
||||
{
|
||||
echo sprintf('%-30ls - %-35ls %-9ls', $test_profile->get_identifier(), $test_profile->get_title(), $test_profile->get_test_hardware_type()) . PHP_EOL;
|
||||
$test_count++;
|
||||
}
|
||||
}
|
||||
|
||||
if($test_count == 0)
|
||||
{
|
||||
echo PHP_EOL . 'No tests found. Please check that you have Internet connectivity to download test profile data from OpenBenchmarking.org. The Phoronix Test Suite has documentation on configuring the network setup, proxy settings, and PHP network options. Please contact Phoronix Media if you continuing to experience problems.' . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2012, Phoronix Media
|
||||
Copyright (C) 2008 - 2012, Michael Larabel
|
||||
Copyright (C) 2008 - 2017, Phoronix Media
|
||||
Copyright (C) 2008 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -32,7 +32,8 @@ class list_test_usage implements pts_option_interface
|
||||
|
||||
if(count($installed_tests) > 0)
|
||||
{
|
||||
echo sprintf('%-18ls %-8ls %-13ls %-11ls %-13ls %-10ls', 'TEST', 'VERSION', 'INSTALL DATE', 'LAST RUN', 'AVG RUN-TIME', 'TIMES RUN') . PHP_EOL;
|
||||
echo sprintf('%-32ls %-12ls %-11ls %-8ls %-6ls', 'TEST', 'INSTALL', 'LAST RUN', 'AVERAGE', 'TIMES') . PHP_EOL;
|
||||
echo sprintf('%-32ls %-12ls %-11ls %-8ls %-6ls', '', 'DATE', 'DATE', 'RUNTIME', 'RUN') . PHP_EOL;
|
||||
foreach($installed_tests as $identifier)
|
||||
{
|
||||
$test_profile = new pts_test_profile($identifier);
|
||||
@@ -45,7 +46,7 @@ class list_test_usage implements pts_option_interface
|
||||
$last_run = $test_profile->test_installation->get_last_run_date();
|
||||
$last_run = $last_run == '0000-00-00' ? 'NEVER' : $last_run;
|
||||
|
||||
echo sprintf('%-18ls - %-8ls %-13ls %-11ls %-13ls %-10ls', $identifier, $test_profile->test_installation->get_installed_version(), $test_profile->test_installation->get_install_date(), $last_run, $avg_time, $test_profile->test_installation->get_run_count()) . PHP_EOL;
|
||||
echo sprintf('%-32ls %-12ls %-11ls %-8ls %-6ls', $identifier, $test_profile->test_installation->get_install_date(), $last_run, $avg_time, $test_profile->test_installation->get_run_count()) . PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
Copyright (C) 2008 - 2016, Phoronix Media
|
||||
Copyright (C) 2008 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -31,7 +31,7 @@ class make_download_cache implements pts_option_interface
|
||||
pts_openbenchmarking::refresh_repository_lists(null, true);
|
||||
|
||||
// Determine cache location
|
||||
$dc_write_directory = pts_strings::add_trailing_slash(pts_client::parse_home_directory(pts_config::read_user_config('PhoronixTestSuite/Options/Installation/CacheDirectory', PTS_DOWNLOAD_CACHE_PATH)));
|
||||
$dc_write_directory = pts_strings::add_trailing_slash(pts_strings::parse_for_home_directory(pts_config::read_user_config('PhoronixTestSuite/Options/Installation/CacheDirectory', PTS_DOWNLOAD_CACHE_PATH)));
|
||||
echo PHP_EOL . 'Download Cache Directory: ' . $dc_write_directory . PHP_EOL;
|
||||
|
||||
if($dc_write_directory == null || !is_writable($dc_write_directory))
|
||||
@@ -95,7 +95,7 @@ class make_download_cache implements pts_option_interface
|
||||
}
|
||||
else if($file->get_md5() == $json_download_cache['phoronix-test-suite']['download-cache'][$file->get_filename()]['md5'] && $file->get_sha256() == $json_download_cache['phoronix-test-suite']['download-cache'][$file->get_filename()]['sha256'])
|
||||
{
|
||||
array_push($json_download_cache['phoronix-test-suite']['download-cache'][$file->get_filename()]['associated_tests'], $test_profile->get_identifier());
|
||||
$json_download_cache['phoronix-test-suite']['download-cache'][$file->get_filename()]['associated_tests'][] = $test_profile->get_identifier();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -124,7 +124,7 @@ class make_download_cache implements pts_option_interface
|
||||
{
|
||||
continue;
|
||||
}
|
||||
array_push($cached_tests, $test);
|
||||
$cached_tests[] = $test;
|
||||
}
|
||||
$json_download_cache['phoronix-test-suite']['cached-tests'] = $cached_tests;
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2010, Phoronix Media
|
||||
Copyright (C) 2008 - 2010, Michael Larabel
|
||||
Copyright (C) 2008 - 2016, Phoronix Media
|
||||
Copyright (C) 2008 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -39,7 +39,7 @@ class merge_results implements pts_option_interface
|
||||
{
|
||||
if(pts_types::is_result_file($result_file))
|
||||
{
|
||||
array_push($result_files_to_merge, $result_file);
|
||||
$result_files_to_merge[] = PTS_SAVE_RESULTS_PATH . $result_file . '/composite.xml';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,12 +58,16 @@ class merge_results implements pts_option_interface
|
||||
$merge_to_file .= 'composite.xml';
|
||||
|
||||
// Merge Results
|
||||
$merged_results = call_user_func(array('pts_merge', 'merge_test_results_array'), $result_files_to_merge);
|
||||
pts_client::save_test_result($merge_to_file, $merged_results);
|
||||
|
||||
$result_file = new pts_result_file(array_shift($result_files_to_merge), true);
|
||||
$result_file->merge($result_files_to_merge);
|
||||
pts_client::save_test_result($merge_to_file, $result_file->get_xml());
|
||||
echo 'Merged Results Saved To: ' . PTS_SAVE_RESULTS_PATH . $merge_to_file . PHP_EOL . PHP_EOL;
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . dirname($merge_to_file) . '/index.html');
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
pts_tests::recently_saved_results();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2012, Phoronix Media
|
||||
Copyright (C) 2012, Michael Larabel
|
||||
Copyright (C) 2012 - 2016, Phoronix Media
|
||||
Copyright (C) 2012 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -85,8 +85,9 @@ class ob_test_profile_analyze implements pts_option_interface
|
||||
// So for any compiling tasks they will try to use the most aggressive instructions possible
|
||||
putenv('CFLAGS=-march=native -O3');
|
||||
putenv('CXXFLAGS=-march=native -O3');
|
||||
pts_test_installer::standard_install($qualified_identifier, pts_c::force_install);
|
||||
pts_test_run_manager::standard_run($qualified_identifier, (pts_c::defaults_mode | pts_c::auto_mode));
|
||||
pts_test_installer::standard_install($qualified_identifier, true);
|
||||
$run_manager = new pts_test_run_manager(false, 2);
|
||||
$run_manager->standard_run($qualified_identifier);
|
||||
|
||||
if($apitrace)
|
||||
{
|
||||
@@ -194,7 +195,7 @@ var_dump($screenshots);
|
||||
|
||||
if(count($line) == 2)
|
||||
{
|
||||
array_push($shared_library_dependencies, trim(basename($line[0])));
|
||||
$shared_library_dependencies[] = trim(basename($line[0]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,7 +207,7 @@ var_dump($screenshots);
|
||||
// So for any compiling tasks they will try to use the most aggressive instructions possible
|
||||
putenv('CFLAGS=-march=' . $march . ' -O3');
|
||||
putenv('CXXFLAGS=-march=' . $march . ' -O3');
|
||||
pts_test_installer::standard_install($qualified_identifier, pts_c::force_install);
|
||||
pts_test_installer::standard_install($qualified_identifier, true);
|
||||
$instruction_usage[$march] = self::analyze_binary_instruction_usage($test_binary);
|
||||
|
||||
if($instruction_usage[$march] == null)
|
||||
@@ -362,7 +363,7 @@ var_dump($server_response);
|
||||
{
|
||||
$gl_usage[$line]++;
|
||||
}
|
||||
else if(ctype_alnum($line))
|
||||
else if(pts_strings::is_alnum($line))
|
||||
{
|
||||
$gl_usage[$line] = 1;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,8 @@ class openbenchmarking_launcher implements pts_option_interface
|
||||
case 'benchmark':
|
||||
$to_benchmark = explode(' ', $payload);
|
||||
pts_test_installer::standard_install($to_benchmark);
|
||||
pts_test_run_manager::standard_run($to_benchmark);
|
||||
$run_manager = new pts_test_run_manager();
|
||||
$run_manager->standard_run($to_benchmark);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2012, Phoronix Media
|
||||
Copyright (C) 2008 - 2012, Michael Larabel
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -46,7 +46,7 @@ class openbenchmarking_login implements pts_option_interface
|
||||
$login_state = pts_openbenchmarking::make_openbenchmarking_request('account_login', $login_payload);
|
||||
$json = json_decode($login_state, true);
|
||||
|
||||
if(isset($json['openbenchmarking']['response']['error']))
|
||||
if(!isset($json['openbenchmarking']) || isset($json['openbenchmarking']['response']['error']))
|
||||
{
|
||||
trigger_error($json['openbenchmarking']['response']['error'], E_USER_ERROR);
|
||||
pts_storage_object::remove_in_file(PTS_CORE_STORAGE, 'openbenchmarking');
|
||||
|
||||
87
pts-core/commands/php_conf.php
Normal file
87
pts-core/commands/php_conf.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2016, Phoronix Media
|
||||
Copyright (C) 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class php_conf implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'System';
|
||||
const doc_description = 'This option will print information that is useful to developers when debugging problems with the Phoronix Test Suite and/or test profiles and test suites.';
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
$table = array();
|
||||
$table[] = array('PHP:', PTS_PHP_VERSION);
|
||||
$table[] = array('PHP VERSION ID: ', PHP_VERSION_ID);
|
||||
$table[] = array('PHP BINARY: ', getenv('PHP_BIN'));
|
||||
echo PHP_EOL . pts_user_io::display_text_table($table, null, 0) . PHP_EOL;
|
||||
echo PHP_EOL;
|
||||
echo 'MAIN CAPABILITY CHECK: ' . PHP_EOL;
|
||||
pts_client::program_requirement_checks(false, true);
|
||||
|
||||
// TODO: ultimately centralize this below list so it doesn't go stale
|
||||
// TODO: when making it uniform, change function_exists() calls to say pts_function_check() that will read the cached list
|
||||
$functions_to_check = array(
|
||||
'posix_getpid',
|
||||
'posix_getuid',
|
||||
'posix_getpwuid',
|
||||
'posix_isatty',
|
||||
'posix_kill',
|
||||
'posix_setsid',
|
||||
'preg_replace',
|
||||
'socket_create_listen',
|
||||
'pcntl_fork',
|
||||
'pcntl_signal',
|
||||
'ssh2_connect',
|
||||
'sqlite_escape_string',
|
||||
'gzinflate',
|
||||
'gzdeflate',
|
||||
'gzcompress',
|
||||
'imagecreatefromstring',
|
||||
'imagecreatefrompng',
|
||||
'filter_var',
|
||||
'ctype_digit',
|
||||
'ctype_alnum',
|
||||
'finfo_open',
|
||||
'hash_file',
|
||||
'cli_set_process_title',
|
||||
'curl_init',
|
||||
'stream_context_set_params',
|
||||
'imagepng',
|
||||
'imagecreatefromgif',
|
||||
'zip_open',
|
||||
'imagettftext',
|
||||
'imageantialias',
|
||||
'json_decode',
|
||||
'simplexml_load_string',
|
||||
'timezone_name_from_abbr'
|
||||
);
|
||||
sort($functions_to_check);
|
||||
$table = array();
|
||||
foreach($functions_to_check as $func)
|
||||
{
|
||||
$table[] = array($func, (function_exists($func) ? 'PRESENT' : 'MISSING'));
|
||||
}
|
||||
echo 'OPTIONAL FUNCTION CHECKS: ';
|
||||
echo PHP_EOL . pts_user_io::display_text_table($table, null, 0) . PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2009, Phoronix Media
|
||||
Copyright (C) 2008 - 2009, Michael Larabel
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -32,7 +32,7 @@ class pts_version implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
echo PHP_EOL . pts_title(true) . PHP_EOL;
|
||||
echo PHP_EOL . pts_core::program_title(true) . PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2010, Phoronix Media
|
||||
Copyright (C) 2010, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class rebuild_composite_xml implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Other';
|
||||
const doc_description = 'This option can be used to rebuild your composite XML file in the event that the main result file was corrupted and the test-X.xml files are still present in the result file directory.';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'is_result_file'), null)
|
||||
);
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
$identifier = $r[0];
|
||||
$test_xml_files = pts_file_io::glob(PTS_SAVE_RESULTS_PATH . $identifier . '/test-*.xml');
|
||||
|
||||
if(count($test_xml_files) == 0)
|
||||
{
|
||||
echo PHP_EOL . 'No test XML data was found.' . PHP_EOL;
|
||||
return false;
|
||||
}
|
||||
|
||||
pts_client::save_test_result($identifier . '/composite.xml', pts_merge::merge_test_results_array($test_xml_files));
|
||||
pts_client::regenerate_graphs($identifier, 'The ' . $identifier . ' result file XML has been rebuilt.');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2013, Phoronix Media
|
||||
Copyright (C) 2009 - 2013, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,9 +33,7 @@ class remove_from_result_file implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
$result = $r[0];
|
||||
|
||||
$result_file = new pts_result_file($result);
|
||||
$result_file = new pts_result_file($r[0]);
|
||||
$result_file_identifiers = $result_file->get_system_identifiers();
|
||||
|
||||
if(count($result_file_identifiers) < 2)
|
||||
@@ -45,32 +43,26 @@ class remove_from_result_file implements pts_option_interface
|
||||
}
|
||||
|
||||
$remove_identifiers = explode(',', pts_user_io::prompt_text_menu('Select the test run(s) to remove', $result_file_identifiers, true));
|
||||
$keep_identifiers = array();
|
||||
|
||||
foreach($result_file_identifiers as $identifier)
|
||||
{
|
||||
if(!in_array($identifier, $remove_identifiers))
|
||||
{
|
||||
array_push($keep_identifiers, $identifier);
|
||||
}
|
||||
}
|
||||
$result_file->remove_run($remove_identifiers);
|
||||
$result_dir = dirname($result_file->get_file_location()) . '/';
|
||||
|
||||
foreach(array('test-logs', 'system-logs', 'installation-logs') as $dir_name)
|
||||
{
|
||||
foreach($remove_identifiers as $remove_identifier)
|
||||
{
|
||||
if(is_dir(PTS_SAVE_RESULTS_PATH . $r[0] . '/' . $dir_name . '/' . $remove_identifier))
|
||||
if(is_dir($result_dir . $dir_name . '/' . $remove_identifier))
|
||||
{
|
||||
pts_file_io::delete(PTS_SAVE_RESULTS_PATH . $r[0] . '/' . $dir_name . '/' . $remove_identifier, null, true);
|
||||
pts_file_io::delete($result_dir . $dir_name . '/' . $remove_identifier, null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$extract_select = new pts_result_merge_select($result, $keep_identifiers);
|
||||
$extract_result = pts_merge::merge_test_results($extract_select);
|
||||
|
||||
pts_client::save_test_result($r[0] . '/composite.xml', $extract_result);
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $r[0] . '/index.html');
|
||||
pts_client::save_test_result($result_file->get_file_location(), $result_file->get_xml());
|
||||
pts_client::display_web_page($result_dir . '/index.html');
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
pts_tests::invalid_command_helper($passed_args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2014, Phoronix Media
|
||||
Copyright (C) 2009 - 2014, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -44,19 +44,6 @@ class rename_identifier_in_result_file implements pts_option_interface
|
||||
|
||||
$rename_identifier = pts_user_io::prompt_text_menu('Select the test run to rename', $result_file_identifiers);
|
||||
$rename_identifier_new = pts_user_io::prompt_user_input('Enter the new identifier');
|
||||
$merge_selects = array();
|
||||
|
||||
foreach($result_file_identifiers as $identifier)
|
||||
{
|
||||
$this_merge_select = new pts_result_merge_select($result, $identifier);
|
||||
|
||||
if($identifier == $rename_identifier && $rename_identifier != $rename_identifier_new)
|
||||
{
|
||||
$this_merge_select->rename_identifier($rename_identifier_new);
|
||||
}
|
||||
|
||||
array_push($merge_selects, $this_merge_select);
|
||||
}
|
||||
|
||||
foreach(array('test-logs', 'system-logs', 'installation-logs') as $dir_name)
|
||||
{
|
||||
@@ -66,8 +53,8 @@ class rename_identifier_in_result_file implements pts_option_interface
|
||||
}
|
||||
}
|
||||
|
||||
$extract_result = pts_merge::merge_test_results_array($merge_selects);
|
||||
pts_client::save_test_result($r[0] . '/composite.xml', $extract_result);
|
||||
$result_file->rename_run($rename_identifier, $rename_identifier_new);
|
||||
pts_client::save_test_result($result_file->get_file_location(), $result_file->get_xml());
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $r[0] . '/index.html');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2013, Phoronix Media
|
||||
Copyright (C) 2009 - 2013, Michael Larabel
|
||||
Copyright (C) 2009 - 2016, Phoronix Media
|
||||
Copyright (C) 2009 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -31,11 +31,13 @@ class reorder_result_file implements pts_option_interface
|
||||
new pts_argument_check(0, array('pts_types', 'is_result_file'), null)
|
||||
);
|
||||
}
|
||||
public static function command_aliases()
|
||||
{
|
||||
return array('sort_result_file');
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
$result = $args[0];
|
||||
|
||||
$result_file = new pts_result_file($result);
|
||||
$result_file = new pts_result_file($args[0]);
|
||||
$result_file_identifiers = $result_file->get_system_identifiers();
|
||||
|
||||
if(count($result_file_identifiers) < 2)
|
||||
@@ -44,13 +46,13 @@ class reorder_result_file implements pts_option_interface
|
||||
return false;
|
||||
}
|
||||
|
||||
$extract_selects = array();
|
||||
echo PHP_EOL . 'Enter The New Order To Display The New Results, From Left To Right.' . PHP_EOL;
|
||||
|
||||
$sorted_identifiers = array();
|
||||
do
|
||||
{
|
||||
$extract_identifier = pts_user_io::prompt_text_menu('Select the test run to be showed next', $result_file_identifiers);
|
||||
array_push($extract_selects, new pts_result_merge_select($result, $extract_identifier));
|
||||
$sorted_identifiers[] = $extract_identifier;
|
||||
|
||||
$old_identifiers = $result_file_identifiers;
|
||||
$result_file_identifiers = array();
|
||||
@@ -59,14 +61,14 @@ class reorder_result_file implements pts_option_interface
|
||||
{
|
||||
if($identifier != $extract_identifier)
|
||||
{
|
||||
array_push($result_file_identifiers, $identifier);
|
||||
$result_file_identifiers[] = $identifier;
|
||||
}
|
||||
}
|
||||
}
|
||||
while(count($result_file_identifiers) > 0);
|
||||
|
||||
$ordered_result = pts_merge::merge_test_results_array($extract_selects);
|
||||
pts_client::save_test_result($args[0] . '/composite.xml', $ordered_result);
|
||||
$result_file->reorder_runs($sorted_identifiers);
|
||||
pts_client::save_test_result($result_file->get_file_location(), $result_file->get_xml());
|
||||
pts_client::display_web_page(PTS_SAVE_RESULTS_PATH . $args[0] . '/index.html');
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2011, Phoronix Media
|
||||
Copyright (C) 2009 - 2011, Michael Larabel
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -37,11 +37,15 @@ class result_file_to_csv implements pts_option_interface
|
||||
$result_output = pts_result_file_output::result_file_to_csv($result_file);
|
||||
|
||||
// To save the result:
|
||||
$file = pts_client::user_home_directory() . $r[0] . '.csv';
|
||||
$file = pts_core::user_home_directory() . $r[0] . '.csv';
|
||||
file_put_contents($file, $result_output);
|
||||
|
||||
echo $result_output;
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
pts_tests::invalid_command_helper($passed_args);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2015, Phoronix Media
|
||||
Copyright (C) 2009 - 2015, Michael Larabel
|
||||
Copyright (C) 2009 - 2016, Phoronix Media
|
||||
Copyright (C) 2009 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,89 +33,20 @@ class result_file_to_pdf implements pts_option_interface
|
||||
}
|
||||
public static function run($r)
|
||||
{
|
||||
if(!function_exists('getimagesizefromstring'))
|
||||
{
|
||||
echo 'PHP GD support is required for this command.' . PHP_EOL . PHP_EOL;
|
||||
return false;
|
||||
}
|
||||
|
||||
$_REQUEST['force_format'] = 'PNG'; // Force to PNG renderer
|
||||
$_REQUEST['svg_dom_gd_no_interlacing'] = true; // Otherwise FPDF will fail
|
||||
$tdir = pts_client::create_temporary_directory();
|
||||
pts_client::generate_result_file_graphs($r[0], $tdir);
|
||||
|
||||
$result_file = new pts_result_file($r[0]);
|
||||
$pdf = new pts_pdf_template($result_file->get_title(), null);
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Image(PTS_CORE_STATIC_PATH . 'images/pts-308x160.png', 69, 85, 73, 38);
|
||||
$pdf->Ln(120);
|
||||
$pdf->WriteStatementCenter('www.phoronix-test-suite.com');
|
||||
$pdf->Ln(15);
|
||||
$pdf->WriteBigHeaderCenter($result_file->get_title());
|
||||
$pdf->WriteText($result_file->get_description());
|
||||
|
||||
|
||||
$pdf->AddPage();
|
||||
$pdf->Ln(15);
|
||||
|
||||
$identifiers = $result_file->get_system_identifiers();
|
||||
$hardware_r = $result_file->get_system_hardware();
|
||||
$software_r = $result_file->get_system_software();
|
||||
$notes_r = $result_file->get_system_notes();
|
||||
$tests = $result_file->get_test_titles();
|
||||
|
||||
$pdf->SetSubject($result_file->get_title() . ' Benchmarks');
|
||||
$pdf->SetKeywords(implode(', ', $identifiers));
|
||||
|
||||
$pdf->WriteHeader('Test Systems:');
|
||||
for($i = 0; $i < count($identifiers); $i++)
|
||||
{
|
||||
$pdf->WriteMiniHeader($identifiers[$i]);
|
||||
$pdf->WriteText($hardware_r[$i]);
|
||||
$pdf->WriteText($software_r[$i]);
|
||||
//$pdf->WriteText($notes_r[$i]);
|
||||
}
|
||||
|
||||
/*
|
||||
if(count($identifiers) > 1 && is_file($tdir . 'result-graphs/overview.jpg'))
|
||||
{
|
||||
$pdf->AddPage();
|
||||
$pdf->Ln(100);
|
||||
$pdf->Image($tdir . 'result-graphs/overview.jpg', 15, 40, 180);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
$pdf->AddPage();
|
||||
$placement = 1;
|
||||
for($i = 1; $i <= count($tests); $i++)
|
||||
{
|
||||
if(is_file($tdir . 'result-graphs/' . $i . '.png'))
|
||||
{
|
||||
$pdf->Ln(100);
|
||||
$pdf->Image($tdir . 'result-graphs/' . $i . '.png', 50, 40 + (($placement - 1) * 120), 120);
|
||||
}
|
||||
|
||||
if($placement == 2)
|
||||
{
|
||||
$placement = 0;
|
||||
|
||||
if($i != count($tests))
|
||||
{
|
||||
$pdf->AddPage();
|
||||
}
|
||||
}
|
||||
$placement++;
|
||||
}
|
||||
|
||||
|
||||
// To save:
|
||||
/*
|
||||
$pdf_file = 'SAVE_TO';
|
||||
|
||||
if(substr($pdf_file, -4) != '.pdf')
|
||||
{
|
||||
$pdf_file .= '.pdf';
|
||||
}
|
||||
*/
|
||||
$pdf_file = pts_client::user_home_directory() . $r[0] . '.pdf';
|
||||
$pdf->Output($pdf_file);
|
||||
pts_file_io::delete($tdir, null, true);
|
||||
$pdf_file = pts_core::user_home_directory() . $r[0] . '.pdf';
|
||||
$pdf_output = pts_result_file_output::result_file_to_pdf($result_file, $pdf_file, 'F');
|
||||
echo PHP_EOL . 'Saved To: ' . $pdf_file . PHP_EOL;
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2011, Phoronix Media
|
||||
Copyright (C) 2008 - 2011, Michael Larabel
|
||||
Copyright (C) 2008 - 2016, Phoronix Media
|
||||
Copyright (C) 2008 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -44,27 +44,31 @@ class result_file_to_suite implements pts_option_interface
|
||||
$suite_maintainer = pts_user_io::prompt_user_input('Enter suite maintainer name');
|
||||
$suite_description = pts_user_io::prompt_user_input('Enter suite description');
|
||||
|
||||
$suite_writer = new pts_test_suite_writer();
|
||||
$suite_writer->add_suite_information($suite_name, '1.0.0', $suite_maintainer, $suite_test_type, $suite_description);
|
||||
$new_suite = new pts_test_suite();
|
||||
$new_suite->set_title($suite_name);
|
||||
$new_suite->set_version('1.0.0');
|
||||
$new_suite->set_maintainer($suite_maintainer);
|
||||
$new_suite->set_suite_type($suite_test_type);
|
||||
$new_suite->set_description($suite_description);
|
||||
|
||||
|
||||
// Read results file
|
||||
$result_file = new pts_result_file($result_file);
|
||||
|
||||
foreach($result_file->get_result_objects() as $result_object)
|
||||
{
|
||||
$suite_writer->add_to_suite_from_result_object($result_object);
|
||||
$test = new pts_test_profile($result_object->test_profile->get_identifier());
|
||||
$new_suite->add_to_suite($test, $result_object->get_arguments(), $result_object->get_arguments_description());
|
||||
}
|
||||
|
||||
// Finish it off
|
||||
$suite_identifier = pts_test_run_manager::clean_save_name($suite_name);
|
||||
mkdir(PTS_TEST_SUITE_PATH . 'local/' . $suite_identifier);
|
||||
$save_to = PTS_TEST_SUITE_PATH . 'local/' . $suite_identifier . '/suite-definition.xml';
|
||||
|
||||
if($suite_writer->save_xml($save_to) != false)
|
||||
if($new_suite->save_xml($suite_name) != false)
|
||||
{
|
||||
echo PHP_EOL . PHP_EOL . 'Saved To: ' . $save_to . PHP_EOL . 'To run this suite, type: phoronix-test-suite benchmark ' . $suite_identifier . PHP_EOL . PHP_EOL;
|
||||
echo PHP_EOL . PHP_EOL . 'Saved -- to run this suite, type: phoronix-test-suite benchmark ' . $new_suite->get_identifier() . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
pts_tests::recently_saved_results();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2014, Phoronix Media
|
||||
Copyright (C) 2014, Michael Larabel
|
||||
Copyright (C) 2014 - 2015, Phoronix Media
|
||||
Copyright (C) 2014 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -114,16 +114,9 @@ class run_random_tests implements pts_option_interface
|
||||
pts_client::pts_set_environment_variable('SKIP_TESTING_SUBSYSTEMS', implode(',', $subsystems_to_avoid));
|
||||
}
|
||||
|
||||
$test_flags = pts_c::auto_mode | pts_c::defaults_mode | pts_c::batch_mode;
|
||||
pts_client::set_test_flags($test_flags);
|
||||
if($allow_new_tests_to_be_installed)
|
||||
{
|
||||
if($allow_new_dependencies_to_be_installed == false)
|
||||
{
|
||||
$test_flags |= pts_c::skip_tests_with_missing_dependencies;
|
||||
}
|
||||
|
||||
pts_test_installer::standard_install($to_test, $test_flags);
|
||||
pts_test_installer::standard_install($to_test, false, true, $allow_new_dependencies_to_be_installed);
|
||||
}
|
||||
|
||||
$batch_mode_settings = array(
|
||||
@@ -143,13 +136,13 @@ class run_random_tests implements pts_option_interface
|
||||
}
|
||||
pts_test_run_manager::set_batch_mode($batch_mode_settings);
|
||||
|
||||
if(pts_test_run_manager::initial_checks($to_test, $test_flags) != false)
|
||||
$test_run_manager = new pts_test_run_manager($batch_mode_settings, 2);
|
||||
if($test_run_manager->initial_checks($to_test) != false)
|
||||
{
|
||||
$test_run_manager = new pts_test_run_manager($test_flags);
|
||||
if($test_run_manager->load_tests_to_run($to_test))
|
||||
{
|
||||
// SETUP
|
||||
$test_run_manager->auto_save_results($title, null, 'Various open-source benchmarks by the ' . pts_title(true) . '.', true);
|
||||
$test_run_manager->auto_save_results($title, null, 'Various open-source benchmarks by the ' . pts_core::program_title(true) . '.', true);
|
||||
$test_run_manager->auto_generate_results_identifier();
|
||||
echo PHP_EOL;
|
||||
pts_client::$display->generic_sub_heading('Result File: ' . $test_run_manager->get_file_name());
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2011, Phoronix Media
|
||||
Copyright (C) 2008 - 2011, Michael Larabel
|
||||
Copyright (C) 2008 - 2015, Phoronix Media
|
||||
Copyright (C) 2008 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -42,7 +42,8 @@ class run_test implements pts_option_interface
|
||||
}
|
||||
public static function run($to_run)
|
||||
{
|
||||
pts_test_run_manager::standard_run($to_run);
|
||||
$run_manager = new pts_test_run_manager();
|
||||
$run_manager->standard_run($to_run);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2010 - 2011, Phoronix Media
|
||||
Copyright (C) 2010 - 2011, Michael Larabel
|
||||
Copyright (C) 2010 - 2015, Phoronix Media
|
||||
Copyright (C) 2010 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -34,7 +34,8 @@ class run_tests_in_suite implements pts_option_interface
|
||||
pts_arrays::unique_push($to_run, $test_profile);
|
||||
}
|
||||
|
||||
pts_test_run_manager::standard_run($to_run);
|
||||
$run_manager = new pts_test_run_manager();
|
||||
$run_manager->standard_run($to_run);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2012, Phoronix Media
|
||||
Copyright (C) 2008 - 2012, Michael Larabel
|
||||
Copyright (C) 2008 - 2017, Phoronix Media
|
||||
Copyright (C) 2008 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -44,7 +44,15 @@ class show_result implements pts_option_interface
|
||||
pts_client::generate_result_file_graphs($r[0], PTS_SAVE_RESULTS_PATH . $r[0] . '/');
|
||||
}
|
||||
|
||||
pts_client::display_web_page($URL . '/index.html', null, false, true);
|
||||
if(pts_client::read_env('DISPLAY') == false)
|
||||
{
|
||||
$rf = new pts_result_file($r[0]);
|
||||
echo pts_result_file_output::result_file_to_text($rf, pts_client::terminal_width());
|
||||
}
|
||||
else
|
||||
{
|
||||
pts_client::display_web_page($URL . '/index.html', null, false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2014 - 2015, Phoronix Media
|
||||
Copyright (C) 2014 - 2015, Michael Larabel
|
||||
Copyright (C) 2014 - 2016, Phoronix Media
|
||||
Copyright (C) 2014 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -47,7 +47,15 @@ class start_phoromatic_server implements pts_option_interface
|
||||
|
||||
$server_launcher = '#!/bin/sh' . PHP_EOL;
|
||||
$web_port = 0;
|
||||
$remote_access = pts_config::read_user_config('PhoronixTestSuite/Options/Server/RemoteAccessPort', 'RANDOM');
|
||||
$remote_access_override = getenv('PHOROMATIC_HTTP_PORT');
|
||||
if($remote_access_override && is_numeric($remote_access_override) && $remote_access_override > 1)
|
||||
{
|
||||
$remote_access = $remote_access_override;
|
||||
}
|
||||
else
|
||||
{
|
||||
$remote_access = pts_config::read_user_config('PhoronixTestSuite/Options/Server/RemoteAccessPort', 'RANDOM');
|
||||
}
|
||||
|
||||
$fp = false;
|
||||
$errno = null;
|
||||
@@ -110,8 +118,8 @@ class start_phoromatic_server implements pts_option_interface
|
||||
// Just create the logger so now it will flush it out
|
||||
$pts_logger = new pts_logger();
|
||||
$pts_logger->clear_log();
|
||||
echo pts_title(true) . ' starting Phoromatic Server' . PHP_EOL;
|
||||
$pts_logger->log(pts_title(true) . ' starting Phoromatic Server on ' . pts_network::get_local_ip());
|
||||
echo pts_core::program_title(true) . ' starting Phoromatic Server' . PHP_EOL;
|
||||
$pts_logger->log(pts_core::program_title(true) . ' starting Phoromatic Server on ' . pts_network::get_local_ip());
|
||||
|
||||
echo 'Phoronix Test Suite User-Data Directory Path: ' . PTS_USER_PATH . PHP_EOL;
|
||||
echo 'Phoronix Test Suite Configuration File: ' . pts_config::get_config_file_location() . PHP_EOL;
|
||||
@@ -134,7 +142,14 @@ class start_phoromatic_server implements pts_option_interface
|
||||
$server_launcher .= 'event_server_pid=$!'. PHP_EOL;
|
||||
|
||||
// HTTP Server Setup
|
||||
if(false && pts_client::executable_in_path('nginx') && is_file('/run/php-fpm/php-fpm.pid'))
|
||||
if(getenv('PHOROMATIC_WANTS_APACHE'))
|
||||
{
|
||||
echo PHP_EOL . PHP_EOL . 'To manually configure Apache, setup the following:' . PHP_EOL;
|
||||
echo 'The root web directory: ' . PTS_CORE_PATH . 'phoromatic/public_html/' . PHP_EOL;
|
||||
echo 'Set the HTTP port to: ' . $web_port . PHP_EOL;
|
||||
echo 'Of course, ensure Apache PHP support is available.' . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
else if(false && pts_client::executable_in_path('nginx') && is_file('/run/php-fpm/php-fpm.pid'))
|
||||
{
|
||||
// NGINX
|
||||
$nginx_conf = 'error_log /tmp/error.log;
|
||||
@@ -186,6 +201,7 @@ class start_phoromatic_server implements pts_option_interface
|
||||
else if(($mongoose = pts_client::executable_in_path('mongoose')) && ($php_cgi = pts_client::executable_in_path('php-cgi')))
|
||||
{
|
||||
// Mongoose Embedded Web Server
|
||||
echo PHP_EOL . 'Launching with Mongoose web server.' . PHP_EOL;
|
||||
$server_launcher .= $mongoose . ' -p ' . $web_port . ' -r ' . PTS_CORE_PATH . 'phoromatic/public_html/ -I ' . $php_cgi . ' -i index.php > /dev/null 2>> $PTS_PHOROMATIC_LOG_LOCATION &' . PHP_EOL; //2> /dev/null
|
||||
|
||||
}
|
||||
@@ -197,6 +213,7 @@ class start_phoromatic_server implements pts_option_interface
|
||||
else
|
||||
{
|
||||
// PHP Web Server
|
||||
echo PHP_EOL . 'Launching with PHP built-in web server.' . PHP_EOL;
|
||||
$server_launcher .= getenv('PHP_BIN') . ' -S ' . $server_ip . ':' . $web_port . ' -t ' . PTS_CORE_PATH . 'phoromatic/public_html/ > /dev/null 2>> $PTS_PHOROMATIC_LOG_LOCATION &' . PHP_EOL; //2> /dev/null
|
||||
}
|
||||
$server_launcher .= 'http_server_pid=$!'. PHP_EOL;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2015, Phoronix Media
|
||||
Copyright (C) 2015, Michael Larabel
|
||||
Copyright (C) 2015 - 2017, Phoronix Media
|
||||
Copyright (C) 2015 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -33,7 +33,7 @@ class stress_run implements pts_option_interface
|
||||
}
|
||||
public static function run($to_run)
|
||||
{
|
||||
pts_test_run_manager::set_batch_mode(array(
|
||||
$test_run_manager = new pts_stress_run_manager(array(
|
||||
'UploadResults' => false,
|
||||
'SaveResults' => false,
|
||||
'PromptForTestDescription' => false,
|
||||
@@ -45,17 +45,33 @@ class stress_run implements pts_option_interface
|
||||
|
||||
$tests_to_run_concurrently = 2;
|
||||
|
||||
echo PHP_EOL . pts_client::cli_just_bold('STRESS-RUN ENVIRONMENT VARIABLES:') . PHP_EOL;
|
||||
|
||||
if(($j = getenv('PTS_CONCURRENT_TEST_RUNS')) && is_numeric($j) && $j > 1)
|
||||
{
|
||||
$tests_to_run_concurrently = $j;
|
||||
echo 'PTS_CONCURRENT_TEST_RUNS set; running ' . $tests_to_run_concurrently . ' tests concurrently.' . PHP_EOL;
|
||||
echo PHP_EOL . 'PTS_CONCURRENT_TEST_RUNS set; running ' . $tests_to_run_concurrently . ' tests concurrently.' . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo PHP_EOL . pts_client::cli_just_bold('PTS_CONCURRENT_TEST_RUNS:') . ' Set the PTS_CONCURRENT_TEST_RUNS environment variable to specify how many tests should be run concurrently during the stress-run process. If not specified, defaults to 2.' . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
|
||||
$test_flags = pts_c::batch_mode;
|
||||
|
||||
if(pts_test_run_manager::initial_checks($to_run, $test_flags, 'SHORT') == false)
|
||||
// Run the actual tests
|
||||
$total_loop_time = pts_client::read_env('TOTAL_LOOP_TIME');
|
||||
if($total_loop_time == 'infinite')
|
||||
{
|
||||
return false;
|
||||
$total_loop_time = 'infinite';
|
||||
echo PHP_EOL . 'TOTAL_LOOP_TIME set; running tests in an infinite loop until otherwise triggered' . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
else if($total_loop_time && is_numeric($total_loop_time) && $total_loop_time > 1)
|
||||
{
|
||||
echo PHP_EOL . 'TOTAL_LOOP_TIME set; running tests for ' . $total_loop_time . ' minutes' . PHP_EOL . PHP_EOL;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo PHP_EOL . pts_client::cli_just_bold('TOTAL_LOOP_TIME:') . ' Set the TOTAL_LOOP_TIME environment variable if wishing to specify (in minutes) how long to run the stress-run process.' . PHP_EOL . PHP_EOL;
|
||||
$total_loop_time = false;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -66,7 +82,10 @@ class stress_run implements pts_option_interface
|
||||
}
|
||||
*/
|
||||
|
||||
$test_run_manager = new pts_test_run_manager($test_flags);
|
||||
if($test_run_manager->initial_checks($to_run, 'SHORT') == false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Load the tests to run
|
||||
if($test_run_manager->load_tests_to_run($to_run) == false)
|
||||
@@ -74,22 +93,6 @@ class stress_run implements pts_option_interface
|
||||
return false;
|
||||
}
|
||||
|
||||
// Run the actual tests
|
||||
$total_loop_time = pts_client::read_env('TOTAL_LOOP_TIME');
|
||||
if($total_loop_time == 'infinite')
|
||||
{
|
||||
$total_loop_time = 'infinite';
|
||||
echo 'TOTAL_LOOP_TIME set; running tests in an infinite loop until otherwise triggered' . PHP_EOL;
|
||||
}
|
||||
else if($total_loop_time && is_numeric($total_loop_time) && $total_loop_time > 9)
|
||||
{
|
||||
$total_loop_time = $total_loop_time * 60;
|
||||
echo 'TOTAL_LOOP_TIME set; running tests for ' . ($total_loop_time / 60) . ' minutes' . PHP_EOL;
|
||||
}
|
||||
else
|
||||
{
|
||||
$total_loop_time = false;
|
||||
}
|
||||
//$test_run_manager->pre_execution_process();
|
||||
$test_run_manager->multi_test_stress_run_execute($tests_to_run_concurrently, $total_loop_time);
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2008 - 2011, Phoronix Media
|
||||
Copyright (C) 2008 - 2011, Michael Larabel
|
||||
Copyright (C) 2008 - 2017, Phoronix Media
|
||||
Copyright (C) 2008 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -28,8 +28,7 @@ class system_info implements pts_option_interface
|
||||
public static function run($r)
|
||||
{
|
||||
pts_client::$display->generic_heading('System Information');
|
||||
echo 'Hardware:' . PHP_EOL . phodevi::system_hardware(true) . PHP_EOL . PHP_EOL;
|
||||
echo 'Software:' . PHP_EOL . phodevi::system_software(true) . PHP_EOL . PHP_EOL;
|
||||
echo phodevi::system_centralized_view();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2009 - 2010, Phoronix Media
|
||||
Copyright (C) 2009 - 2010, Michael Larabel
|
||||
Copyright (C) 2009 - 2017, Phoronix Media
|
||||
Copyright (C) 2009 - 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -27,13 +27,33 @@ class system_sensors implements pts_option_interface
|
||||
|
||||
public static function run($r)
|
||||
{
|
||||
pts_client::$display->generic_heading('Supported Sensors');
|
||||
pts_client::$display->generic_heading('Supported Sensors For This System');
|
||||
$tabled = array();
|
||||
foreach(phodevi::supported_sensors() as $sensor)
|
||||
{
|
||||
echo phodevi::sensor_name($sensor) . ': ' . phodevi::read_sensor($sensor) . ' ' . phodevi::read_sensor_unit($sensor) . PHP_EOL;
|
||||
}
|
||||
$supported_devices = call_user_func(array($sensor[2], 'get_supported_devices'));
|
||||
|
||||
pts_client::$display->generic_heading('Unsupported Sensors');
|
||||
if($supported_devices === NULL)
|
||||
{
|
||||
$supported_devices = array(null);
|
||||
}
|
||||
|
||||
foreach($supported_devices as $device)
|
||||
{
|
||||
if($sensor[0] === 'cgroup')
|
||||
{
|
||||
// echo '- ' . phodevi::sensor_name($sensor) . PHP_EOL;
|
||||
}
|
||||
else
|
||||
{
|
||||
$sensor_object = new $sensor[2](0, $device);
|
||||
$tabled[] = array(pts_client::cli_just_bold(phodevi::sensor_object_name($sensor_object) . ': '), phodevi::read_sensor($sensor_object), pts_client::cli_colored_text(phodevi::read_sensor_object_unit($sensor_object), 'gray'));
|
||||
}
|
||||
}
|
||||
}
|
||||
echo pts_user_io::display_text_table($tabled) . PHP_EOL;
|
||||
|
||||
pts_client::$display->generic_heading('Unsupported Sensors For This System');
|
||||
foreach(phodevi::unsupported_sensors() as $sensor)
|
||||
{
|
||||
echo '- ' . phodevi::sensor_name($sensor) . PHP_EOL;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2010 - 2013, Phoronix Media
|
||||
Copyright (C) 2010 - 2013, Michael Larabel
|
||||
Copyright (C) 2010 - 2015, Phoronix Media
|
||||
Copyright (C) 2010 - 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -35,7 +35,7 @@ class upload_test_profile implements pts_option_interface
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach(pts_types::identifiers_to_test_profile_objects($r, true, true) as $test_profile)
|
||||
foreach(pts_types::identifiers_to_test_profile_objects($r, false, true) as $test_profile)
|
||||
{
|
||||
// validate_test_profile
|
||||
if(pts_validation::validate_test_profile($test_profile))
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2010 - 2015, Phoronix Media
|
||||
Copyright (C) 2010 - 2015, Michael Larabel
|
||||
Copyright (C) 2010 - 2016, Phoronix Media
|
||||
Copyright (C) 2010 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -39,10 +39,10 @@ class upload_test_suite implements pts_option_interface
|
||||
{
|
||||
pts_client::$display->generic_heading($r[0]);
|
||||
|
||||
if(pts_validation::validate_test_suite($test_suite))
|
||||
if(pts_validation::validate_test_suite($test_suite) && $test_suite->get_file_location() != null)
|
||||
{
|
||||
$zip_file = PTS_OPENBENCHMARKING_SCRATCH_PATH . $test_suite->get_identifier(false) . '-' . $test_suite->get_version() . '.zip';
|
||||
$zip_created = pts_compression::zip_archive_create($zip_file, $test_suite->xml_parser->getFileLocation());
|
||||
$zip_created = pts_compression::zip_archive_create($zip_file, $test_suite->get_file_location());
|
||||
|
||||
if($zip_created == false)
|
||||
{
|
||||
@@ -50,11 +50,6 @@ class upload_test_suite implements pts_option_interface
|
||||
return false;
|
||||
}
|
||||
|
||||
$zip = new ZipArchive();
|
||||
$zip->open($zip_file);
|
||||
$zip->renameName(basename($test_suite->xml_parser->getFileLocation()), 'suite-definition.xml');
|
||||
$zip->close();
|
||||
|
||||
$commit_description = pts_user_io::prompt_user_input('Enter a test commit description', false);
|
||||
|
||||
echo PHP_EOL;
|
||||
|
||||
106
pts-core/commands/winners_and_losers.php
Normal file
106
pts-core/commands/winners_and_losers.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2017, Phoronix Media
|
||||
Copyright (C) 2017, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class winners_and_losers implements pts_option_interface
|
||||
{
|
||||
const doc_section = 'Result Management';
|
||||
const doc_description = 'This option is used if you wish to analyze a result file to see which runs produced the most wins/losses of those result identifiers in the saved file.';
|
||||
|
||||
public static function argument_checks()
|
||||
{
|
||||
return array(
|
||||
new pts_argument_check(0, array('pts_types', 'is_result_file'), null)
|
||||
);
|
||||
}
|
||||
public static function run($args)
|
||||
{
|
||||
$result_file = new pts_result_file($args[0]);
|
||||
$result_file_identifiers = $result_file->get_system_identifiers();
|
||||
|
||||
if(count($result_file_identifiers) < 2)
|
||||
{
|
||||
echo PHP_EOL . 'There are not multiple test runs in this result file.' . PHP_EOL;
|
||||
return false;
|
||||
}
|
||||
|
||||
echo pts_client::cli_colored_text($result_file->get_title(), 'gray', true) . PHP_EOL;
|
||||
echo pts_client::cli_colored_text('RESULT COUNT: ', 'cyan', true) . $result_file->get_test_count() . PHP_EOL . PHP_EOL;
|
||||
$winners = array();
|
||||
$losers = array();
|
||||
$tests_counted = 0;
|
||||
|
||||
foreach($result_file->get_result_objects() as $result)
|
||||
{
|
||||
if($result->test_result_buffer->get_count() < 2)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$tests_counted++;
|
||||
$winner = $result->get_result_first();
|
||||
$loser = $result->get_result_last();
|
||||
|
||||
if(!isset($winners[$winner]))
|
||||
{
|
||||
$winners[$winner] = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$winners[$winner]++;
|
||||
}
|
||||
|
||||
if(!isset($losers[$loser]))
|
||||
{
|
||||
$losers[$loser] = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$losers[$loser]++;
|
||||
}
|
||||
}
|
||||
|
||||
arsort($winners);
|
||||
arsort($losers);
|
||||
|
||||
echo pts_client::cli_colored_text('WINS:', 'green', true) . PHP_EOL;
|
||||
$table = array();
|
||||
foreach($winners as $identifier => $count)
|
||||
{
|
||||
$table[] = array($identifier . ': ', $count, ' [' . pts_math::set_precision($count / $tests_counted * 100, 1) . '%]');
|
||||
}
|
||||
echo pts_user_io::display_text_table($table) . PHP_EOL;
|
||||
echo PHP_EOL . pts_client::cli_colored_text('LOSSES: ', 'red', true) . PHP_EOL;
|
||||
$table = array();
|
||||
foreach($losers as $identifier => $count)
|
||||
{
|
||||
$table[] = array($identifier . ': ', $count, ' [' . pts_math::set_precision($count / $tests_counted * 100, 1) . '%]');
|
||||
}
|
||||
echo pts_user_io::display_text_table($table) . PHP_EOL;
|
||||
echo PHP_EOL;
|
||||
}
|
||||
public static function invalid_command($passed_args = null)
|
||||
{
|
||||
pts_tests::recently_saved_results();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2015, Phoronix Media
|
||||
Copyright (C) 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class arch_dependency_handler implements pts_dependency_handler
|
||||
{
|
||||
public static function what_provides($files_needed)
|
||||
{
|
||||
$packages_needed = array();
|
||||
foreach(pts_arrays::to_array($files_needed) as $file)
|
||||
{
|
||||
if(pts_client::executable_in_path('pkgfile'))
|
||||
{
|
||||
$pkgfile_provides = self::run_pkgfile_provides($file);
|
||||
if($pkgfile_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $pkgfile_provides;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Try appending common paths
|
||||
if(strpos($file, '.h') !== false)
|
||||
{
|
||||
$pkgfile_provides = self::run_pkgfile_provides('/usr/include/' . $file);
|
||||
if($pkgfile_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $pkgfile_provides;
|
||||
}
|
||||
}
|
||||
else if(strpos($file, '.so') !== false)
|
||||
{
|
||||
$pkgfile_provides = self::run_pkgfile_provides('/usr/lib/' . $file);
|
||||
if($pkgfile_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $pkgfile_provides;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach(array('/usr/bin/', '/bin/', '/usr/sbin') as $possible_path)
|
||||
{
|
||||
$pkgfile_provides = self::run_pkgfile_provides($possible_path . $file);
|
||||
if($pkgfile_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $pkgfile_provides;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $packages_needed;
|
||||
}
|
||||
protected static function run_pkgfile_provides($arg)
|
||||
{
|
||||
$pkgfile_output = shell_exec('pkgfile ' . $arg . ' 2>/dev/null');
|
||||
|
||||
foreach(explode(PHP_EOL, $pkgfile_output) as $line)
|
||||
{
|
||||
$line = trim($line);
|
||||
if(!empty($line))
|
||||
{
|
||||
return $line;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2015, Phoronix Media
|
||||
Copyright (C) 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class fedora_dependency_handler implements pts_dependency_handler
|
||||
{
|
||||
public static function what_provides($files_needed)
|
||||
{
|
||||
$packages_needed = array();
|
||||
foreach(pts_arrays::to_array($files_needed) as $file)
|
||||
{
|
||||
if(pts_client::executable_in_path('dnf'))
|
||||
{
|
||||
$dnf_provides = self::run_dnf_provides($file);
|
||||
if($dnf_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $dnf_provides;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Try appending common paths
|
||||
if(strpos($file, '.h') !== false)
|
||||
{
|
||||
$dnf_provides = self::run_dnf_provides('/usr/include/' . $file);
|
||||
if($dnf_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $dnf_provides;
|
||||
}
|
||||
}
|
||||
else if(strpos($file, '.so') !== false)
|
||||
{
|
||||
$dnf_provides = self::run_dnf_provides('/usr/lib/' . $file);
|
||||
if($dnf_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $dnf_provides;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach(array('/usr/bin/', '/bin/', '/usr/sbin') as $possible_path)
|
||||
{
|
||||
$dnf_provides = self::run_dnf_provides($possible_path . $file);
|
||||
if($dnf_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $dnf_provides;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $packages_needed;
|
||||
}
|
||||
protected static function run_dnf_provides($arg)
|
||||
{
|
||||
$dnf_output = shell_exec('dnf --quiet provides ' . $arg . ' 2>/dev/null');
|
||||
|
||||
foreach(explode(PHP_EOL, $dnf_output) as $line)
|
||||
{
|
||||
if(($x = strpos($line, ' : ')) == false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$line = trim(substr($line, 0, $x));
|
||||
|
||||
if(strpos($line, '-') !== false && strpos($line, '.') !== false && strpos($line, ' ') === false)
|
||||
{
|
||||
// Don't mess with the version/arch stuff, etc, so try to strip it off
|
||||
$offset = 0;
|
||||
while(($x = strpos($line, '-', $offset)) !== false)
|
||||
{
|
||||
if(isset($line[($x + 1)]) && is_numeric($line[($x + 1)]))
|
||||
{
|
||||
$line = substr($line, 0, $x);
|
||||
break;
|
||||
}
|
||||
$offset = $x + 1;
|
||||
}
|
||||
|
||||
return $line;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2015 - 2016, Phoronix Media
|
||||
Copyright (C) 2015 - 2016, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class opensuse_dependency_handler implements pts_dependency_handler
|
||||
{
|
||||
public static function what_provides($files_needed)
|
||||
{
|
||||
$packages_needed = array();
|
||||
foreach(pts_arrays::to_array($files_needed) as $file)
|
||||
{
|
||||
if(pts_client::executable_in_path('zypper'))
|
||||
{
|
||||
$zypper_provides = self::run_zypper_provides($file);
|
||||
if($zypper_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $zypper_provides;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $packages_needed;
|
||||
}
|
||||
protected static function run_zypper_provides($arg)
|
||||
{
|
||||
$line = shell_exec('zypper search --provides --match-exact ' . $arg . ' 2>/dev/null');
|
||||
|
||||
if(($x = strpos($line, '-----')) == false)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
$line = substr($line, $x);
|
||||
$line = substr($line, strpos($line, "\n") + 2);
|
||||
$line = trim(substr($line, 0, strpos($line, PHP_EOL)));
|
||||
$parts = explode('|', $line);
|
||||
|
||||
if(isset($parts[1]))
|
||||
{
|
||||
return trim($parts[1]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Phoronix Test Suite
|
||||
URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
|
||||
Copyright (C) 2015, Phoronix Media
|
||||
Copyright (C) 2015, Michael Larabel
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
class ubuntu_dependency_handler implements pts_dependency_handler
|
||||
{
|
||||
public static function what_provides($files_needed)
|
||||
{
|
||||
$packages_needed = array();
|
||||
foreach(pts_arrays::to_array($files_needed) as $file)
|
||||
{
|
||||
if(pts_client::executable_in_path('apt-file'))
|
||||
{
|
||||
if(!defined('APT_FILE_UPDATED'))
|
||||
{
|
||||
shell_exec('apt-file update 2>&1');
|
||||
define('APT_FILE_UPDATED', 1);
|
||||
}
|
||||
|
||||
// Try appending common paths
|
||||
if(strpos($file, '.h') !== false)
|
||||
{
|
||||
$apt_provides = self::run_apt_file_provides('/usr/include/' . $file);
|
||||
if($apt_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $apt_provides;
|
||||
}
|
||||
}
|
||||
else if(strpos($file, '.so') !== false)
|
||||
{
|
||||
$apt_provides = self::run_apt_file_provides('/usr/lib/' . $file);
|
||||
if($apt_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $apt_provides;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach(array('/usr/bin/', '/bin/', '/usr/sbin') as $possible_path)
|
||||
{
|
||||
$apt_provides = self::run_apt_file_provides($possible_path . $file);
|
||||
if($apt_provides != null)
|
||||
{
|
||||
$packages_needed[$file] = $apt_provides;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $packages_needed;
|
||||
}
|
||||
protected static function run_apt_file_provides($arg)
|
||||
{
|
||||
$apt_output = shell_exec('apt-file -N search --regex "' . $arg . '$" 2>/dev/null');
|
||||
|
||||
foreach(explode(PHP_EOL, $apt_output) as $line)
|
||||
{
|
||||
if(($x = strpos($line, ': ')) == false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
return trim(substr($line, 0, $x));
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
7
pts-core/external-test-dependencies/scripts/install-alpine-packages.sh
Executable file
7
pts-core/external-test-dependencies/scripts/install-alpine-packages.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Alpine Linux package installation
|
||||
|
||||
echo "Please enter your root password below:" 1>&2
|
||||
su root -c "apk add -v $*"
|
||||
exit
|
||||
@@ -3,5 +3,5 @@
|
||||
# Arch package installation
|
||||
|
||||
echo "Please enter your root password below:" 1>&2
|
||||
su root -c "pacman -Sy --noconfirm $*"
|
||||
su root -c "pacman -Sy --noconfirm --needed $*"
|
||||
exit
|
||||
|
||||
@@ -1,37 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# DragonFlyBSD pkgsrc package installation
|
||||
#dports pkg
|
||||
pkg install -y $*
|
||||
|
||||
echo "For now with this test profile script, please run: phoronix-test-suite install-dependencies xxx as root."
|
||||
|
||||
# Check that pkgsrc is setup, below code should work for making sure good state with at least DragonFlyBSD
|
||||
if [ -d /usr/pkgsrc ] && [ ! -d /usr/pkgsrc/devel ];
|
||||
then
|
||||
cd /usr
|
||||
|
||||
if [ -d /usr/pkgsrc/.git ];
|
||||
then
|
||||
make pkgsrc-update
|
||||
else
|
||||
make pkgsrc-create
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d /usr/pkgsrc ]
|
||||
then
|
||||
for portdir in $*
|
||||
do
|
||||
if [ -d /usr/pkgsrc/$portdir ];
|
||||
then
|
||||
cd /usr/pkgsrc/$portdir
|
||||
bmake install clean BATCH="yes"
|
||||
fi
|
||||
done
|
||||
elif [ -x /usr/local/sbin/pkg ]
|
||||
then
|
||||
for portdir in $*
|
||||
do
|
||||
# DragonFlyBSD 3.6 now uses dports by default and this method seems to work fine for hitting most packages based upon earlier pkgsrc basename
|
||||
pkg install -y `basename $portdir`
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
echo "Please enter your root password below:" 1>&2
|
||||
|
||||
if [ -x /usr/bin/zypper ]; then
|
||||
su root -c "zypper install -l -y --force-resolution $*"
|
||||
su root -c "zypper install -l -y -n --force-resolution $*"
|
||||
else
|
||||
su root -c "yast -i $*"
|
||||
fi
|
||||
|
||||
7
pts-core/external-test-dependencies/scripts/install-solus-packages.sh
Executable file
7
pts-core/external-test-dependencies/scripts/install-solus-packages.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Solus package installation
|
||||
|
||||
echo "Please enter your root password below:" 1>&2
|
||||
sudo eopkg install --yes-all $*
|
||||
exit
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
if [ `whoami` != "root" ] && [ ! -z "$DISPLAY" ]; then
|
||||
if [ `whoami` = "root" ] && [ ! -w /usr/bin/sudo ]; then
|
||||
apt-get -y --ignore-missing install $*
|
||||
elif [ `whoami` != "root" ] && [ ! -z "$DISPLAY" ]; then
|
||||
if [ -x /usr/bin/gksudo ]; then
|
||||
ROOT="/usr/bin/gksudo"
|
||||
elif [ -x /usr/bin/kdesudo ]; then
|
||||
|
||||
7
pts-core/external-test-dependencies/scripts/install-void-packages.sh
Executable file
7
pts-core/external-test-dependencies/scripts/install-void-packages.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Void Linux package installation
|
||||
|
||||
echo "Please enter your root password below:" 1>&2
|
||||
su root -c "xbps-install -Sy $*"
|
||||
exit
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user