master
sh 16 lines 414 Bytes
Raw
1 #!/usr/bin/env bash
2
3 test_description="Test generated fish completions"
4
5 . lib/test-lib.sh
6
7 test_expect_success "'ipfs commands completion fish' succeeds" '
8 ipfs commands completion fish > completions.fish
9 '
10
11 test_expect_success "generated completions completes 'ipfs version'" '
12 fish -c "source completions.fish && complete -C \"ipfs ver\" | grep -q \"version.Show IPFS version information.\" "
13 '
14
15 test_done
16