Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TechnologyClassroom opened this issue Oct 20, 2024 · 0 comments

Comments

@TechnologyClassroom
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant