aboutsummaryrefslogtreecommitdiff
path: root/tests/git-common.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-08-06 23:32:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-08-12 12:33:41 +0300
commit768727f37afa6fbb5082833a4c14c8134ec42122 (patch)
tree8c7b3d85f9735d8585781a45f9e61b15fdaa3530 /tests/git-common.testscript
parent4c61819dedbc3547bf3f352809ecfb6a95ab8753 (diff)
Add implementation
Diffstat (limited to 'tests/git-common.testscript')
-rw-r--r--tests/git-common.testscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/git-common.testscript b/tests/git-common.testscript
new file mode 100644
index 0000000..aa90f3d
--- /dev/null
+++ b/tests/git-common.testscript
@@ -0,0 +1,17 @@
+# file : tests/git-common.testscript
+# license : MIT; see accompanying LICENSE file
+
+# Set commonly-used variables and create an empty git repository that will be
+# copied by subsequent tests and scope setup commands.
+#
+g = git >! 2>&1
+gp = $g -C prj
+ga = $gp add
+gr = $gp rm
+
++$g init prj &prj/***
+
++$gp config user.name 'Test Script'
++$gp config user.email 'testscript@example.com'
+
+clone_prj = cp --no-cleanup -r ../prj ./ &prj/***