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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: client/deps/fio/fio.py
diff --git a/client/deps/fio/fio.py b/client/deps/fio/fio.py
new file mode 100644
index 0000000000000000000000000000000000000000..3a8a570da5913481a596bb640451506d1fc254bf
--- /dev/null
+++ b/client/deps/fio/fio.py
@@ -0,0 +1,33 @@
+#!/usr/bin/python
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import common, os, shutil
+from autotest_lib.client.bin import utils
+
+version = 1
+
+def setup(tarball, topdir):
+ srcdir = os.path.join(topdir, 'src')
+ utils.extract_tarball_to_dir(tarball, srcdir)
+ os.chdir(srcdir)
+ utils.system('patch -p1 < ../Makefile.patch')
+ utils.system('patch -p0 < ../crc32c-intel.patch')
+ #TODO: regenerate arm patch
+ #utils.system('patch -p1 < ../arm.patch')
+
+ #TODO: Fix this in the makefile.
+ autodir = os.environ['AUTODIR']
+ ldflags = '-L' + autodir + '/deps/libaio/lib'
+ cflags = '-I' + autodir + '/deps/libaio/include'
+ var_ldflags = 'LDFLAGS="' + ldflags + '"'
+ var_cflags = 'CFLAGS="' + cflags + '"'
+ utils.make(make='%s %s make' % (var_ldflags, var_cflags))
+
+
+# src from http://brick.kernel.dk/snaps/
+pwd = os.getcwd()
+tarball = os.path.join(pwd, 'fio-1.44.tar.bz2')
+utils.update_version(pwd + '/src', True, version, setup, tarball, pwd)

Powered by Google App Engine
This is Rietveld 408576698