Skip to content

Tests are run even if bc is not installed #8

Description

@bfontaine

Here is my test file for mvb:

#! /bin/bash

. assert.sh

# `mvb a b` should fail if 'b' doesn't exist
assert_raises 'mvb a b' 1

# `mvb a b` should rename 'b' to 'a'
touch b
assert_raises 'mvb a b' 0
assert_raises '[ -f a ]' 0
rm a

# `mvb a b/` should mv 'b/a' in 'a'
mkdir b
touch b/a
assert_raises 'mvb a b/' 0
assert_raises '[ -f a ]' 0
rm a
rmdir b

assert_end 'mvb'

I tested on Travis and bc is not installed by default, here is the (end of the) log:

$ cd tests;bash ./tests.sh
assert.sh: line 81: bc: command not found
all 5 mvb tests passed in s.

�The command "bash ./tests.sh" exited with 0.�

Done. Your build exited with 0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions