You've already forked bash-ini-parser
mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-08-10 16:22:59 +03:00
31 lines
531 B
Bash
Executable File
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
|