Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: cleanup pmempool_[!check] from deprecated tests #5749

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

This release:
- removes libpmempool tests that use log/blk/btt pool types
- removes pmempool tests that use log/blk/btt pool types
- removes other misc tests using pmempool with log/blk/btt pool types
- ...

Expand Down
13 changes: 9 additions & 4 deletions src/test/pmempool_dump/TEST0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2018, Intel Corporation
# Copyright 2014-2023, Intel Corporation
#
#
# pmempool_dump/TEST0 -- test for dump command
Expand All @@ -16,13 +16,18 @@ setup

POOL=$DIR/file.pool
LOG=out${UNITTEST_NUM}.log
ERR=err${UNITTEST_NUM}.log
rm -f $LOG && touch $LOG

expect_normal_exit $PMEMPOOL$EXESUFFIX create log $POOL
expect_normal_exit $PMEMPOOL$EXESUFFIX create obj $POOL
expect_normal_exit $PMEMWRITE$EXESUFFIX $POOL TEST
expect_normal_exit $PMEMPOOL$EXESUFFIX dump -b -o $LOG $POOL
expect_abnormal_exit $PMEMPOOL$EXESUFFIX dump -b -o $LOG $POOL 2> $ERR
cat $ERR >> $LOG
rm $ERR
echo >> $LOG
expect_normal_exit $PMEMPOOL$EXESUFFIX dump -b $POOL >> $LOG
expect_abnormal_exit $PMEMPOOL$EXESUFFIX dump -b $POOL >> $LOG 2> $ERR
cat $ERR >> $LOG
rm $ERR
echo >> $LOG

check
Expand Down
6 changes: 4 additions & 2 deletions src/test/pmempool_dump/out0.log.match
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
TEST
TEST
error: $(nW)/file.pool: PMEMOBJ pool not supported

error: $(nW)/file.pool: PMEMOBJ pool not supported

26 changes: 0 additions & 26 deletions src/test/pmempool_info/TEST0

This file was deleted.

26 changes: 0 additions & 26 deletions src/test/pmempool_info/TEST1

This file was deleted.

10 changes: 1 addition & 9 deletions src/test/pmempool_info/TEST16
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2018, Intel Corporation
# Copyright 2014-2023, Intel Corporation
#
#
# pmempool_info/TEST16 -- test for info command
Expand Down Expand Up @@ -40,14 +40,6 @@ create_poolset $POOLREP 32M:$POOL1:z 32M:$POOL2:z 32M:$POOL3:z\
R 32M:$REPL1:z 32M:$REPL2:z 32M:$REPL3:z
check_file $POOLREP

rm -f $POOLS
expect_normal_exit $PMEMPOOL$EXESUFFIX create blk 512 $POOLSET
expect_normal_exit $PMEMPOOL$EXESUFFIX info $POOLSET >> $LOG

rm -f $POOLS
expect_normal_exit $PMEMPOOL$EXESUFFIX create log $POOLSET
expect_normal_exit $PMEMPOOL$EXESUFFIX info $POOLSET >> $LOG

rm -f $POOLS $REPS
expect_normal_exit $PMEMPOOL$EXESUFFIX create obj --layout pmempool$SUFFIX $POOLREP
expect_normal_exit $PMEMPOOL$EXESUFFIX info $POOLREP >> $LOG
Expand Down
26 changes: 0 additions & 26 deletions src/test/pmempool_info/TEST2

This file was deleted.

4 changes: 2 additions & 2 deletions src/test/pmempool_info/TEST27
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2018, Intel Corporation
# Copyright 2014-2023, Intel Corporation
#
#
# pmempool_info/TEST27 -- test for arch string inside info
Expand All @@ -18,7 +18,7 @@ POOL=$DIR/file.pool
LOG=out${UNITTEST_NUM}.log
rm -f $LOG && touch $LOG

expect_normal_exit $PMEMPOOL$EXESUFFIX create blk 512 $POOL
expect_normal_exit $PMEMPOOL$EXESUFFIX create obj $POOL
expect_normal_exit $PMEMPOOL$EXESUFFIX info $POOL >> $LOG

check
Expand Down
26 changes: 0 additions & 26 deletions src/test/pmempool_info/TEST3

This file was deleted.

32 changes: 0 additions & 32 deletions src/test/pmempool_info/TEST4

This file was deleted.

32 changes: 0 additions & 32 deletions src/test/pmempool_info/TEST5

This file was deleted.

27 changes: 0 additions & 27 deletions src/test/pmempool_info/TEST6

This file was deleted.

27 changes: 0 additions & 27 deletions src/test/pmempool_info/TEST7

This file was deleted.

44 changes: 0 additions & 44 deletions src/test/pmempool_info/TEST8

This file was deleted.

29 changes: 0 additions & 29 deletions src/test/pmempool_info/TEST9

This file was deleted.

Loading
Loading