Skip to content

Commit 08be403

Browse files
committed
Add test scripts
1 parent 8d03f0d commit 08be403

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

script/test

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
here=$(cd "$(dirname "$BASH_SOURCE")"; pwd)
6+
PROJECT_ROOT=$(cd "$here/.."; pwd)
7+
8+
(
9+
cd "$PROJECT_ROOT"
10+
cask emacs --batch \
11+
-l ert \
12+
-l tree-sitter-langs-tests.el \
13+
-f ert-run-tests-batch-and-exit
14+
)

script/test.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
$here = $PSScriptRoot
2+
$project_root = (Get-Item $here).Parent.FullName
3+
4+
Push-Location $project_root
5+
cask emacs --batch `
6+
-l ert `
7+
-l tree-sitter-langs-tests.el `
8+
-f ert-run-tests-batch-and-exit
9+
Pop-Location

0 commit comments

Comments
 (0)