From 768727f37afa6fbb5082833a4c14c8134ec42122 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 6 Aug 2020 23:32:13 +0300 Subject: Add implementation --- tests/git-common.testscript | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/git-common.testscript (limited to 'tests/git-common.testscript') 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/*** -- cgit v1.1