Browse Source

Move "tests" folder to root

pull/85/head
Virgil Dupras 4 years ago
parent
commit
c5c6ef4c6c
58 changed files with 20 additions and 26 deletions
  1. +1
    -2
      README.md
  2. +4
    -10
      runtests.sh
  3. +3
    -3
      tests/Makefile
  4. +0
    -0
      tests/README.md
  5. +0
    -0
      tests/avra/blink_tn45.asm
  6. +0
    -0
      tests/avra/blink_tn45.expected
  7. +2
    -2
      tests/avra/runtests.sh
  8. +0
    -0
      tests/avra/seg7multiplex.asm
  9. +0
    -0
      tests/avra/seg7multiplex.expected
  10. +0
    -0
      tests/avra/test1.asm
  11. +0
    -0
      tests/avra/test1.expected
  12. +0
    -0
      tests/avra/testldst.asm
  13. +0
    -0
      tests/avra/testldst.expected
  14. +0
    -0
      tests/shell/cfsin/bar
  15. +0
    -0
      tests/shell/cfsin/foo
  16. +0
    -0
      tests/shell/fls.expected
  17. +0
    -0
      tests/shell/fls.replay
  18. +0
    -0
      tests/shell/print.expected
  19. +0
    -0
      tests/shell/print.replay
  20. +2
    -2
      tests/shell/runtests.sh
  21. +0
    -0
      tests/shell/test.cfs
  22. +0
    -0
      tests/unit/common.asm
  23. +2
    -2
      tests/unit/runtests.sh
  24. +0
    -0
      tests/unit/test_basic_parse.asm
  25. +0
    -0
      tests/unit/test_core.asm
  26. +0
    -0
      tests/unit/test_ed_util.asm
  27. +0
    -0
      tests/unit/test_expr.asm
  28. +0
    -0
      tests/unit/test_lib_ari.asm
  29. +0
    -0
      tests/unit/test_lib_fmt.asm
  30. +0
    -0
      tests/unit/test_lib_parse.asm
  31. +0
    -0
      tests/unit/test_symbol.asm
  32. +0
    -0
      tests/unit/test_util_z.asm
  33. +0
    -0
      tests/unit/test_z_instr.asm
  34. +0
    -0
      tests/zasm/allinstrs.asm
  35. +0
    -0
      tests/zasm/allinstrs.asm.expected
  36. +1
    -1
      tests/zasm/errtests.sh
  37. +0
    -0
      tests/zasm/geninstrs.py
  38. +5
    -4
      tests/zasm/runtests.sh
  39. +0
    -0
      tests/zasm/test1.asm
  40. +0
    -0
      tests/zasm/test1.asm.expected
  41. +0
    -0
      tests/zasm/test10.asm
  42. +0
    -0
      tests/zasm/test10.asm.expected
  43. +0
    -0
      tests/zasm/test2.asm
  44. +0
    -0
      tests/zasm/test2.asm.expected
  45. +0
    -0
      tests/zasm/test3.asm
  46. +0
    -0
      tests/zasm/test3.asm.expected
  47. +0
    -0
      tests/zasm/test4.asm
  48. +0
    -0
      tests/zasm/test4.asm.expected
  49. +0
    -0
      tests/zasm/test5.asm
  50. +0
    -0
      tests/zasm/test5.asm.expected
  51. +0
    -0
      tests/zasm/test6.asm
  52. +0
    -0
      tests/zasm/test6.asm.expected
  53. +0
    -0
      tests/zasm/test7.asm
  54. +0
    -0
      tests/zasm/test7.asm.expected
  55. +0
    -0
      tests/zasm/test8.asm
  56. +0
    -0
      tests/zasm/test8.asm.expected
  57. +0
    -0
      tests/zasm/test9.asm
  58. +0
    -0
      tests/zasm/test9.asm.expected

+ 1
- 2
README.md View File

@@ -37,8 +37,7 @@ path to giving Collapse OS a try.
* `tools`: Tools for working with Collapse OS from "modern" environments. Mostly
development tools, but also contains emulated zasm, which is
necessary to build Collapse OS from a non-Collapse OS machine.

Each folder has a README with more details.
* `tests`: Automated test suite for the whole project.

## Status



+ 4
- 10
runtests.sh View File

@@ -4,15 +4,9 @@ git submodule init
git submodule update
git clean -fxd

cd tools/emul
make

cd ../tests
make
make -C tools/emul
make -C tests

# let's try again with an updated zasm
cd ../emul
make updatebootstrap all

cd ../tests
make
make -C tools/emul updatebootstrap all
make -C tests

tools/tests/Makefile → tests/Makefile View File

@@ -1,5 +1,5 @@
EMULDIR = ../emul
CFSPACK = ../cfspack/cfspack
EMULDIR = ../tools/emul
CFSPACK = ../tools/cfspack/cfspack

.PHONY: run
run:
@@ -10,7 +10,7 @@ run:
cd shell && ./runtests.sh

$(CFSPACK):
$(MAKE) -C ../cfspack
$(MAKE) -C ../tools/cfspack

.PHONY: cfs
cfs: $(CFSPACK)

tools/tests/README.md → tests/README.md View File


tools/tests/avra/blink_tn45.asm → tests/avra/blink_tn45.asm View File


tools/tests/avra/blink_tn45.expected → tests/avra/blink_tn45.expected View File


tools/tests/avra/runtests.sh → tests/avra/runtests.sh View File

@@ -1,7 +1,7 @@
#!/bin/sh -e

ZASM=../../zasm.sh
AVRINC=../../../avr
ZASM=../../tools/zasm.sh
AVRINC=../../avr

cmpas() {
FN=$1

tools/tests/avra/seg7multiplex.asm → tests/avra/seg7multiplex.asm View File


tools/tests/avra/seg7multiplex.expected → tests/avra/seg7multiplex.expected View File


tools/tests/avra/test1.asm → tests/avra/test1.asm View File


tools/tests/avra/test1.expected → tests/avra/test1.expected View File


tools/tests/avra/testldst.asm → tests/avra/testldst.asm View File


tools/tests/avra/testldst.expected → tests/avra/testldst.expected View File


tools/tests/shell/cfsin/bar → tests/shell/cfsin/bar View File


tools/tests/shell/cfsin/foo → tests/shell/cfsin/foo View File


tools/tests/shell/fls.expected → tests/shell/fls.expected View File


tools/tests/shell/fls.replay → tests/shell/fls.replay View File


tools/tests/shell/print.expected → tests/shell/print.expected View File


tools/tests/shell/print.replay → tests/shell/print.replay View File


tools/tests/shell/runtests.sh → tests/shell/runtests.sh View File

@@ -1,7 +1,7 @@
#!/bin/sh -e

EMULDIR=../../emul
SHELL=../../emul/shell/shell
EMULDIR=../../tools/emul
SHELL="${EMULDIR}/shell/shell"

replay() {
fn=$1

tools/tests/shell/test.cfs → tests/shell/test.cfs View File


tools/tests/unit/common.asm → tests/unit/common.asm View File


tools/tests/unit/runtests.sh → tests/unit/runtests.sh View File

@@ -2,8 +2,8 @@
set -e
# TODO: find POSIX substitute to that PIPESTATUS thing

BASE=../../..
TOOLS=../..
BASE=../..
TOOLS="${BASE}/tools"
ZASM="${TOOLS}/zasm.sh"
RUNBIN="${TOOLS}/emul/runbin/runbin"
KERNEL="${BASE}/kernel"

tools/tests/unit/test_basic_parse.asm → tests/unit/test_basic_parse.asm View File


tools/tests/unit/test_core.asm → tests/unit/test_core.asm View File


tools/tests/unit/test_ed_util.asm → tests/unit/test_ed_util.asm View File


tools/tests/unit/test_expr.asm → tests/unit/test_expr.asm View File


tools/tests/unit/test_lib_ari.asm → tests/unit/test_lib_ari.asm View File


tools/tests/unit/test_lib_fmt.asm → tests/unit/test_lib_fmt.asm View File


tools/tests/unit/test_lib_parse.asm → tests/unit/test_lib_parse.asm View File


tools/tests/unit/test_symbol.asm → tests/unit/test_symbol.asm View File


tools/tests/unit/test_util_z.asm → tests/unit/test_util_z.asm View File


tools/tests/unit/test_z_instr.asm → tests/unit/test_z_instr.asm View File


tools/tests/zasm/allinstrs.asm → tests/zasm/allinstrs.asm View File


tools/tests/zasm/allinstrs.asm.expected → tests/zasm/allinstrs.asm.expected View File


tools/tests/zasm/errtests.sh → tests/zasm/errtests.sh View File

@@ -2,7 +2,7 @@

# no "set -e" because we test errors

ZASM=../../zasm.sh
ZASM=../../tools/zasm.sh

chkerr() {
echo "Check that '$1' results in error $2"

tools/tests/zasm/geninstrs.py → tests/zasm/geninstrs.py View File


tools/tests/zasm/runtests.sh → tests/zasm/runtests.sh View File

@@ -1,9 +1,10 @@
#!/bin/sh -e

KERNEL=../../../kernel
APPS=../../../apps
ZASM=../../zasm.sh
ASMFILE=${APPS}/zasm/instr.asm
BASE=../..
KERNEL="${BASE}/kernel"
APPS="${BASE}/apps"
ZASM="${BASE}/tools/zasm.sh"
ASMFILE="${APPS}/zasm/instr.asm"

cmpas() {
FN=$1

tools/tests/zasm/test1.asm → tests/zasm/test1.asm View File


tools/tests/zasm/test1.asm.expected → tests/zasm/test1.asm.expected View File


tools/tests/zasm/test10.asm → tests/zasm/test10.asm View File


tools/tests/zasm/test10.asm.expected → tests/zasm/test10.asm.expected View File


tools/tests/zasm/test2.asm → tests/zasm/test2.asm View File


tools/tests/zasm/test2.asm.expected → tests/zasm/test2.asm.expected View File


tools/tests/zasm/test3.asm → tests/zasm/test3.asm View File


tools/tests/zasm/test3.asm.expected → tests/zasm/test3.asm.expected View File


tools/tests/zasm/test4.asm → tests/zasm/test4.asm View File


tools/tests/zasm/test4.asm.expected → tests/zasm/test4.asm.expected View File


tools/tests/zasm/test5.asm → tests/zasm/test5.asm View File


tools/tests/zasm/test5.asm.expected → tests/zasm/test5.asm.expected View File


tools/tests/zasm/test6.asm → tests/zasm/test6.asm View File


tools/tests/zasm/test6.asm.expected → tests/zasm/test6.asm.expected View File


tools/tests/zasm/test7.asm → tests/zasm/test7.asm View File


tools/tests/zasm/test7.asm.expected → tests/zasm/test7.asm.expected View File


tools/tests/zasm/test8.asm → tests/zasm/test8.asm View File


tools/tests/zasm/test8.asm.expected → tests/zasm/test8.asm.expected View File


tools/tests/zasm/test9.asm → tests/zasm/test9.asm View File


tools/tests/zasm/test9.asm.expected → tests/zasm/test9.asm.expected View File


Loading…
Cancel
Save