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: remove log&blk tests from the libpmempool_rm group #5748

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
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
Loading