mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-12 12:01:11 +01:00
modules/android_integration: termux-setup-storage & unsupported
This commit is contained in:
parent
34882505a0
commit
cc573e03d9
7 changed files with 265 additions and 4 deletions
|
|
@ -5,6 +5,8 @@ load lib
|
|||
@test 'android-integration options can be used' {
|
||||
bats_require_minimum_version 1.5.0
|
||||
run ! command -v am
|
||||
run ! command -v termux-setup-storage
|
||||
run ! command -v termux-open-url
|
||||
|
||||
cp \
|
||||
"$ON_DEVICE_TESTS_DIR/config-android-integration.nix" \
|
||||
|
|
@ -12,6 +14,17 @@ load lib
|
|||
nix-on-droid switch
|
||||
|
||||
command -v am
|
||||
command -v termux-setup-storage
|
||||
run ! command -v termux-open-url
|
||||
|
||||
_sed \
|
||||
-e "s|# unsupported.enable = false;|unsupported.enable = true;|" \
|
||||
-e "s|am.enable = true;|am.enable = false;|" \
|
||||
-i ~/.config/nixpkgs/nix-on-droid.nix
|
||||
nix-on-droid switch
|
||||
run ! command -v am
|
||||
command -v termux-setup-storage
|
||||
command -v termux-open-url
|
||||
|
||||
switch_to_default_config
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue