-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add statistics verification to obj_pmalloc_mt test
Enable statistics in pmalloc mt tests. Extend diagnostic of some tests like pmalloc, prealloc result verification. Signed-off-by: Tomasz Gromadzki <[email protected]>
- Loading branch information
Showing
7 changed files
with
210 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST0 -- multithreaded allocator test | ||
# (long helgrind version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem | ||
require_test_type long | ||
configure_valgrind helgrind force-enable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST1 -- multithreaded allocator test | ||
# (medium non-helgrind/drd version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_fs_type pmem | ||
require_test_type medium | ||
configure_valgrind drd force-disable | ||
configure_valgrind helgrind force-disable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST2 -- multithreaded allocator test | ||
# (medium helgrind version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem | ||
require_test_type medium | ||
configure_valgrind helgrind force-enable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST3 -- multithreaded allocator test | ||
# (medium drd version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem | ||
require_test_type long | ||
configure_valgrind drd force-enable | ||
setup | ||
|
||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile 1 | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST3 -- multithreaded allocator test | ||
# (medium drd version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem | ||
require_test_type long | ||
#configure_valgrind drd force-enable | ||
setup | ||
|
||
for n in {1..50} | ||
do | ||
if test -f "rm $DIR/testfile"; then | ||
rm $DIR/testfile | ||
fi | ||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 1 $n | ||
done | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# src/test/obj_pmalloc_mt/TEST3 -- multithreaded allocator test | ||
# (medium drd version) w/ statistics | ||
# | ||
|
||
. ../unittest/unittest.sh | ||
|
||
require_valgrind 3.10 | ||
require_fs_type pmem | ||
require_test_type long | ||
#configure_valgrind drd force-enable | ||
setup | ||
|
||
for n in {1..50} | ||
do | ||
if test -f "rm $DIR/testfile"; then | ||
rm $DIR/testfile | ||
fi | ||
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\ | ||
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile 0 $n | ||
done | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters