use parent most "tester" style

This commit is contained in:
Daylin Morgan 2025-02-04 13:50:21 -06:00
parent dbde9c91e9
commit 3b172de07d
Signed by: daylin
GPG key ID: 950D13E9719334AD
4 changed files with 4 additions and 7 deletions

View file

@ -23,4 +23,4 @@ jobs:
- name: Run Tests
run: |
nim develop
nim test
nim r tests/tester

View file

@ -1,11 +1,6 @@
import std/os except getCurrentDir
import std/[strformat, strutils]
task test, "run tests":
const testDir = thisDir() / "tests"
selfExec fmt"r {testDir}/tbbansi.nim"
selfExec fmt"r {testDir}/cli/tester.nim"
task develop, "install cligen for development":
exec "nimble install -l 'cligen@1.7.5'"

View file

@ -1,6 +1,6 @@
import std/[compilesettings, os, osproc, strutils, times, unittest, terminal]
const pathToSrc = querySetting(SingleValueSetting.projectPath)
const pathToSrc = currentSourcePath().parentDir()
const binDir = pathToSrc / "bin"
const hwylCliSrc = pathToSrc / "../../src/hwylterm/hwylcli.nim"
let hwylCliWriteTime = getFileInfo(hwylCliSrc).lastWriteTime

2
tests/tester.nim Normal file
View file

@ -0,0 +1,2 @@
import ./tbbansi
import ./cli/tester