Skip to content

Commit eb89ed8

Browse files
Add more test cases and readme contents
Signed-off-by: Peter Zhu <[email protected]>
1 parent b6b5c09 commit eb89ed8

File tree

4 files changed

+2499
-1
lines changed

4 files changed

+2499
-1
lines changed

src/build_workflow/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ The following options are available in `build.sh`.
6565

6666
| name | description |
6767
|--------------------|-------------------------------------------------------------------------|
68-
| --snapshot | Build a snapshot instead of a release artifact, default is `false`. |
68+
| -s, --snapshot | Build a snapshot instead of a release artifact, default is `false`. |
69+
| -a, --architecture | Specify architecture to build, default is architecture of build system. |
70+
| -d, --distribution | Specify distribution to build, default is `tar`. |
71+
| -p, --platform | Specify platform to build, default is platform of build system. |
6972
| --component [name] | Rebuild a single component by name, e.g. `--component common-utils`. |
7073
| --keep | Do not delete the temporary working directory on both success or error. |
7174
| -l, --lock | Generate a stable reference manifest. |

tests/tests_build_workflow/test_build_target.py

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def test_build_id_from_env(self) -> None:
2525
def test_build_id_from_arg(self) -> None:
2626
self.assertEqual(BuildTarget(version="1.1.0", architecture="x86", build_id="id").build_id, "id")
2727

28+
def test_distribution_from_arg(self) -> None:
29+
self.assertEqual(BuildTarget(version="1.3.0", architecture="x86", distribution="rpm").distribution, "rpm")
30+
2831
def test_opensearch_version(self) -> None:
2932
self.assertEqual(
3033
BuildTarget(version="1.1.0", architecture="x86", snapshot=False).opensearch_version,

0 commit comments

Comments
 (0)