Skip to content

Commit 8be3fae

Browse files
committed
test: use separate files for each test
use a separate file for each test to avoid interferences between tests
1 parent 96acf9b commit 8be3fae

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

src/test/obj_pmalloc_mt/TEST0

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# SPDX-License-Identifier: BSD-3-Clause
3-
# Copyright 2015-2019, Intel Corporation
3+
# Copyright 2015-2023, Intel Corporation
44

55
#
66
# src/test/obj_pmalloc_mt/TEST0 -- multithreaded allocator test
@@ -16,6 +16,6 @@ configure_valgrind helgrind force-enable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile
19+
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST0
2020

2121
pass

src/test/obj_pmalloc_mt/TEST1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# SPDX-License-Identifier: BSD-3-Clause
3-
# Copyright 2016-2019, Intel Corporation
3+
# Copyright 2016-2023, Intel Corporation
44

55
#
66
# src/test/obj_pmalloc_mt/TEST1 -- multithreaded allocator test
@@ -16,6 +16,6 @@ configure_valgrind helgrind force-disable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile
19+
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST1
2020

2121
pass

src/test/obj_pmalloc_mt/TEST2

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# SPDX-License-Identifier: BSD-3-Clause
3-
# Copyright 2015-2019, Intel Corporation
3+
# Copyright 2015-2023, Intel Corporation
44

55
#
66
# src/test/obj_pmalloc_mt/TEST2 -- multithreaded allocator test
@@ -16,6 +16,6 @@ configure_valgrind helgrind force-enable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile
19+
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile.TEST2
2020

2121
pass

src/test/obj_pmalloc_mt/TEST3

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# SPDX-License-Identifier: BSD-3-Clause
3-
# Copyright 2015-2019, Intel Corporation
3+
# Copyright 2015-2023, Intel Corporation
44

55
#
66
# src/test/obj_pmalloc_mt/TEST3 -- multithreaded allocator test
@@ -16,6 +16,6 @@ configure_valgrind drd force-enable
1616
setup
1717

1818
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
19-
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile
19+
./obj_pmalloc_mt$EXESUFFIX 4 64 4 $DIR/testfile.TEST3
2020

2121
pass

src/test/obj_pmalloc_mt/TEST8

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ require_fs_type pmem
1313
require_test_type short
1414
setup
1515

16-
if test -f "rm $DIR/testfile"; then
17-
rm $DIR/testfile
16+
if test -f "rm $DIR/testfile.TEST8"; then
17+
rm $DIR/testfile.TEST8
1818
fi
1919
PMEM_IS_PMEM_FORCE=1 expect_normal_exit\
20-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile
20+
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST8
2121

22-
if test -f "rm $DIR/testfile"; then
23-
rm $DIR/testfile
22+
if test -f "rm $DIR/testfile.TEST8"; then
23+
rm $DIR/testfile.TEST8
2424
fi
2525

2626
PMEM_IS_PMEM_FORCE=1 expect_abnormal_exit\
27-
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile
27+
./obj_pmalloc_mt$EXESUFFIX 32 1000 100 $DIR/testfile.TEST8
2828

2929
check
3030

utils/docker/run-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# SPDX-License-Identifier: BSD-3-Clause
3-
# Copyright 2016-2022, Intel Corporation
3+
# Copyright 2016-2023, Intel Corporation
44

55
#
66
# run-build.sh - is called inside a Docker container; prepares the environment

0 commit comments

Comments
 (0)