Skip to content

Commit

Permalink
Merge pull request #5748 from janekmi/remove_log_blk_from_libpmempool_rm
Browse files Browse the repository at this point in the history
test: remove log&blk tests from the libpmempool_rm group
  • Loading branch information
janekmi authored Jun 28, 2023
2 parents 9a490e5 + de7710b commit e2d0619
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
3 changes: 1 addition & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
* Unreleased *

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
- removes libpmempool tests that use log/blk/btt pool types
- ...

Wed May 31 2023 Oksana Sałyk <oksana.salyk@intel.com>
Expand Down
22 changes: 10 additions & 12 deletions src/test/libpmempool_rm/TEST0
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2018, Intel Corporation
# Copyright 2016-2023, Intel Corporation
#
#
# libpmempool_rm/TEST0 -- test for pmempool_rm with single-file pools
# libpmempool_rm/TEST0 -- test for pmempool_rm with single-file pool
#

. ../unittest/unittest.sh
Expand All @@ -16,21 +16,19 @@ setup

enable_log_append

expect_normal_exit $PMEMPOOL$EXESUFFIX create blk 512 $DIR/pool.blk
expect_normal_exit $PMEMPOOL$EXESUFFIX create log $DIR/pool.log
expect_normal_exit $PMEMPOOL$EXESUFFIX create obj $DIR/pool.obj
check_files $DIR/pool.blk $DIR/pool.log $DIR/pool.obj
check_files $DIR/pool.obj

# this should remove all the pool files
expect_normal_exit ./libpmempool_rm$EXESUFFIX $DIR/pool.blk $DIR/pool.log $DIR/pool.obj
# this should remove the pool file
expect_normal_exit ./libpmempool_rm$EXESUFFIX $DIR/pool.obj

# check if all pool files are removed
check_no_files $DIR/pool.blk $DIR/pool.log $DIR/pool.obj
# check if the file is removed
check_no_files $DIR/pool.obj

# this should report errors for all files
expect_normal_exit ./libpmempool_rm$EXESUFFIX $DIR/pool.blk $DIR/pool.log $DIR/pool.obj
# this should report errors
expect_normal_exit ./libpmempool_rm$EXESUFFIX $DIR/pool.obj
# this should ignore all errors
expect_normal_exit ./libpmempool_rm$EXESUFFIX -f $DIR/pool.blk $DIR/pool.log $DIR/pool.obj
expect_normal_exit ./libpmempool_rm$EXESUFFIX -f $DIR/pool.obj

check

Expand Down
2 changes: 0 additions & 2 deletions src/test/libpmempool_rm/out0.log.match
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ libpmempool_rm/TEST0: START: libpmempool_rm$(nW)
libpmempool_rm/TEST0: DONE
libpmempool_rm/TEST0: START: libpmempool_rm$(nW)
$(nW)libpmempool_rm$(nW) $(*)
$(nW)pool.blk: removing file failed: No such file or directory
$(nW)pool.log: removing file failed: No such file or directory
$(nW)pool.obj: removing file failed: No such file or directory
libpmempool_rm/TEST0: DONE
libpmempool_rm/TEST0: START: libpmempool_rm$(nW)
Expand Down

0 comments on commit e2d0619

Please sign in to comment.