blob: 1c74567d8ed9988481c2fe753cc3e368d4a0397e [file] [log] [blame]
mblighec0a9112006-04-28 00:44:28 +00001import test
2from autotest_utils import *
3
4# THIS TEST IS INCOMPLETE. IT WILL NOT WORK
5
6class sparse(test.test):
7 version = 1
8
9 # http://www.codemonkey.org.uk/projects/git-snapshots/sparse/sparse-2006-04-28.tar.gz
10 def setup(self, tarball = 'sparse-2006-04-28.tar.gz'):
11 tarball = unmap_url(self.bindir, tarball, self.tmpdir)
12 extract_tarball_to_dir(tarball, self.srcdir)
13 os.chdir(self.srcdir)
14
15 system('make')
16 system('ln check sparse')
17
18 self.top_dir = self.job.tmpdir+'/sparse'
19 kernel = self.job.kernel(self.top_dir, kernelver)
20 kernel.config(self.bindir + '/config')
21
22 def execute(self, iterations = 1, args = ''):
23 kernel.build(2 * count_cpus(), 'C=1')