aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/git.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-01 12:11:41 +0900
committerOphestra <cat@gensokyo.uk>2026-03-01 14:41:34 +0900
commit51d3df2419e26f15d780c98629a357473855ebd4 (patch)
treee5c0e3810156d3f706ed732b67bd5e12b3dfa8f5 /internal/rosa/git.go
parent1d0fcf3a75bbdbeac24c34f5d55cb5ba347f1782 (diff)
internal/rosa/make: split build and check
Doing these together breaks far too many buggy makefiles. Signed-off-by: Ophestra <cat@gensokyo.uk>
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),