Skip to content

Commit ed42294

Browse files
committed
WIP: attempt to write a blurb of git-style test
The tests won't work outside of the git tree. Perhaps, I should just rewrite it to plain shell script. Should I?
1 parent 1951e39 commit ed42294

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

t/t7600-fixup.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/sh
2+
3+
test_description='.'
4+
5+
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6+
7+
TEST_PASSES_SANITIZE_LEAK=true
8+
. ./test-lib.sh
9+
10+
test_expect_success 'setup' '
11+
git init almost-complete
12+
cd almost-complete/
13+
14+
echo "Testing file 1" >test_01.txt
15+
git add test_01.txt
16+
git commit -m "Commiting the first file."
17+
echo "Testing file 2" >test_02.txt
18+
git add test_02.txt
19+
git commit -m "Commiting the second file."
20+
echo "Modifying the first file." >>test_01.txt
21+
git add test_01.txt
22+
# git fixup --no-commit |grep -s "something"
23+
/bin/true
24+
'
25+
26+
test_done

0 commit comments

Comments
 (0)