Make test script

This commit is contained in:
David Gonzalez Martin 2024-06-30 22:21:36 +02:00
parent c7c6c0ac38
commit 25dc13122b
4 changed files with 9 additions and 8 deletions

View File

@ -17,11 +17,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
- name: Build and test
run: |
set -ex
./compile.sh
- name: Test
run: |
set -ex
./build/nest
./run_tests.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
NEST_BUILD_DIR=build
NEST_EXE_NAME=nest
set -ex

View File

@ -1,3 +1,4 @@
#!/bin/sh
#!/bin/bash
set -ex
source ./compile.sh
gf2 -ex r $NEST_BUILD_DIR/$NEST_EXE_NAME

4
run_tests.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
set -ex
source ./compile.sh
build/nest