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

Unified Diff: client/deps/hdparm/hdparm.py

Issue 549083: Add a test to detect if the main disk is a SSD. (Closed)
Patch Set: Setup deps and include this test into pre-compilation Created 10 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
« no previous file with comments | « client/deps/hdparm/control ('k') | client/deps/hdparm/hdparm-9.27.tar.gz » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/hdparm/hdparm.py
diff --git a/client/deps/hdparm/hdparm.py b/client/deps/hdparm/hdparm.py
new file mode 100755
index 0000000000000000000000000000000000000000..14142aa0db34fae51fcaa970eb8c4a10064714d5
--- /dev/null
+++ b/client/deps/hdparm/hdparm.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+
+import os
+import common
+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('make')
+ utils.system('make binprefix=%s manprefix=%s install' % (topdir, topdir))
+ os.chdir(topdir)
+
+
+# The source is grabbed from
+# http://sourceforge.net/projects/hdparm/files/hdparm/hdparm-9.27.tar.gz
+pwd = os.getcwd()
+tarball = os.path.join(pwd, 'hdparm-9.27.tar.gz')
+utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)
« no previous file with comments | « client/deps/hdparm/control ('k') | client/deps/hdparm/hdparm-9.27.tar.gz » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698