Page MenuHomePhabricator

test: Create new test library
ClosedPublic

Authored by deadalnix on Jun 4 2020, 00:36.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC47887f4b096e: test: Create new test library
Summary
  • scripted-diff: test: Move setup_common to test library

-BEGIN VERIFY SCRIPT-

  1. Move files for f in $(git ls-files src/test/lib/); do git mv $f src/test/util/; done git mv src/test/setup_common.cpp src/test/util/ git mv src/test/setup_common.h src/test/util/
  2. Replace Windows paths sed -i -e 's|\\setup_common|\\util\\setup_common|g' $(git grep -l '\\setup_common') sed -i -e 's|src\\test\\lib\\|src\\test\\util\\|g' build_msvc/test_bitcoin/test_bitcoin.vcxproj
  3. Everything else sed -i -e 's|/setup_common|/util/setup_common|g' $(git grep -l 'setup_common') sed -i -e 's|test/lib/|test/util/|g' $(git grep -l 'test/lib/')
  4. Fix include guard sed -i -e 's|BITCOIN_TEST_SETUP_COMMON_H|BITCOIN_TEST_UTIL_SETUP_COMMON_H|g' ./src/test/util/setup_common.h sed -i -e 's|BITCOIN_TEST_LIB_|BITCOIN_TEST_UTIL_|g' $(git grep -l 'BITCOIN_TEST_LIB_')

-END VERIFY SCRIPT-

  • doc: Add documentation for new test/lib

This is a backport of Core PR17384

Depends on D6358

Test Plan
ninaj all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix created this revision.Jun 4 2020, 00:36
Herald added a reviewer: Restricted Project. · View Herald TranscriptJun 4 2020, 00:36
deadalnix requested review of this revision.Jun 4 2020, 00:36
teamcity edited the summary of this revision. (Show Details)Jun 4 2020, 00:37

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

Fabien accepted this revision.Jun 4 2020, 07:07
This revision is now accepted and ready to land.Jun 4 2020, 07:07
This revision was automatically updated to reflect the committed changes.