Skip to content

Commit

Permalink
[BFX-758] Switch to pbtestutils
Browse files Browse the repository at this point in the history
  • Loading branch information
pb-dseifert committed Nov 2, 2023
1 parent 39c263e commit d0838d6
Show file tree
Hide file tree
Showing 23 changed files with 17 additions and 1,332 deletions.
17 changes: 0 additions & 17 deletions .clang-format

This file was deleted.

61 changes: 0 additions & 61 deletions bamboo_build.sh

This file was deleted.

9 changes: 6 additions & 3 deletions include/pbmm2/MM2Helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ struct CompatMappedRead : public Data::MappedRead
{
CompatMappedRead(Data::MappedRead mr, const int32_t refIdArg)
: Data::MappedRead{std::move(mr)}, refId{refIdArg}
{}
{
}

int32_t refId = 0;
bool primaryAln = true;
Expand All @@ -190,10 +191,12 @@ struct CompatMappedRead : public Data::MappedRead
void RemoveTag(const char*) const {}
template <typename... Args>
void EditTag(const char*, Args...) const
{}
{
}
template <typename... Args>
void AddTag(const char*, Args...) const
{}
{
}
};

struct AlignedRead : public AlignedRecordImpl<CompatMappedRead>
Expand Down
11 changes: 5 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,11 @@ subdir('include')
subdir('src')

# tests
if not meson.is_subproject()
if get_option('tests')
pbmm2_clang_formatter = find_program('tools/check-formatting')
pbmm2_cram_script = find_program('scripts/cram')
subdir('tests')
endif
if (not meson.is_subproject()) and get_option('tests')
pbmm2_pbtestutils_dep = dependency('pbtestutils', fallback : ['pbtestutils', 'pbtestutils_dep'])
pbmm2_cram_script = subproject('pbtestutils').get_variable('cram_script')

subdir('tests')
endif

# dependency info
Expand Down
9 changes: 0 additions & 9 deletions scripts/cram

This file was deleted.

3 changes: 2 additions & 1 deletion src/StreamWriters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ StreamWriters::StreamWriters(BAM::BamHeader& header, const std::string& outPrefi
, sortThreads_(sortThreads)
, numThreads_(numThreads)
, sortMemory_(sortMemory)
{}
{
}

StreamWriter& StreamWriters::at(const std::string& infix, const std::string& sample)
{
Expand Down
4 changes: 4 additions & 0 deletions subprojects/pbtestutils.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[wrap-git]
directory=pbtestutils
url=ssh://git@bitbucket.nanofluidics.com:7999/bfx/pbtestutils.git
revision=develop
7 changes: 0 additions & 7 deletions tests/meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
test(
'pbmm2 formatting check',
pbmm2_clang_formatter,
args : [
'--all'],
workdir : meson.project_source_root())

subdir('unit')

pbmm2_cram_test = [
Expand Down
6 changes: 0 additions & 6 deletions third-party/cram-0.7/cram/__init__.py

This file was deleted.

10 changes: 0 additions & 10 deletions third-party/cram-0.7/cram/__main__.py

This file was deleted.

134 changes: 0 additions & 134 deletions third-party/cram-0.7/cram/_cli.py

This file was deleted.

Loading

0 comments on commit d0838d6

Please sign in to comment.