Skip to content

Commit

Permalink
[TEST] API patches
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Feb 9, 2024
1 parent a5290a2 commit 5cd2f94
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/api_stability/1.1.1/0001-API-Update-TDL.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 27bc700234a23ea6c6c7337a427c4a3c6f2bbe55 Mon Sep 17 00:00:00 2001
From ace25c7fffccdac9ccaf81329ada87f60021b5f9 Mon Sep 17 00:00:00 2001
From: Simon Gene Gottlieb <[email protected]>
Date: Thu, 5 Oct 2023 13:43:30 +0200
Subject: [PATCH 1/3] [API] Update TDL
Subject: [PATCH 1/5] [API] Update TDL

---
test/unit/detail/format_ctd_test.cpp | 2 +-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 09a51343b1ee29f245eeae8210d50cd74ac9b1b4 Mon Sep 17 00:00:00 2001
From 7bf847b4991636a59f26ca89977e94f51edfbf11 Mon Sep 17 00:00:00 2001
From: Enrico Seiler <[email protected]>
Date: Mon, 5 Feb 2024 16:02:03 +0100
Subject: [PATCH 2/3] [API] Quoted strings and paths
Subject: [PATCH 2/5] [API] Quoted strings and paths

---
test/snippet/readme_sneak_peek.out | 6 ++---
Expand Down
4 changes: 2 additions & 2 deletions test/api_stability/1.1.1/0003-NOAPI-Update-copyright.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 859b9d015379e0d708700225fa55dd31f7d2e2f5 Mon Sep 17 00:00:00 2001
From f02ddb2f31a47da16742dbf612d780b328e7602b Mon Sep 17 00:00:00 2001
From: Enrico Seiler <[email protected]>
Date: Wed, 7 Feb 2024 13:31:22 +0100
Subject: [PATCH 3/3] [NOAPI] Update copyright
Subject: [PATCH 3/5] [NOAPI] Update copyright

---
test/unit/detail/format_help_test.cpp | 10 +++++-----
Expand Down
73 changes: 73 additions & 0 deletions test/api_stability/1.1.1/0004-INFRA-Update-TDL.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
From 9f040f8ccb8d304841d24d8ac4d67db0d06c370f Mon Sep 17 00:00:00 2001
From: Enrico Seiler <[email protected]>
Date: Fri, 9 Feb 2024 16:17:21 +0100
Subject: [PATCH 4/5] [INFRA] Update TDL

---
test/unit/detail/format_cwl_test.cpp | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/test/unit/detail/format_cwl_test.cpp b/test/unit/detail/format_cwl_test.cpp
index 1d27cc3..eaf0cad 100644
--- a/test/unit/detail/format_cwl_test.cpp
+++ b/test/unit/detail/format_cwl_test.cpp
@@ -76,8 +76,16 @@ TEST(format_cwl_test, full_information)
parser.info.examples.push_back("example2");

std::string expected_short = "label: default\n"
- "doc: \"description\\ndescription2\\n\"\n"
+ "doc: \"description\\n"
+ "description2\\n"
+ "\"\n"
"inputs:\n"
+ " positional_0:\n"
+ " doc: this is a positional option.\n"
+ " type: string?\n"
+ " positional_1:\n"
+ " doc: \"this is a positional option. Default: []\"\n"
+ " type: string?\n"
" int:\n"
" doc: \"this is a int option. Default: 5\"\n"
" type: long?\n"
@@ -88,6 +96,12 @@ TEST(format_cwl_test, full_information)
" type: long\n"
" inputBinding:\n"
" prefix: --jint\n"
+ " flag:\n"
+ " doc: this is a flag.\n"
+ " type: boolean?\n"
+ " kflag:\n"
+ " doc: this is a flag.\n"
+ " type: boolean?\n"
"outputs:\n"
" []\n"
"cwlVersion: v1.2\n"
@@ -196,6 +210,12 @@ TEST(format_cwl_test, subparser)
"label: default-index\n"
"doc: \"\"\n"
"inputs:\n"
+ " positional_0:\n"
+ " doc: this is a positional option.\n"
+ " type: string?\n"
+ " positional_1:\n"
+ " doc: \"this is a positional option. Default: []\"\n"
+ " type: string?\n"
" int:\n"
" doc: \"this is a int option. Default: 5\"\n"
" type: long?\n"
@@ -244,6 +264,12 @@ TEST(format_cwl_test, subparser)
" type: string?\n"
" inputBinding:\n"
" prefix: --path05\n"
+ " flag:\n"
+ " doc: this is a flag.\n"
+ " type: boolean?\n"
+ " kflag:\n"
+ " doc: this is a flag.\n"
+ " type: boolean?\n"
"outputs:\n"
" path04:\n"
" type: File?\n"
--
2.43.0

3 changes: 3 additions & 0 deletions test/api_stability/1.1.1/0004-INFRA-Update-TDL.patch.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
SPDX-License-Identifier: BSD-3-Clause
25 changes: 25 additions & 0 deletions test/api_stability/1.1.1/0005-INFRA-Use-seqan3-main-branch.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 3a7dfd8103806e97af6376e9173d686b67fb5b52 Mon Sep 17 00:00:00 2001
From: Enrico Seiler <[email protected]>
Date: Fri, 9 Feb 2024 18:13:36 +0100
Subject: [PATCH 5/5] [INFRA] Use seqan3 main branch

---
test/unit/detail/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/detail/CMakeLists.txt b/test/unit/detail/CMakeLists.txt
index 392f878..1f9a8e0 100644
--- a/test/unit/detail/CMakeLists.txt
+++ b/test/unit/detail/CMakeLists.txt
@@ -23,7 +23,7 @@ sharg_test (type_name_as_string_test.cpp)
sharg_test (version_check_debug_test.cpp)
sharg_test (version_check_release_test.cpp)

-file (DOWNLOAD https://raw.githubusercontent.com/seqan/seqan3/master/include/seqan3/version.hpp
+file (DOWNLOAD https://raw.githubusercontent.com/seqan/seqan3/main/include/seqan3/version.hpp
${CMAKE_BINARY_DIR}/include/seqan3/version.hpp)
sharg_test (seqan3_test.cpp)
target_include_directories (seqan3_test SYSTEM PUBLIC ${CMAKE_BINARY_DIR}/include)
--
2.43.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
SPDX-License-Identifier: BSD-3-Clause

0 comments on commit 5cd2f94

Please sign in to comment.