selftests/intel_pstate: "cpupower" command is the pre-requirement of intel_pstate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Shuah,

My two cents,
The "cpupower" command is the pre-requirement of intel_pstate test case.
Would it be a good idea to check, cpupower is pre-installed inside run.sh?
If command not found exit gracefully.

which cpupower
if [ $? -eq 1 ]; then
  echo "cpupower: command not found"
  echo "intel_pstate: [SKIP]"
  exit 0
fi

Test log:
------------
intel_pstate# ./run.sh
./run.sh: line 75: cpupower: command not found
./run.sh: line 76: / 1000: syntax error: operand expected (error token
is "/ 1000")
./run.sh: line 77: cpupower: command not found
./run.sh: line 78: / 1000: syntax error: operand expected (error token
is "/ 1000")
==============================================================================
The marketing frequency of the cpu is 250 MHz
The maximum frequency of the cpu is  MHz
The minimum frequency of the cpu is  MHz
Target      Actual      Difference     MSR(0x199)     max_perf_pct

Best regards
Naresh Kamboju
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux