1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-08-10 16:22:59 +03:00
Files
bash-ini-parser/t/t0000-test-setup.sh
albfan b9a3ce5bfc Added test suite
relates to #4
2015-05-16 18:38:46 +02:00

31 lines
531 B
Bash
Executable File

#!/bin/sh
test_description="Show basic features of Sharness"
. sharness/sharness.sh
test_expect_success "Success is reported like this" "
echo hello world | grep hello
"
test_expect_success "Commands are chained this way" "
test x = 'x' &&
test 2 -gt 1 &&
echo success
"
return_42() {
echo "Will return soon"
return 42
}
test_expect_success "You can test for a specific exit code" "
test_expect_code 42 return_42
"
test_expect_failure SKIP "We expect this to fail" "
test 1 = 2
"
test_done