-
Notifications
You must be signed in to change notification settings - Fork 3
Support FOSS tests running locally #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,12 +14,16 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set -x | ||
|
|
||
| git clone --recurse https://github.com/jbeder/yaml-cpp.git test-proj | ||
| cd test-proj | ||
| git checkout yaml-cpp-0.7.0 | ||
|
|
||
| # This file must be in the root of the project to be analyzed for bazelisk to work | ||
| cp ../../templates/.bazelversion ./.bazelversion | ||
| bazelversion="../../../../.bazelversion" | ||
| [ -f $bazelversion ] && cp $bazelversion . | ||
| cat .bazelversion | ||
|
|
||
| # Add codechecker to the project | ||
| cat <<EOF >> BUILD.bazel | ||
|
|
@@ -52,3 +56,7 @@ EOF | |
|
|
||
| # Add codechecker_bazel repo to WORKSPACE | ||
| cat ../../templates/WORKSPACE.template >> WORKSPACE | ||
|
|
||
| # Check | ||
| bazel version | ||
| which bazel | ||
|
Comment on lines
+59
to
+62
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...and this change were reused from test/foss/templates, and not copy-pasted to each test.
Comment on lines
+61
to
+62
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not make sense to me using the current test setup:
This script only runs the first time, and its output is completely ignored.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's another huge problem! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,7 +53,7 @@ def setUpClass(cls): | |
| logging.debug("No bazel version set, using system default") | ||
| _, stdout, _ = cls.run_command("bazel --version") | ||
| cls.BAZEL_VERSION = stdout.split(' ')[2].strip() | ||
| logging.debug("Using Bazel", cls.BAZEL_VERSION) | ||
| logging.debug("Using Bazel %s", cls.BAZEL_VERSION) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch. |
||
|
|
||
| @final | ||
| @classmethod | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer if this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll address