Project

General

Profile

Feature #24296

Feature #20901: Run a shell linter on bash scripts and add unit tests

Add initial unit tests for shell scripts

Added by Marco Mambelli 7 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
04/08/2020
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

After examining the different option for unit tests in shell seems that BATS may be a good start.
It was chosen for its simple syntax.
bats-mock may be an useful adds-on since alias may not play well w/ BATS.
shellspec is a close second for its BDD syntax and the coverage reports.
shunit2 is also worth considering if different ones are compared

The test directory will be /test/bats (from the project source)
The first candidates will be the functions in singularity_lib.sh and the singularity wrapper.


Related issues

Related to GlideinWMS - Feature #24295: Update the singularity wrapper w/ new features form the OSG wrapperClosed04/08/2020

History

#1 Updated by Marco Mambelli 6 months ago

The code is in v36/24295.
This ticket will follow 24295

#2 Updated by Marco Mambelli 6 months ago

  • Related to Feature #24295: Update the singularity wrapper w/ new features form the OSG wrapper added

#3 Updated by Marco Mambelli 6 months ago

  • Status changed from New to Closed


Also available in: Atom PDF