Skip to content

Refactor multiple hwtest scripts into one script with various options #10

Description

@TechnologyClassroom

Currently, the three scripts (hwtest.sh, hwtestlanproprietary.sh, and hwtestproprietary.sh) are very redundant with only a few differences in each script. It would be better to merge them all into hwtest.sh and select various options with command line arguments such as with getopt. Default behavior should not differ from hwtest.sh to keep functionality consistent.

Examples of switch use could be:

bash hwtest.sh # Results in the current equivalent to hwtest.sh

bash hwtest.sh --proprietary # Results in the current equivalent to hwtestproprietary.sh

bash hwtest.sh --proprietary --lan 192.168.1.27:6001/hwteststore/ # Results in the current equivalent to hwtestlanproprietary.sh where 192.168.1.27:6001/hwteststore/ is the location of local binaries.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions