Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
benchmarks/*.sh linguist-vendored
*.wast linguist-vendored
r3/*.wat filter=lfs diff=lfs merge=lfs -text
*.wat filter=lfs diff=lfs merge=lfs -text
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</p>

<p>
<a href="https://github.com/TOPLLab/WARDuino/actions/workflows/compile.yml"><img src="https://github.com/TOPLLab/WARDuino/actions/workflows/compile.yml/badge.svg"></a>
<a href="https://github.com/TOPLLab/WARDuino/actions/workflows/test.yml"><img src="https://github.com/TOPLLab/WARDuino/actions/workflows/test.yml/badge.svg"></a>
<a href="https://doi.org/10.1016/j.cola.2024.101268"><img src="https://img.shields.io/badge/DOI-10.1016%2Fj.cola.2024.101268-blue.svg"></a>
<a href="https://github.com/TOPLLab/WARDuino/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MPL_2.0-blue.svg"></a>
<a href="https://github.com/TOPLLab/WARDuino/actions/workflows/compile.yml"><img src="https://img.shields.io/github/actions/workflow/status/TOPLLab/WARDuino/compile.yml?style=for-the-badge"></a>
<a href="https://doi.org/10.1016/j.cola.2024.101268"><img src="https://img.shields.io/badge/DOI-10.1016%2Fj.cola.2024.101268-blue.svg?style=for-the-badge"></a>
<a href="https://github.com/TOPLLab/WARDuino/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MPL_2.0-blue.svg?style=for-the-badge"></a>
<img src="https://img.shields.io/badge/Git%20LFS-F64935.svg?style=for-the-badge&logo=Git-LFS&logoColor=white">
</p>

<b>
Expand Down
1 change: 1 addition & 0 deletions tests/latch/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
r3/*.wat filter=lfs diff=lfs merge=lfs -text
78 changes: 39 additions & 39 deletions tests/latch/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/latch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"debugtest": "npx ts-node ./src/debugger.test.ts",
"primtest": "npx ts-node ./src/primitives.test.ts",
"spectest": "npx ts-node ./src/spec.test.ts",
"r3test": "npx ts-node ./src/r3.test.ts",
"comptest": "npx ts-node ./src/comp.test.ts"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tests/latch/src/debugger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
export const EMULATOR: string = process.env.EMULATOR ?? `${require('os').homedir()}/Arduino/libraries/WARDuino/build-emu/wdcli`;


const EXAMPLES: string = `${__dirname}/../examples/`;
const EXAMPLES: string = `${__dirname}/../static/examples/`;

/**
* Tests of the Remote Debugger API
Expand Down
37 changes: 37 additions & 0 deletions tests/latch/src/r3.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import {EmulatorSpecification, Framework, Kind, Message, StyleType, Suite, TestScenario, Verbosity, WASM} from 'latch';
import * as fs from 'fs';
import * as path from 'path';

const framework = Framework.getImplementation();
framework.style(StyleType.github);
framework.reporter.verbosity(Verbosity.short);

// TODO disclaimer: file is currently disabled until latch supports AS compilation

const suite: Suite = framework.suite('End-to-end tests: R3 benchmark suite');

suite.testee('emulator [:8530]', new EmulatorSpecification(8530));

const scenarios: TestScenario[] = [];
const r3Directory = path.resolve(__dirname, '../static/r3');
console.error(r3Directory)

if (fs.existsSync(r3Directory)) {
fs.readdirSync(r3Directory)
.filter((file: string) => file.endsWith('.wat'))
.forEach((wasmFile: string) => {
scenarios.push({
title: `R3: ${wasmFile}`,
program: path.join('static', 'r3', wasmFile),
dependencies: [],
steps: [{
title: `Run ${wasmFile}`,
instruction: {kind: Kind.Request, value: Message.run}
}]
});
});
}

suite.tests(scenarios);

framework.run([suite]);
3 changes: 1 addition & 2 deletions tests/latch/src/spec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import {find, parseArguments, parseAsserts, parseResult} from "./util/spec.util"

// Parse tests from official suite

export const CORESUITE: string = process.env.CORESUITE ?? 'core/';
export const TARGET: string = process.env.TARGET ?? 'core-cleaned/';
export const CORESUITE: string = process.env.CORESUITE ?? 'static/core/';

const TESTFILE: string = process.env.TESTFILE ?? '';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading