Skip to content

The runtests.fth file needs to be improved #5

@gerryjackson

Description

@gerryjackson

Currently runtests.fth uses S" in interpreter mode which is a File-Access word set capability and uses INCLUDED also from that word set.

I don't think we can do much about INCLUDED except to say that if a system cannot include a file they'll have to find some way of streaming it in whhich we can't help with as it's likely to be different in all systems.

The S" problem can be solved in two ways, before and after Core tests

  1. Before core.fr we can use a trick such as:
    ( core.fr ) SOURCE DROP 2 CHARS + 7 INCLUDED
  2. After core.fr we can define:
    : TEST-FILE BL WORD COUNT INCLUDED ;
    where usage is:
    TEST-FILE coreplustest.fth
    etc.
    For neatness we might want to define LOAD-FILE for errorreport.fth as that's not being tested.

Any other ideas?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions