Skip to content

Commit

Permalink
selftests/intel_pstate: No need to compile test progs in the run script
Browse files Browse the repository at this point in the history
Both test programs are being compiled by make, so no need to compile both
programs in the runner script.
This resolves an error when installing all selftests via make install
and run them in a different environemnt.

Running tests in intel_pstate
========================================
./run.sh: line 35: gcc: command not found
Problem compiling aperf.c.

Signed-off-by: Thomas Meyer <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
  • Loading branch information
thomasmey authored and Shuah Khan committed Sep 18, 2017
1 parent 67b2e30 commit 6f00033
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tools/testing/selftests/intel_pstate/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ fi

max_cpus=$(($(nproc)-1))

# compile programs
gcc aperf.c -Wall -D_GNU_SOURCE -o aperf -lm
[ $? -ne 0 ] && echo "Problem compiling aperf.c." && exit 1
gcc -o msr msr.c -lm
[ $? -ne 0 ] && echo "Problem compiling msr.c." && exit 1

function run_test () {

file_ext=$1
Expand Down

0 comments on commit 6f00033

Please sign in to comment.