-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
vcreate: test new module creation #19519
vcreate: test new module creation #19519
Conversation
7caca5f
to
0f4f951
Compare
daa8011
to
ff4ba60
Compare
16bdbbd
to
e72a962
Compare
set project_name [lindex $argv 1] | ||
set model [lindex $argv 2] | ||
|
||
spawn $v_root/v run $v_root/cmd/tools/vcreate/ new $project_name $model |
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.
spawn $v_root/v run $v_root/cmd/tools/vcreate/ new $project_name $model | |
spawn $v_root/v new $project_name $model |
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 will be closer to what the final user will type/run . V should take care of compiling its cmd/tools/vcreate
and then run it by itself.
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.
That's certainly closer to the actual usage.
It seems that using v new
for the compiled v executable doesn't want to work yet on mac. Mac wasn't failing when running vcreate.v
directly.
Co-authored-by: Delyan Angelov <delian66@gmail.com>
🤖 Generated by Copilot at 6b25370
This pull request adds a test function and a script for the
vcreate
tool. The test function uses theexpect
tool and thev.vmod
module to check the interactive input and output of thev create
command. The scriptnew_no_arg.expect
simulates the user input for creating a new project.🤖 Generated by Copilot at 6b25370
new_no_arg.expect
to test the interactive input of thev create
command (F0)v.vmod
module invcreate_test.v
to use its functions for decoding thev.mod
file (link)test_input
invcreate_test.v
that uses thenew_no_arg.expect
script to create and verify a project with given input values (link)