Skip to content

Commit

Permalink
Enable ninja-validations.sh
Browse files Browse the repository at this point in the history
Update ninja to 1.11.1, which has validation actions,
and enable ninja-validations.sh
  • Loading branch information
Colecf authored and lberki committed Oct 5, 2023
1 parent fe66697 commit e37cedd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cpp-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: install ninja
run: |
mkdir -p ${GITHUB_WORKSPACE}/ninja-bin; cd ${GITHUB_WORKSPACE}/ninja-bin
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip
unzip ninja-linux.zip
rm ninja-linux.zip
echo "${GITHUB_WORKSPACE}/ninja-bin" >> "$GITHUB_PATH"
Expand Down
3 changes: 3 additions & 0 deletions run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,13 @@ func runKatiInScript(t *testing.T, script, dir string, isNinjaTest bool) string
}
args = append(args, "SHELL=/bin/bash")

var stderrb bytes.Buffer
cmd := exec.Command(args[0], args[1:]...)
cmd.Dir = dir
cmd.Stderr = &stderrb
output, _ := cmd.Output()
write("stdout", output)
write("stderr", stderrb.Bytes())
if isNinjaTest {
output = normalize(output, normalizeNinja)
}
Expand Down
1 change: 0 additions & 1 deletion testcase/ninja_validations.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
# TODO(ninja): enable once upstream ninja supports validations
#
# Copyright 2015 Google Inc. All rights reserved
#
Expand Down

0 comments on commit e37cedd

Please sign in to comment.