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 27, 2023
1 parent 627e970 commit f92c69d
Show file tree
Hide file tree
Showing 37 changed files with 30 additions and 1,068 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 API tests that use log/blk/btt pool types (partially)
- removes pmempool !check tests that use log/blk/btt pool types
- ...

Wed May 31 2023 Oksana Sałyk <oksana.salyk@intel.com>
Expand Down
8 changes: 4 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 @@ -18,11 +18,11 @@ POOL=$DIR/file.pool
LOG=out${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
echo >> $LOG
expect_normal_exit $PMEMPOOL$EXESUFFIX dump -b $POOL >> $LOG
expect_abnormal_exit $PMEMPOOL$EXESUFFIX dump -b $POOL >> $LOG
echo >> $LOG

check
Expand Down
4 changes: 2 additions & 2 deletions src/test/pmempool_dump/out0.log.match
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TEST
TEST


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 f92c69d

Please sign in to comment.