Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.39 KB

CONTRIBUTING.md

File metadata and controls

68 lines (46 loc) · 1.39 KB

Contributing

Prepare Development Environment

  • Prepare dev tools

    • Install GIT
  • Clone GIT repository

    git clone https://github.com/automation64/bashlib64.git
  • Adjust environment variables to match your configuration:

    • Copy environment definition files from templates:
    cp dot.local .local
    cp dot.secrets .secrets
    • Review and update content for both files
  • Download dev support scripts

    ./bin/dev-lib-base

Update source code

  • Add/Edit source code in: src/

Batch test source code locally

  • Add/update test-cases in: test/batscore

  • Build for testing:

    ./bin/dev-build-project
  • Run test-cases using container images bundled with the testmansh tool

    ./bin/dev-test-testmansh [CONTAINER] [TEST_CASE]
    # example:
    ./bin/dev-test-testmansh bash-test/sles-15-bash-test test/batscore/bash-os/iam/bl64_iam_user_add_08 

Test source code in live container

  • Open a lab (sandbox) container

    ./bin/dev-lab-bash [CONTAINER]
  • Run ad-hoc tests

    ./test/bash/ad-hoc

Repositories