Basic omf tests

This commit is contained in:
Bruno Pinto 2015-12-17 23:15:19 +00:00
parent e17dc1bfc1
commit ea4d78ffc3
2 changed files with 24 additions and 0 deletions

View File

@ -17,6 +17,8 @@ before_script:
script: script:
- docker run -t oh-my-fish /usr/bin/fish "tests/run.fish" - docker run -t oh-my-fish /usr/bin/fish "tests/run.fish"
- docker run -t oh-my-fish /usr/bin/fish -c "cd pkg/fish-spec; fish-spec"
- docker run -t oh-my-fish /usr/bin/fish -c "cd pkg/omf; fish-spec"
- docker run -t oh-my-fish /usr/bin/fish "tests/test-generate-themes-doc.fish" - docker run -t oh-my-fish /usr/bin/fish "tests/test-generate-themes-doc.fish"
after_failure: after_failure:

View File

@ -0,0 +1,22 @@
function describe_basic_tests
function before_all
set -gx CI WORKAROUND
end
function it_has_a_help_command
set -l output (omf help)
assert 0 = $status
end
function it_has_a_doctor_command
set -l output (omf doctor)
assert 0 = $status
end
function it_install_packages
set -l remove_output (omf remove apt ^/dev/null)
set -l install_output (omf install apt)
assert 0 = $status
end
end