Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
updater
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michal Čihař
updater
Commits
026c16a8
Verified
Commit
026c16a8
authored
Feb 15, 2016
by
Michal 'vorner' Vaner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parser: Extend tests
Some more tests added, checking broken situations.
parent
4f9729ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
tests/backend.lua
tests/backend.lua
+10
-0
tests/data/opkg/status
tests/data/opkg/status
+7
-0
No files found.
tests/backend.lua
View file @
026c16a8
...
...
@@ -217,6 +217,16 @@ function test_status_parse()
[
"/etc/config/dhcp"
]
=
"f81fe9bd228dede2165be71e5c9dcf76cc"
,
[
"/etc/dnsmasq.conf"
]
=
"1e6ab19c1ae5e70d609ac7b6246541d520"
})
-- Slightly broken package ‒ no relevant info files
status_check
(
"ucollect-count"
,
{
Package
=
"ucollect-count"
,
Version
=
"27"
,
Architecture
=
"mpc85xx"
,
[
"Installed-Time"
]
=
"1453896279"
},
{
"libc"
,
"ucollect-prog"
},
std_status
,
{})
-- More broken case - the whole status file missing
B
.
status_file
=
"/does/not/exist"
assert_error
(
B
.
status_parse
)
end
local
orig_status_file
=
B
.
status_file
...
...
tests/data/opkg/status
View file @
026c16a8
...
...
@@ -21,3 +21,10 @@ Conffiles:
/etc/config/dhcp f81fe9bd228dede2165be71e5c9dcf76cc
/etc/dnsmasq.conf 1e6ab19c1ae5e70d609ac7b6246541d520
Installed-Time: 1453896240
Package: ucollect-count
Version: 27
Depends: libc, ucollect-prog
Status: install user installed
Architecture: mpc85xx
Installed-Time: 1453896279
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment