Skip to content

Commit 85f28ec

Browse files
committed
xeol: test
1 parent 24f97a7 commit 85f28ec

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Formula/x/xeol.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,20 @@ def install
3333
test do
3434
assert_match version.to_s, shell_output("#{bin}/xeol version")
3535

36-
output = shell_output("#{bin}/xeol alpine:latest")
36+
output = shell_output("#{bin}/xeol db delete 2>&1")
37+
assert_match "EOL database deleted", output
38+
39+
output = shell_output("#{bin}/xeol db check 2>&1")
40+
assert_match "Update available!", output
41+
assert_match(%r{Updated DB URL: https:\/\/data\.xeol\.io\/xeol\/databases\/xeol-db_v[-\._0-9:T]{20,}\.tar\.xz}, output)
42+
43+
output = shell_output("#{bin}/xeol db update 2>&1")
44+
assert_match "EOL database updated to latest version!", output
45+
46+
output = shell_output("#{bin}/xeol db status 2>&1")
47+
assert_match "Status: valid", output
48+
49+
output = shell_output("#{bin}/xeol alpine:latest 2>&1")
3750
assert_match "no EOL software has been found", output
3851
end
3952
end

0 commit comments

Comments
 (0)