Skip to content

Commit e2b401c

Browse files
committed
psuh: add test
Signed-off-by: Long Nguyen <n.h.long.9697@gmail.com>
1 parent 82f10aa commit e2b401c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

builtin/psuh.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ int cmd_psuh(int argc, const char **argv,
2525
OPT_END()
2626
};
2727
argc = parse_options(argc, argv, prefix, options, psuh_usage, 0);
28+
printf(_("Pony saying hello goes here.\n"));
2829

2930

3031
wt_status_prepare(repo, &status);

t/t9999-psuh-tutorial.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
test_description='git-psuh test
4+
5+
This test runs git-psuh and makes sure it does not crash.'
6+
7+
. ./test-lib.sh
8+
9+
test_expect_success 'runs correctly with no args and good output' '
10+
git psuh >actual &&
11+
grep Pony actual
12+
'
13+
14+
test_done

0 commit comments

Comments
 (0)