forked from googlesamples/assistant-sdk-cpp
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds sample integration tests for en_us and fr_fr
Bug: 69861145 Change-Id: Ie3c06044d341481f169790430408d666847957ea
- Loading branch information
Showing
5 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Tests that the command "how do you say hi in spanish" | ||
# will return "Hola" to verify the Assistant SDK | ||
# end-to-end. | ||
set -e | ||
set -x | ||
|
||
./run_assistant --text_input "how do you say hi in spanish" \ | ||
--credentials_file ./credentials.json --credentials_type USER_ACCOUNT \ | ||
--verbose | grep "Hola" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Tests that the command "how do you say hello in spanish" | ||
# will return "buenos dias" to verify the Assistant SDK | ||
# end-to-end. | ||
set -e | ||
set -x | ||
|
||
./run_assistant --text_input "comment dit-on bonjour en español" \ | ||
--credentials_file ./credentials.json --credentials_type USER_ACCOUNT \ | ||
--locale "fr-FR" --verbose | grep "Buenos dias" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Run all tests | ||
# Expected usage: | ||
# > cpp$ ./tests/test_all.sh | ||
set -e | ||
set -x | ||
|
||
# Verify it builds | ||
./tests/build.sh | ||
|
||
# After building, run end-to-end tests | ||
./tests/integration_en_us.sh | ||
./tests/integration_fr.sh |