mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
39 lines
1 KiB
Bash
39 lines
1 KiB
Bash
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.
|
|
|
|
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
|
|
run ! command -v termux-open-url
|
|
run ! command -v xdg-open
|
|
run ! command -v termux-backup
|
|
|
|
cp \
|
|
"$ON_DEVICE_TESTS_DIR/config-android-integration.nix" \
|
|
~/.config/nixpkgs/nix-on-droid.nix
|
|
nix-on-droid switch
|
|
|
|
command -v am
|
|
command -v termux-setup-storage
|
|
command -v termux-open
|
|
command -v termux-open-url
|
|
command -v xdg-open
|
|
run ! command -v termux-backup
|
|
|
|
_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
|
|
command -v termux-open-url
|
|
command -v xdg-open
|
|
command -v termux-backup
|
|
|
|
switch_to_default_config
|
|
}
|