Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: client/deps/fio/fio.py

Issue 3412036: Basis for cryptohome+power_SuspendResume stress test. (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: tweaks to test params Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/python
2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 import common, os, shutil
8 from autotest_lib.client.bin import utils
9
10 version = 1
11
12 def setup(tarball, topdir):
13 srcdir = os.path.join(topdir, 'src')
14 utils.extract_tarball_to_dir(tarball, srcdir)
15 os.chdir(srcdir)
16 utils.system('patch -p1 < ../Makefile.patch')
17 utils.system('patch -p0 < ../crc32c-intel.patch')
18 #TODO: regenerate arm patch
19 #utils.system('patch -p1 < ../arm.patch')
20
21 #TODO: Fix this in the makefile.
22 autodir = os.environ['AUTODIR']
23 ldflags = '-L' + autodir + '/deps/libaio/lib'
24 cflags = '-I' + autodir + '/deps/libaio/include'
25 var_ldflags = 'LDFLAGS="' + ldflags + '"'
26 var_cflags = 'CFLAGS="' + cflags + '"'
27 utils.make(make='%s %s make' % (var_ldflags, var_cflags))
28
29
30 # src from http://brick.kernel.dk/snaps/
31 pwd = os.getcwd()
32 tarball = os.path.join(pwd, 'fio-1.44.tar.bz2')
33 utils.update_version(pwd + '/src', True, version, setup, tarball, pwd)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698