-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathconfig-android-integration.bats
48 lines (42 loc) · 1.32 KB
/
config-android-integration.bats
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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 termux-reload-settings
run ! command -v termux-wake-lock
run ! command -v termux-wake-unlock
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 termux-reload-settings
command -v termux-wake-lock
command -v termux-wake-unlock
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 termux-reload-settings
command -v termux-wake-lock
command -v termux-wake-unlock
command -v xdg-open
command -v termux-backup
switch_to_default_config
}