aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/git.go')
-rw-r--r--internal/rosa/git.go22
1 files changed, 7 insertions, 15 deletions
diff --git a/internal/rosa/git.go b/internal/rosa/git.go
index 0153f547..a243e507 100644
--- a/internal/rosa/git.go
+++ b/internal/rosa/git.go
@@ -1,8 +1,6 @@
package rosa
-import (
- "hakurei.app/internal/pkg"
-)
+import "hakurei.app/internal/pkg"
func (t Toolchain) newGit() pkg.Artifact {
const (
@@ -21,20 +19,14 @@ func (t Toolchain) newGit() pkg.Artifact {
Writable: true,
InPlace: true,
- // test suite in subdirectory
- SkipCheck: true,
-
- Make: []string{"all"},
ScriptEarly: `
cd /usr/src/git
make configure
-`,
- Script: `
ln -s ../../system/bin/perl /usr/bin/ || true
function disable_test {
- local test=$1 pattern=$2
+ local test=$1 pattern=${2:-''}
if [ $# -eq 1 ]; then
rm "t/${test}.sh"
else
@@ -56,12 +48,12 @@ disable_test t9300-fast-import
disable_test t0211-trace2-perf
disable_test t1517-outside-repo
disable_test t2200-add-update
-
-make \
- -C t \
- GIT_PROVE_OPTS="--jobs 32 --failures" \
- prove
`,
+ Check: []string{
+ "-C t",
+ `GIT_PROVE_OPTS="--jobs 32 --failures"`,
+ "prove",
+ },
},
t.Load(Perl),
t.Load(Diffutils),