Skip to content

Commit

Permalink
test: cleanup pmempool_[!check] from depracated tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Michalski <jan.michalski@intel.com>
  • Loading branch information
janekmi committed Jun 28, 2023
1 parent d42a50d commit 5e1e291
Show file tree
Hide file tree
Showing 37 changed files with 42 additions and 1,073 deletions.
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

0 comments on commit 5e1e291

Please sign in to comment.