Skip to content

Commit

Permalink
Update: readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seankingyang committed Aug 10, 2023
1 parent 2e5b478 commit a20bea2
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions Tools/PC/testflinger_yaml_generator/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ So the template structure will like this:

## Launcher

- header part:
- launcher, ui, daemon, transport, exproter, report
- main part:
- launcher, ui, daemon(agent), transport, exporter, report

- environment part:
- env part:
- environment (testing environment config)

- manifest part:
Expand All @@ -29,7 +29,7 @@ So the template structure will like this:
## test cmd in yaml file

- execute bash script will be in alphabetical order
(File’s prefix is two digital number, ie 00xxx, …, 99xxx)
(File’s prefix is two digital number, ie 00_xxx, …, 99_xxx)

## Usage

Expand All @@ -46,12 +46,11 @@ usage: testflinger_ymal_generator.py [-h] -c CID -o OUTPUTFILENAME
[--sessionDesc SESSIONDESC]
[--manifestJson MANIFESTJSON]
[--LauncherTemplate LAUNCHERTEMPLATE]
[--LauncherPrefix LAUNCHERPREFIX] [--LpID LPID]
[--reserveTime RESERVETIME]
[--TFYamlTemplate TFYAMLTEMPLATE]
[--binFolder BINFOLDER]
Testflinger yaml file genertor
Testflinger yaml file generator
optional arguments:
-h, --help show this help message and exit
Expand All @@ -67,7 +66,7 @@ general options:
--testplan TESTPLAN Set the checkbox test plan name. If didn't set this will not run
checkbox test (default: )
--excludeJobs EXCLUDEJOBS
Set the exclude jobs pattern. ie".*memory/memory_stress_ng".
Set the exclude jobs pattern. ie".*memory/memory_stress_ng.*".
(default: )
--checkboxType {deb,snap}
Set which checkbox type you need to install and test. (default: deb)
Expand All @@ -91,9 +90,7 @@ Launcher settion options:
./template/manifest.json)
--LauncherTemplate LAUNCHERTEMPLATE
Set the launcher template folder (default:
./template/divid_launcher/)
--LauncherPrefix LAUNCHERPREFIX
Set the launcher prefix you need to find (default: launcher)
./template/launcher_config/)
Testflinger yaml options:
--LpID LPID If you want to reserve the DUT, please input your Launchpad ID
Expand All @@ -106,15 +103,17 @@ Testflinger yaml options:
Test command in testflinger yaml:
--binFolder BINFOLDER
Set the testflinger test command folder. (default:
./template/shell_scripts/)
```

### Basic usually usage
### Basically usage

we using the default timeout, and we don’t need to have insert the template
path

1. We need to modify the `./template/bin/*`
(mostly we only need to modify `20before_test`, `99end_test`)
1. We need to modify the `./template/shell_scripts/*`
(mostly we only need to modify `20_before_test`, `99_end_test`)

> `./testflinger_ymal_generator.py -c $CID -o $OUTPUT_YAML --LpID $LP_ID --testplan $TEST_PLAN --provisionImage $IMAGE_NAME --manifestJson $MANIFEST_JSON_PATH`
Expand All @@ -126,12 +125,12 @@ path

> `./testflinger_ymal_generator.py -c $CID -o $OUTPUT_YAML --LpID $LP_ID --testplan $TEST_PLAN --manifestJson $MANIFEST_JSON_PATH`
## How do we do for testing (w/ provision) cert lab’s DUT w/ this scrpit
## How do we do for testing (w/ provision) cert lab’s DUT w/ this script

**Prepare:** CID, provision_image_name, manifest_json_file, test_plan_name.

**Modify file:** `20before_test` (if we want to add the staging ppa repo or
something else), `99end_test` (maybe copy some file in artificats folder)
**Modify file:** `20_before_test` (if we want to add the staging ppa repo or
something else), `99_end_test` (maybe copy some file in artifacts folder)

```sh
git clone --depth 1 --branch main [email protected]:canonical/ce-oem-dut-checkbox-configuration.git
Expand Down

0 comments on commit a20bea2

Please sign in to comment.