Skip to content

Commit 428405f

Browse files
committed
test: add purge step to all module tests
Adds cleanup step at the end of all 51 test scripts to ensure modules are properly purged after testing. This prevents resource leaks and ensures clean state for subsequent test runs. Test structure: 1. purge - Clean up any previous state 2. install - Install the module 3. status - Verify it's installed 4. purge - Clean up after testing (newly added)
1 parent 9a71237 commit 428405f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+144
-0
lines changed

tests/actualbudget.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ testcase() {(
77
./bin/armbian-config --api module_actualbudget purge
88
./bin/armbian-config --api module_actualbudget install
99
./bin/armbian-config --api module_actualbudget status
10+
./bin/armbian-config --api module_actualbudget purge
1011
)}
12+
13+

tests/adguardhome.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ testcase() {(
77
./bin/armbian-config --api module_adguardhome purge
88
./bin/armbian-config --api module_adguardhome install
99
./bin/armbian-config --api module_adguardhome status
10+
./bin/armbian-config --api module_adguardhome purge
1011
)}
12+
13+

tests/bazarr.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ testcase() {(
77
./bin/armbian-config --api module_bazarr purge
88
./bin/armbian-config --api module_bazarr install
99
./bin/armbian-config --api module_bazarr status
10+
./bin/armbian-config --api module_bazarr purge
1011
)}
12+
13+

tests/cockpit.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ testcase() {(
99
sudo systemctl start cockpit.service
1010
sudo systemctl is-active --quiet cockpit.service
1111
)}
12+
13+

tests/deluge.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ testcase() {(
77
./bin/armbian-config --api module_deluge purge
88
./bin/armbian-config --api module_deluge install
99
./bin/armbian-config --api module_deluge status
10+
./bin/armbian-config --api module_deluge purge
1011
)}
12+
13+

tests/docker.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ testcase() {(
66
./bin/armbian-config --api module_docker purge
77
./bin/armbian-config --api module_docker install
88
./bin/armbian-config --api module_docker status
9+
./bin/armbian-config --api module_docker purge
910
)}
11+
12+

tests/domoticz.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ testcase() {(
77
./bin/armbian-config --api module_domoticz purge
88
./bin/armbian-config --api module_domoticz install
99
./bin/armbian-config --api module_domoticz status
10+
./bin/armbian-config --api module_domoticz purge
1011
)}
12+
13+

tests/duplicati.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ testcase() {(
99
./bin/armbian-config --api module_duplicati status
1010
./bin/armbian-config --api module_duplicati remove
1111
)}
12+
13+

tests/embyserver.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ testcase() {(
77
./bin/armbian-config --api module_embyserver purge
88
./bin/armbian-config --api module_embyserver install
99
./bin/armbian-config --api module_embyserver status
10+
./bin/armbian-config --api module_embyserver purge
1011
)}
12+
13+

tests/evcc.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ testcase() {(
77
./bin/armbian-config --api module_evcc purge
88
./bin/armbian-config --api module_evcc install
99
./bin/armbian-config --api module_evcc status
10+
./bin/armbian-config --api module_evcc purge
1011
)}
12+
13+

0 commit comments

Comments
 (0)