Skip to content
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

Allow preprocessor to extract sequence of commands #651

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

angelhof
Copy link
Member

@angelhof angelhof commented Feb 28, 2023

Use by running the following when on $PASH_TOP.

./compiler/preprocessor/preprocessor spec input.sh partial_order.sh

It will save a sequence of commands in partial_order.sh.

For now it is very janky since it prints each command in its own line (but this can fail very badly if commands contain newlines).

TODO: We need to fix this to print each command in its own file, and the partial order file should only contain the ids of the commands and their ordering. I need to add a new directory speculation in compiler, that will contain relevant code.

Signed-off-by: Konstantinos Kallas <konstantinos.kallas@hotmail.com>
Signed-off-by: Konstantinos Kallas <konstantinos.kallas@hotmail.com>
@binpash binpash deleted a comment from github-actions bot Feb 28, 2023
@angelhof
Copy link
Member Author

@gliargovas this should be helpful for you!

@github-actions
Copy link

OS:ubuntu-20.04
Tue Feb 28 00:23:17 UTC 2023
intro: 2/2 tests passed.
interface: 39/39 tests passed.
compiler: 54/54 tests passed.
agg: 109/109 tests passed.

@github-actions
Copy link

OS = Debian 10
CPU = Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Ram = 15752
Hash = de6b3cf
Kernel= Linux 4.15.0-197-generic x86_64

benchmark tests passed failed untested unresolved unsupported not_in_use other_status
posix 494 375 41 31 6 40 1 0
intro 2 2 0 0 0 0 0 0
interface 39 39 0 0 0 0 0 0
compiler 54 54 0 0 0 0 0 0
aggregator 109 109 0 0 0 0 0 0

@angelhof angelhof merged commit f4c8983 into future Feb 28, 2023
@angelhof angelhof deleted the preprocessor-extract-cmd-sequence branch February 28, 2023 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant