From 52bd6548500d6ef1e260c84a06903b2bbc8f690b Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Sat, 4 Sep 2021 09:15:24 +0200 Subject: [PATCH] Fixed: The new script for the ojtest tool must be in the dist/cappuccino/bin directory --- dist/cappuccino/bin/ojtest | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 dist/cappuccino/bin/ojtest diff --git a/dist/cappuccino/bin/ojtest b/dist/cappuccino/bin/ojtest new file mode 100755 index 000000000..a73ca8be6 --- /dev/null +++ b/dist/cappuccino/bin/ojtest @@ -0,0 +1,13 @@ +#!/usr/bin/env node + +ObjectiveJ = require("@objj/runtime"); +//CAPPUCCINO = require("@objj/cappuccino"); + +var ojtest = require("@objj/ojtest"); + +// Inject path to the OJTest main Objective-J file into the arguments so it is the file to be executed. +var args = process.argv.slice(); // Copy +args.splice(1, 1, ojtest.pathToOJTest); + +// Compile, load and run it +ObjectiveJ.run(args);