| [ -n "$srcdir" ] || srcdir=$root; |
[ -n "$srcdir" ] || srcdir=$root; |
| |
|
| vectors=unverified.test-vectors; |
vectors=unverified.test-vectors; |
| cpu_speed=$(tail -n 1 "$config/cpuinfo"); |
cpu_speed=$(tail -n 1 "$reports/cpuinfo"); |
| |
|
| if [ -r "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" ]; then |
if [ -r "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" ]; then |
| status 1 "warming up CPU"; |
status 1 "warming up CPU"; |
| && [ $(echo "$cycles / $(<fastest) > 1.01" | bc -l) = 1 ] \ |
&& [ $(echo "$cycles / $(<fastest) > 1.01" | bc -l) = 1 ] \ |
| && break; |
&& break; |
| |
|
| [ "$detailed" = "true" ] && ([ ! -r fastest ] |
[ "$detailed" = "true" ] && ([ ! -r fastest ] \ |
| || [ $(echo "$cycles < $(<fastest)" | bc -l) = 1 ]) \ |
|| [ $(echo "$cycles < $(<fastest)" | bc -l) = 1 ]) \ |
| && echo "$cycles" > fastest; |
&& echo "$cycles" > fastest; |
| |
|