Move "tests" folder to root

This commit is contained in:
Virgil Dupras 2019-12-31 13:07:05 -05:00
parent e3c885085d
commit c5c6ef4c6c
58 changed files with 20 additions and 26 deletions

View File

@ -37,8 +37,7 @@ path to giving Collapse OS a try.
* `tools`: Tools for working with Collapse OS from "modern" environments. Mostly * `tools`: Tools for working with Collapse OS from "modern" environments. Mostly
development tools, but also contains emulated zasm, which is development tools, but also contains emulated zasm, which is
necessary to build Collapse OS from a non-Collapse OS machine. necessary to build Collapse OS from a non-Collapse OS machine.
* `tests`: Automated test suite for the whole project.
Each folder has a README with more details.
## Status ## Status

View File

@ -4,15 +4,9 @@ git submodule init
git submodule update git submodule update
git clean -fxd git clean -fxd
cd tools/emul make -C tools/emul
make make -C tests
cd ../tests
make
# let's try again with an updated zasm # let's try again with an updated zasm
cd ../emul make -C tools/emul updatebootstrap all
make updatebootstrap all make -C tests
cd ../tests
make

View File

@ -1,5 +1,5 @@
EMULDIR = ../emul EMULDIR = ../tools/emul
CFSPACK = ../cfspack/cfspack CFSPACK = ../tools/cfspack/cfspack
.PHONY: run .PHONY: run
run: run:
@ -10,7 +10,7 @@ run:
cd shell && ./runtests.sh cd shell && ./runtests.sh
$(CFSPACK): $(CFSPACK):
$(MAKE) -C ../cfspack $(MAKE) -C ../tools/cfspack
.PHONY: cfs .PHONY: cfs
cfs: $(CFSPACK) cfs: $(CFSPACK)

View File

@ -1,7 +1,7 @@
#!/bin/sh -e #!/bin/sh -e
ZASM=../../zasm.sh ZASM=../../tools/zasm.sh
AVRINC=../../../avr AVRINC=../../avr
cmpas() { cmpas() {
FN=$1 FN=$1

View File

@ -1,7 +1,7 @@
#!/bin/sh -e #!/bin/sh -e
EMULDIR=../../emul EMULDIR=../../tools/emul
SHELL=../../emul/shell/shell SHELL="${EMULDIR}/shell/shell"
replay() { replay() {
fn=$1 fn=$1

View File

@ -2,8 +2,8 @@
set -e set -e
# TODO: find POSIX substitute to that PIPESTATUS thing # TODO: find POSIX substitute to that PIPESTATUS thing
BASE=../../.. BASE=../..
TOOLS=../.. TOOLS="${BASE}/tools"
ZASM="${TOOLS}/zasm.sh" ZASM="${TOOLS}/zasm.sh"
RUNBIN="${TOOLS}/emul/runbin/runbin" RUNBIN="${TOOLS}/emul/runbin/runbin"
KERNEL="${BASE}/kernel" KERNEL="${BASE}/kernel"

View File

@ -2,7 +2,7 @@
# no "set -e" because we test errors # no "set -e" because we test errors
ZASM=../../zasm.sh ZASM=../../tools/zasm.sh
chkerr() { chkerr() {
echo "Check that '$1' results in error $2" echo "Check that '$1' results in error $2"

View File

@ -1,9 +1,10 @@
#!/bin/sh -e #!/bin/sh -e
KERNEL=../../../kernel BASE=../..
APPS=../../../apps KERNEL="${BASE}/kernel"
ZASM=../../zasm.sh APPS="${BASE}/apps"
ASMFILE=${APPS}/zasm/instr.asm ZASM="${BASE}/tools/zasm.sh"
ASMFILE="${APPS}/zasm/instr.asm"
cmpas() { cmpas() {
FN=$1 FN=$1