Skip to content

Commit

Permalink
Add option to run functional tests
Browse files Browse the repository at this point in the history
Add option to run functional tests in libhugetlbfs tests

Signed-off-by: Harish <[email protected]>
  • Loading branch information
harish-24 committed Jan 10, 2020
1 parent 36c71b6 commit 974fb45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion memory/libhugetlbfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,12 @@ def _log_parser(log, column):
def test(self):
os.chdir(self.workdir)

functional_test = self.params.get('functional_test', default=False)
test_type = 'check'
if functional_test:
test_type = 'func'
run_log = build.run_make(
self.workdir, extra_args='BUILDTYPE=NATIVEONLY check',
self.workdir, extra_args='BUILDTYPE=NATIVEONLY %s' % test_type,
process_kwargs={'ignore_status': True}).stdout.decode('utf-8')
parsed_results = []
error = ""
Expand Down
1 change: 1 addition & 0 deletions memory/libhugetlbfs.py.data/libhugetlbfs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
setup:
functional_test: True
mount_dir: !mux
default:
hugetlbfs_dir: null
Expand Down

0 comments on commit 974fb45

Please sign in to comment.