File: device.txt

package info (click to toggle)
fdroidcl 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,828 kB
  • sloc: makefile: 3
file content (68 lines) | stat: -rw-r--r-- 1,739 bytes parent folder | download | duplicates (3)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
env HOME=$WORK/home

[!device] skip

fdroidcl update

# we have exactly one device
fdroidcl devices
stdout .

# We'll use a really small app, red_screen, to test interacting with a device.
# Besides being tiny, it requires no permissions, is compatible with virtually
# every device, and cannot hold data. So it's fine to uninstall.

# ensure that the app isn't installed to begin with
! fdroidcl uninstall org.vi_server.red_screen
stderr 'not installed'

# missing app is not installed
fdroidcl search -i -q
! stdout 'org\.vi_server\.red_screen'

# missing app is not upgradable
fdroidcl search -u -q
! stdout 'org\.vi_server\.red_screen'

# install via csv input works as expected
stdin applist.csv
fdroidcl install -n
stdout 'install org\.vi_server\.red_screen:1'

# install version code 1
fdroidcl install org.vi_server.red_screen:1
stdout 'Downloading.*red_screen_1.apk'
stdout '100%'
stdout 'Installing'

# app shows up as installed and upgradable
fdroidcl search -i -q
stdout 'org\.vi_server\.red_screen'
fdroidcl search -u -q
stdout 'org\.vi_server\.red_screen'
fdroidcl install -u -n
stdout 'install org\.vi_server\.red_screen:2'

# upgrade app to version code 2
fdroidcl install org.vi_server.red_screen
stdout 'Downloading.*red_screen_2.apk'
stdout '100%'
stdout 'Installing'

# app does not show up as upgradable
fdroidcl search -u -q
! stdout 'org\.vi_server\.red_screen'
fdroidcl install -u -n
! stdout 'install org\.vi_server\.red_screen:2'

# nothing to install or upgrade
fdroidcl install org.vi_server.red_screen
! stdout 'Downloading'
stdout 'is up to date'

# uninstall an app that exists
fdroidcl uninstall org.vi_server.red_screen

-- applist.csv --
packageName,versionCode,versionName
org.vi_server.red_screen,1,1.0