Skip to content

Commit

Permalink
improve readability and update tests parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Mar 12, 2024
1 parent 04f21d1 commit f1eb030
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 32 deletions.
43 changes: 31 additions & 12 deletions scripts/installscripts/tests/run_installation_classic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,37 @@ echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selecti

# Run installation (in interactive mode)
# y confirm interactive
# n dont configure wifi
# y configure autohotspot
# y use autohotspot default config
# y use default audio iface
# n no spotify
# y configure mpd
# y audio default location
# y config gpio
# n no RFID registration
# n No reboot

./../install-jukebox.sh <<< $'y\nn\n\ny\ny\n\ny\n\nn\n\ny\n\ny\n\ny\n\ny\nn\nn\n'
# n configure wifi (extra ENTER)
# n configure autohotspot (extra ENTER)
# - use autohotspot default config
# y use default audio iface (extra ENTER)
# n spotify (extra ENTER)
# y configure mpd (extra ENTER)
# y audio default location (extra ENTER)
# y config gpio (extra ENTER)
# y start installation
# n RFID registration
# n reboot

./../install-jukebox.sh <<< "y
n
n
y
n
y
y
y
y
n
n
"
INSTALLATION_EXITCODE=$?

# Test installation
Expand Down
40 changes: 31 additions & 9 deletions scripts/installscripts/tests/run_installation_tests2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,42 @@ echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selecti

# Run installation (in interactive mode)
# y confirm interactive
# n dont configure wifi
# n dont configure autohotspot
# y use default audio iface
# n no spotify
# y configure mpd
# y audio default location
# y use gpio
# n configure wifi (extra ENTER)
# n configure autohotspot (extra ENTER)
# y use default audio iface (extra ENTER)
# n spotify (extra ENTER)
# y configure mpd (extra ENTER)
# y audio default location (extra ENTER)
# y use gpio (extra ENTER)
# y start installation
# y RFID registration
# 2 use RC522 reader
# y, reader is connected
# y, use legacy readermode
# n No reboot
# n reboot

./../install-jukebox.sh <<< $'y\nn\n\nn\n\ny\n\nn\n\ny\n\ny\n\ny\n\ny\ny\n2\ny\ny\nn\n'
./../install-jukebox.sh <<< "y
n
n
y
n
y
y
y
y
y
2
y
y
n
"
INSTALLATION_EXITCODE=$?

# Test installation
Expand Down
45 changes: 34 additions & 11 deletions scripts/installscripts/tests/run_installation_tests3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,40 @@ echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selecti

# Run installation (in interactive mode)
# y confirm interactive
# n dont configure wifi
# n dont configure autohotspot
# y use default audio iface
# y spotify with myuser, mypassword, myclient_id, myclient_secret
# y configure mpd
# y audio default location
# y config gpio
# n no RFID registration
# n No reboot

./../install-jukebox.sh <<< $'y\nn\n\nn\n\ny\n\ny\nmyuser\nmypassword\nmyclient_id\nmyclient_secret\n\ny\n\ny\n\ny\n\ny\nn\nn\n'
# n configure wifi (extra ENTER)
# n configure autohotspot (extra ENTER)
# y use default audio iface (extra ENTER)
# y spotify with myuser, mypassword, myclient_id, myclient_secret (extra ENTER)
# y configure mpd (extra ENTER)
# y audio default location (extra ENTER)
# y config gpio (extra ENTER)
# y start installation
# n RFID registration
# n reboot

./../install-jukebox.sh <<< "y
n
n
y
y
myuser
mypassword
myclient_id
myclient_secret
y
y
y
y
n
n
"
INSTALLATION_EXITCODE=$?

# Test installation
Expand Down

0 comments on commit f1eb030

Please sign in to comment.