From 18f8eff4156c35fae440fb762a1e719034173579 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 31 Oct 2011 13:33:50 -0400 Subject: [PATCH] * automatically handle oldconfig --- kernel/build.pl | 2 +- kernel/stress.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/build.pl b/kernel/build.pl index 012a22e..51ec840 100755 --- a/kernel/build.pl +++ b/kernel/build.pl @@ -30,7 +30,7 @@ exit if $ARGV[0] eq "--prep"; if ($ARGV[0] eq "--bigconfig") { my_system("rm .config*"); my_system("cp /root/benchmarks/kernel/config-3.0.8 .config"); - my_system("make oldconfig"); + my_system("yes \"\" |make oldconfig"); } else { my_system("make defconfig"); } diff --git a/kernel/stress.sh b/kernel/stress.sh index e4cfec8..1357eeb 100755 --- a/kernel/stress.sh +++ b/kernel/stress.sh @@ -1,7 +1,7 @@ #!/bin/bash -x date -u -cd /root/benchmarks/kernel/ +cd /root/ hosts="try1 try2 try3 try4 try5" for host in ${hosts}; do @@ -9,22 +9,22 @@ for host in ${hosts}; do date -u sync - ./build.pl + /root/benchmarks/kernel/build.pl date -u sync date -u - ./build.pl --mrproper + /root/benchmarks/kernel/build.pl --mrproper date -u sync date -u - ./build.pl --bigconfig + /root/benchmarks/kernel/build.pl --bigconfig date -u sync date -u - ./build.pl --clean + /root/benchmarks/kernel/build.pl --clean date -u sync echo end {host}