-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(add) tests: add test for nimble project using forge aliases
- Loading branch information
1 parent
04a7379
commit 7b2e5e0
Showing
3 changed files
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Package | ||
|
||
version = "0.1.0" | ||
author = "xTrayambak" | ||
description = "Test to check if Nimble can correctly handle packages that are installed via a forge alias" | ||
license = "MIT" | ||
srcDir = "src" | ||
bin = @["forgealias001"] | ||
|
||
|
||
# Dependencies | ||
|
||
requires "nim >= 1.6.0" | ||
requires "gh:xTrayambak/librng >= 0.1.3" |
Empty file.
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 @@ | ||
{.used.} | ||
|
||
import unittest, os | ||
import testscommon | ||
|
||
from nimblepkg/common import cd | ||
|
||
test "can install packages via a forge alias": | ||
cd "forgealias001": | ||
let (_, exitCode) = execNimbleYes(["build"]) | ||
check exitCode == QuitSuccess | ||
check fileExists("forgealias001") |