Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1728779 > unrolled thread

[PATCH 2/3] selftests/intel_pstate: No need to compile test progs in the run script

Started byThomas Meyer <thomas@m3y3r.de>
First post2017-09-08 14:10 +0200
Last post2017-09-08 14:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/3] selftests/intel_pstate: No need to compile test progs in the run script Thomas Meyer <thomas@m3y3r.de> - 2017-09-08 14:10 +0200

#1728779 — [PATCH 2/3] selftests/intel_pstate: No need to compile test progs in the run script

FromThomas Meyer <thomas@m3y3r.de>
Date2017-09-08 14:10 +0200
Subject[PATCH 2/3] selftests/intel_pstate: No need to compile test progs in the run script
Message-ID<unqgF-6Qe-7@gated-at.bofh.it>
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 <thomas@m3y3r.de>
---
 tools/testing/selftests/intel_pstate/run.sh | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tools/testing/selftests/intel_pstate/run.sh b/tools/testing/selftests/intel_pstate/run.sh
index 7868c106b8b1..96878e44f465 100755
--- a/tools/testing/selftests/intel_pstate/run.sh
+++ b/tools/testing/selftests/intel_pstate/run.sh
@@ -31,12 +31,6 @@ EVALUATE_ONLY=0
 
 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
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web