git/test: add noam.rc testcase

This commit is contained in:
cinap_lenrek 2024-09-29 17:29:48 +00:00
parent 798352644e
commit dc318a6471
2 changed files with 22 additions and 0 deletions

View file

@ -7,6 +7,7 @@ TEST=\
ftype\
lca\
merge\
noam\
range
</sys/src/cmd/mktest

21
sys/src/cmd/git/test/noam.rc Executable file
View file

@ -0,0 +1,21 @@
#!/bin/rc
. util.rc
rm -fr scratch
mkdir -p scratch/noam
echo @@ noam test @@
@{
cd scratch/noam
git/init
touch a
git/add a
git/commit -m 'add a' a
rm a
mkdir a
touch a/b
git/add a/b
git/commit -m 'switch to folder' a a/b
}