-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from deltamc-project/travis-tests
Travis tests
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pexpect | ||
import sys | ||
|
||
print("Running tests on " + sys.platform) | ||
deltamc = pexpect.spawn("python3 ./deltamc.py", encoding="UTF-8") | ||
deltamc.logfile = sys.stdout | ||
print("\n *** Attempting to set up the default instance... *** \n") | ||
deltamc.expect("Enter mod folder location for instance default \(absolute path\)\: ") | ||
deltamc.sendline(".") | ||
deltamc.expect("Enter jar folder location for instance default \(absolute path\)\:") | ||
deltamc.sendline(".") | ||
deltamc.expect("Enter Minecraft version for instance default:") | ||
deltamc.sendline("1.12") | ||
print("\n *** Attempting to install MinecraftForge... ***\n") | ||
deltamc.expect("> ") | ||
deltamc.sendline("install MinecraftForge") | ||
deltamc.expect("Done. Please run the installer.") | ||
deltamc.expect("> ") | ||
print("\n *** Test passed! *** \n") |