Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env expect
|
||||
|
||||
set timeout 3
|
||||
set v_root [exec sh -c "git rev-parse --show-toplevel"]
|
||||
|
||||
spawn $v_root/v run $v_root/examples/password/password.v
|
||||
|
||||
expect "Enter your password : " { send "Sample\r" } timeout { exit 1 }
|
||||
expect "Confirm password : " { send "Sample\r" } timeout { exit 1 }
|
||||
expect "Password confirmed! You entered: Sample ." {} timeout { exit 1 }
|
||||
|
||||
expect eof
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env expect
|
||||
|
||||
set timeout 3
|
||||
set v_root [exec sh -c "git rev-parse --show-toplevel"]
|
||||
|
||||
spawn $v_root/v run $v_root/examples/password/password.v
|
||||
|
||||
expect "Enter your password : " { send "Sample123\r" } timeout { exit 1 }
|
||||
expect "Confirm password : " { send "Sample234\r" } timeout { exit 1 }
|
||||
expect "Passwords do not match ." {} timeout { exit 1 }
|
||||
|
||||
expect eof
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env expect
|
||||
|
||||
set timeout 3
|
||||
set v_root [exec sh -c "git rev-parse --show-toplevel"]
|
||||
# Send expected output as arg to re-use the script for testing incorrect values.
|
||||
set expect_ [lindex $argv 0]
|
||||
|
||||
spawn $v_root/v run $v_root/examples/password/password.v
|
||||
|
||||
expect $expect_ {} timeout { exit 1 }
|
||||
|
||||
expect eof
|
||||
Reference in new issue
Block a user