Skip to content

Commit

Permalink
WIP: attempt to write a blurb of git-style test
Browse files Browse the repository at this point in the history
The tests won't work outside of the git tree. Perhaps, I should
just rewrite it to plain shell script. Should I?
  • Loading branch information
mcepl committed Nov 21, 2024
1 parent 1951e39 commit ed42294
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions t/t7600-fixup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh

test_description='.'

export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success 'setup' '
git init almost-complete
cd almost-complete/
echo "Testing file 1" >test_01.txt
git add test_01.txt
git commit -m "Commiting the first file."
echo "Testing file 2" >test_02.txt
git add test_02.txt
git commit -m "Commiting the second file."
echo "Modifying the first file." >>test_01.txt
git add test_01.txt
# git fixup --no-commit |grep -s "something"
/bin/true
'

test_done

0 comments on commit ed42294

Please sign in to comment.