Skip to content

Refactoring the build system #867

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

Merged
merged 1 commit into from
Feb 15, 2016

Conversation

akosthekiss
Copy link
Member

  • Removed unused or unnecessary parts from various make files
  • Eliminated lots of duplications from Makefile with the help of
    macros.
  • Split tools/precommit.sh to its independent components:
    • the part that checks the existence of the "signed off" text in
      commit messages
      (this on got factored out to tools/check-signed-off.sh),
    • the part that uses vera++ for style checking (this one got
      factored out to tools/check-vera.sh),
    • the part that invokes targets in the cmake-generated build
      directory, and
    • the part that performs various tests (these latter two got
      moved into the Makefile).
  • Added ninja build system support (e.g., make NINJA=1).
  • Updated leading documentation comments (they were somewhat
    stale).
  • Tried to keep the target names exactly the same as they were --
    almost succeeded... (some changes are intentional, and are
    subject to personal preferences).

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu

@akosthekiss akosthekiss added enhancement An improvement infrastructure Related to GH Actions or the tested targets labels Feb 10, 2016
@akosthekiss
Copy link
Member Author

WIP patch, still conflicts with some recently landed patches. All thoughts and feedbacks are most welcome.

@akosthekiss
Copy link
Member Author

Side note: with ninja, a full precommit run became somewhat faster (3m53s -> 3m22s).

@LaszloLango
Copy link
Contributor

#868 is merged into master.

@akosthekiss
Copy link
Member Author

Rebased to master, but still WIP.

@LaszloLango
Copy link
Contributor

This may be related: #664

@akosthekiss akosthekiss force-pushed the make-refactor branch 2 times, most recently from f7183c3 to 91b3ad0 Compare February 12, 2016 14:52
@akosthekiss
Copy link
Member Author

Improved & rebased & pushed. It starts looking OK to me so reviews/feedbacks can start rolling.

@LaszloLango
Copy link
Contributor

Please rename tests/jerry-test-suite/compact_profile_list to tests/jerry-test-suite/compact-profile-list and tests/jerry-test-suite/precommit_test_list to tests/jerry-test-suite/precommit-test-list

@akosthekiss
Copy link
Member Author

Renamed.

@LaszloLango
Copy link
Contributor

@akiss77, thanks. LGTM
If there will be no objections, then squash into one commit and may land. @zherczeg, do you have any objections?

* Removed unused or unnecessary parts from various make files
* Eliminated lots of duplications from Makefile with the help of
  macros.
* Split tools/precommit.sh to its independent components:
  * the part that checks the existence of the "signed off" text in
    commit messages
    (this on got factored out to tools/check-signed-off.sh),
  * the part that uses vera++ for style checking (this one got
    factored out to tools/check-vera.sh),
  * the part that invokes targets in the cmake-generated build
    directory, and
  * the part that performs various tests (these latter two got
    moved into the Makefile).
* Moved the functionality of precommit-full-testing.sh into the
  Makefile, too.
* Added ninja build system support (e.g., `make NINJA=1`).
* Updated leading documentation comments (they were somewhat
  stale).
* Tried to keep the target names exactly the same as they were --
  almost succeeded... (some changes are intentional, and are
  subject to personal preferences).
* Simplified console output of `make precommit`
* Unified test runner scripts and their output format
  * Eliminated nothing-to-stdout everything-to-log-file policy:
    info is printed to stdout and it is the caller's
    responsibility to redirect it to a file if needed.
  * Also applied some renaming and coding style unification to
    the scripts.
* Merged the functionality of tools/runners/run-test-suite-jerry*.sh
  into the Makefile
* Merged everything related to a test suite execution in a single
  script.
  * The new script also allows to specify pass and xfail tests in
    a single list file, which was not possible hitherto.
  * Also, the paths of the test cases given in a file are
    interpreted relative to their container files.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
@akosthekiss akosthekiss merged commit f959ba9 into jerryscript-project:master Feb 15, 2016
@akosthekiss
Copy link
Member Author

Merged f959ba9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement infrastructure Related to GH Actions or the tested targets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants