Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pmdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Egorov, Sergey (PG/R - Comp Sci & Elec Eng)
pmdk
Commits
34838f31
Commit
34838f31
authored
6 years ago
by
Jan M Michalski
Browse files
Options
Downloads
Patches
Plain Diff
test: fix obj_rpmem_heap_interrupt
- kill rpmemd prior to calling pmempool rm
parent
4d5c6d17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/obj_rpmem_heap_interrupt/TEST0
+8
-2
8 additions, 2 deletions
src/test/obj_rpmem_heap_interrupt/TEST0
with
8 additions
and
2 deletions
src/test/obj_rpmem_heap_interrupt/TEST0
+
8
−
2
View file @
34838f31
#!/usr/bin/env bash
#!/usr/bin/env bash
#
#
# Copyright 2016-201
8
, Intel Corporation
# Copyright 2016-201
9
, Intel Corporation
# Copyright (c) 2016, Microsoft Corporation. All rights reserved.
# Copyright (c) 2016, Microsoft Corporation. All rights reserved.
#
#
# Redistribution and use in source and binary forms, with or without
# Redistribution and use in source and binary forms, with or without
...
@@ -51,7 +51,8 @@ require_nodes 2
...
@@ -51,7 +51,8 @@ require_nodes 2
require_node_libfabric 0
$RPMEM_PROVIDER
require_node_libfabric 0
$RPMEM_PROVIDER
require_node_libfabric 1
$RPMEM_PROVIDER
require_node_libfabric 1
$RPMEM_PROVIDER
init_rpmem_on_node 1 0
PID_FILE
=
rpmemd.pid
init_rpmem_on_node 1 0:
$PID_FILE
# binary for this test
# binary for this test
EXE
=
obj_heap_interrupt
EXE
=
obj_heap_interrupt
...
@@ -81,7 +82,12 @@ create_holey_file_on_node 0 9M ${NODE_DIR[0]}$TEST_FILE_REMOTE
...
@@ -81,7 +82,12 @@ create_holey_file_on_node 0 9M ${NODE_DIR[0]}$TEST_FILE_REMOTE
# execute test
# execute test
expect_normal_exit run_on_node 1 ./
$EXE$EXESUFFIX
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
c 0
expect_normal_exit run_on_node 1 ./
$EXE$EXESUFFIX
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
c 0
# pmempool rm expects flock from the remote parts are released otherwise it will
# fail to delete them so it has to wait for rpmemd to exit
expect_abnormal_exit wait_on_node 0
$PID_FILE
expect_normal_exit run_on_node 1 ../pmempool
rm
-sf
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
expect_normal_exit run_on_node 1 ../pmempool
rm
-sf
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
expect_normal_exit run_on_node 1 ../pmempool create
--layout
heap_interrupt obj
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
expect_normal_exit run_on_node 1 ../pmempool create
--layout
heap_interrupt obj
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
expect_normal_exit run_on_node 1 ./
$EXE$EXESUFFIX
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
o 0
expect_normal_exit run_on_node 1 ./
$EXE$EXESUFFIX
${
NODE_DIR
[1]
}
$TEST_SET_LOCAL
o 0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment