-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add Invocation Script #14
base: main
Are you sure you want to change the base?
Add Invocation Script #14
Conversation
Signed-off-by: Muhammad Mahad <[email protected]>
Add `regex` and exported it for other files Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Fixes: Rust-GCC#9 Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
Signed-off-by: Muhammad Mahad <[email protected]>
If the test source file doesn't contain any headers, or that are not added till now then the header value will be None and becomes panic Signed-off-by: Muhammad Mahad <[email protected]>
@@ -17,6 +22,7 @@ pub struct Arguments { | |||
)] | |||
pub source_file: path::PathBuf, |
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.
This argument is mandatory, I wonder if we shouldn't make it a positional argument instead ? It would be shorter to write and can't be confusing if it is the only positional argument anyway.
I'd like both of your insights @MahadMuhammad @CohenArthur
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'm happy with making it positional
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.
LGTM!
echo "RUSTTEST_TO_DG_PATH: $RUSTTEST_TO_DG_PATH" | ||
|
||
# Installing rusttest-to-dg | ||
cd $RUSTTEST_TO_DG_PATH |
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.
cd $RUSTTEST_TO_DG_PATH | |
cd "$RUSTTEST_TO_DG_PATH" |
cp -r $RUST_PATH/tests/ui $GCCRS_PATH/gcc/testsuite/rust/rustc | ||
echo -e "Copied $RUST_PATH/tests/ui tests to $GCCRS_PATH/gcc/testsuite/rust/rustc/ui" | ||
cd $GCCRS_PATH/gcc/testsuite/rust/rustc/ui |
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.
cp -r $RUST_PATH/tests/ui $GCCRS_PATH/gcc/testsuite/rust/rustc | |
echo -e "Copied $RUST_PATH/tests/ui tests to $GCCRS_PATH/gcc/testsuite/rust/rustc/ui" | |
cd $GCCRS_PATH/gcc/testsuite/rust/rustc/ui | |
cp -r "$RUST_PATH"/tests/ui $GCCRS_PATH/gcc/testsuite/rust/rustc | |
echo -e "Copied $RUST_PATH/tests/ui tests to $GCCRS_PATH/gcc/testsuite/rust/rustc/ui" | |
cd "$GCCRS_PATH"/gcc/testsuite/rust/rustc/ui |
else | ||
rusttest-to-dg --file "$file" > "$output_file" | ||
fi | ||
mv $output_file $file |
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.
mv $output_file $file | |
mv "$output_file" "$file" |
@@ -17,6 +22,7 @@ pub struct Arguments { | |||
)] | |||
pub source_file: path::PathBuf, |
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'm happy with making it positional
Add invocation script and add usage in
README
file