1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#!/bin/sh
. libtest.sh
. libgit.sh
LINES=10
in_work_dir create_repo_from_tgz "$base_dir/files/scala-js-benchmarks.tgz"
test_case exec-without-arg-doesnt-crash \
--args='status' \
--script='
:exec
' <<EOF
On branch master
Changes to be committed:
(no files)
Changes not staged for commit:
(no files)
Untracked files:
(no files)
[status] Nothing to update 100%
EOF
test_case exec-only-flags-doesnt-crash \
--args='status' \
--script='
:exec !
' <<EOF
On branch master
Changes to be committed:
(no files)
Changes not staged for commit:
(no files)
Untracked files:
(no files)
[status] Nothing to update 100%
EOF
run_test_cases
|