-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from common import wait_for, APK, BOOTSTRAP_URL | ||
|
||
|
||
def run(d): | ||
nod = d.app('com.termux.nix', url=APK) | ||
nod.permissions.allow_notifications() | ||
nod.launch() | ||
|
||
wait_for(d, 'Bootstrap zipball location') | ||
d.ui(className='android.widget.EditText').set_text(BOOTSTRAP_URL) | ||
d.ui(text='OK').click() | ||
|
||
wait_for(d, 'Welcome to Nix-on-Droid!') | ||
wait_for(d, 'Do you want to set it up with flakes? (y/N)') | ||
d('input text y') # remove | ||
d.ui.press('enter') | ||
wait_for(d, 'Setting up Nix-on-Droid with flakes...') | ||
|
||
... | ||
wait_for(d, 'Installing first Nix-on-Droid generation...', timeout=180) | ||
wait_for(d, 'Copying default Nix-on-Droid config...', timeout=180) | ||
wait_for(d, 'Congratulations!') | ||
wait_for(d, 'See config file for further information!') | ||
wait_for(d, 'bash-5.25$') | ||
|
||
d('input text "echo smoke-test | base64"') # remove | ||
d.ui.press('enter') | ||
wait_for(d, 'c21va2UtdGVzdAo=') |