itf

command module
v0.0.0-...-90201d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

README

Instruction Test Framework (ITF)

This directory tries to test the assembler and disassembler by round- tripping them. It contains some test programs with the w4a (WUT-4 assembler) extension.

For each test program t1.w4a, t2, etc., the itf program (itf.go) first assembles the test program, producing wut4.out. It moves the generated binary to a temporary working directory. The binary file is disassembled producing a disassembly in the temporary directory, which is then assembled to produce another wut4.out file. The two assembler output binaries are then compared for equality.

This approach removes all issues with minor textual differences such as number bases between the original assembler source and the disassembled source.

Documentation

Overview

Copyright © 2022 Jeff Berkowitz (pdxjjb@gmail.com)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL