Skip to content

Commit

Permalink
Make a bunch of client tests cross compiling for arm platform
Browse files Browse the repository at this point in the history
Signed-off-by: Olof Johansson <[email protected]>
  • Loading branch information
Olof Johansson committed Feb 16, 2011
1 parent 69d260f commit 8509ac4
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 13 deletions.
1 change: 1 addition & 0 deletions bash_shared_mapping/bash_shared_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def setup(self, tarball = 'ext3-tools.tar.gz'):
utils.extract_tarball_to_dir(self.tarball, self.srcdir)

os.chdir(self.srcdir)
utils.system('patch -p1 < ../makefile.patch')
utils.make('bash-shared-mapping usemem')


Expand Down
2 changes: 1 addition & 1 deletion fsfuzzer/fsfuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def setup(self, tarball = 'fsfuzzer-0.6.tar.gz'):
tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
utils.extract_tarball_to_dir(tarball, self.srcdir)
os.chdir(self.srcdir)

utils.system('patch -p1 < ../makefile.patch')
utils.make()


Expand Down
1 change: 1 addition & 0 deletions fsstress/fsstress.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def setup(self, tarball = 'ext3-tools.tar.gz'):

os.chdir(self.srcdir)
utils.system('patch -p1 < ../fsstress-ltp.patch')
utils.system('patch -p1 < ../makefile.patch')
utils.make('fsstress')


Expand Down
1 change: 1 addition & 0 deletions interbench/interbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def setup(self, tarball = 'interbench-0.30.tar.bz2'):
tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
utils.extract_tarball_to_dir(tarball, self.srcdir)
os.chdir(self.srcdir)
utils.system('patch -p1 < ../makefile.patch')
utils.make()


Expand Down
1 change: 1 addition & 0 deletions iozone/iozone.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def setup(self, tarball='iozone3_347.tar'):
tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
utils.extract_tarball_to_dir(tarball, self.srcdir)
os.chdir(os.path.join(self.srcdir, 'src/current'))
utils.system('patch -p3 < ../../../makefile.patch')

arch = utils.get_current_kernel_arch()
if (arch == 'ppc'):
Expand Down
2 changes: 1 addition & 1 deletion linus_stress/linus_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def setup(self):
os.chdir(self.bindir)
utils.system('cp linus_stress.c src/')
os.chdir(self.srcdir)
utils.system('cc linus_stress.c -D_POSIX_C_SOURCE=200112 -o linus_stress')
utils.system(utils.get_cc() + ' linus_stress.c -D_POSIX_C_SOURCE=200112 -o linus_stress')


def initialize(self):
Expand Down
2 changes: 2 additions & 0 deletions lmbench/lmbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ def setup(self, tarball = 'lmbench3.tar.bz2', fsdir=None, file=None):
os.chdir(self.srcdir)
p1 = 'patch -p1 < ../0001-Fix-build-issues-with-lmbench.patch'
p2 = 'patch -p1 < ../0002-Changing-shebangs-on-lmbench-scripts.patch'
p3 = 'patch -p1 < ../0003-makefile.patch'
utils.system(p1)
utils.system(p2)
utils.system(p3)

# build lmbench
utils.make()
Expand Down
11 changes: 7 additions & 4 deletions memory_api/memory_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ class memory_api(test.test):
version = 1

def setup(self):
utils.system("gcc %s -o %s" %
(os.path.join(self.bindir, "memory_api.c"),
os.mkdir(self.tmpdir)
utils.system("%s %s -o %s" %
(utils.get_cc(),
os.path.join(self.bindir, "memory_api.c"),
os.path.join(self.tmpdir, "memory_api")))
utils.system("gcc %s -o %s" %
(os.path.join(self.bindir, "mremaps.c"),
utils.system("%s %s -o %s" %
(utils.get_cc(),
os.path.join(self.bindir, "mremaps.c"),
os.path.join(self.tmpdir, "mremaps")))


Expand Down
2 changes: 1 addition & 1 deletion rmaptest/rmaptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def initialize(self):

def setup(self):
os.chdir(self.srcdir)
utils.system('gcc -Wall -o rmaptest rmap-test.c')
utils.system(utils.get_cc() + ' -Wall -o rmaptest rmap-test.c')


def execute(self, args = ''):
Expand Down
9 changes: 4 additions & 5 deletions signaltest/src/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

TARGET=signaltest
FLAGS= -Wall -O2
CC ?= $(CROSS_COMPILE)gcc
TARGET = signaltest
FLAGS = -Wall -O2
LIBS = -lpthread -lrt

all: signaltest.c
$(CROSS_COMPILE)gcc $(FLAGS) $^ -o $(TARGET) $(LIBS)
$(CC) $(FLAGS) $^ -o $(TARGET) $(LIBS)

clean:
rm -f $(TARGET) *.o .depend *.*~

2 changes: 1 addition & 1 deletion tiobench/tiobench.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def setup(self, tarball = 'tiobench-0.3.3.tar.bz2'):
tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
utils.extract_tarball_to_dir(tarball, self.srcdir)
os.chdir(self.srcdir)

utils.system('patch -p1 < ../makefile.patch')
utils.system('make')


Expand Down

0 comments on commit 8509ac4

Please sign in to comment.