Debian Codegraph @

src/test/obj_recovery/TEST4

raw
1 #!/usr/bin/env bash
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright 2015-2019, Intel Corporation
4
5 #
6 # src/test/obj_recovery/TEST4 -- unit test for pool recovery
7 #
8
9 . ../unittest/unittest.sh
10
11 require_test_type medium
12 require_no_asan
13
14 configure_valgrind pmemcheck force-disable
15
16 setup
17
18 # exits in the middle of transaction, so pool cannot be closed
19 export MEMCHECK_DONT_CHECK_LEAKS=1
20
21 create_poolset $DIR/testset 16M:$DIR/testfile1 R 16M:$DIR/testfile2
22
23 expect_normal_exit ./obj_recovery$EXESUFFIX $DIR/testset n c n
24
25 compare_replicas "-soOaAbd -l -Z -H -C" \
26 $DIR/testfile1 $DIR/testfile2 > diff_pre$UNITTEST_NUM.log
27
28 expect_normal_exit ./obj_recovery$EXESUFFIX $DIR/testset n o n
29
30 compare_replicas "-soOaAbd -l -Z -H -C" \
31 $DIR/testfile1 $DIR/testfile2 > diff_post$UNITTEST_NUM.log
32
33 check
34
35 pass