echo "Creating shell wrappers..."
mkdir -p shell
+ # wrapper is a space separated list
wrapper=build
for file in $wrapper;do
-
- cat > shell/$file << EOL
+ cat > shell/$file << EOL
#!/bin/bash
java com/ReasoningTechnology/Ariadne/$file
EOL
chmod +x shell/$file
-
-done
+ done
echo "$(script_fp) done."
#!/usr/bin/env bash
+script_path="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
+export REPO_HOME="${script_path%}/"
+echo REPO_HOME "$REPO_HOME"
+
+cd "$REPO_HOME"
source tool/env
#!/usr/bin/env bash
+script_path="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
+export REPO_HOME="${script_path%}/"
+echo REPO_HOME "$REPO_HOME"
+
+cd "$REPO_HOME"
source tool_shared/bespoke/env
source developer/tool/env
#!/usr/bin/env bash
+script_path="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
+export REPO_HOME="${script_path%}/"
+echo REPO_HOME "$REPO_HOME"
+
+cd "$REPO_HOME"
source tool_shared/bespoke/env
source tester/tool/env
-
-javac/TestBench does not belong here. It should have its own project.
+javac/TestBench is the non-project specific part of the test bench. (It does not
+belong here, rather it should be its own project.)
+
+javac/TestBenchAriadne Has the project specific tests.
-Currently it must be made first using `make_TestBench`. It will be made again,
-redundantly as part of `make` because it is in the javac directory. This does
-not hurt anything.
-Later we will use an earlier version of the build tool to build the build tool,
-and cases and `make_TestBench` can be handled more gracefully if it is still
-here.
test1 - see what happens with a single symbolic node
-Remaining tests are compiled into javac/TestBenchAriande
+javac/TestBenchAriadne - the remainder of the tests.
+
-package com.reasoningtechnology.TestBench;
+package com.ReasoningTechnology.TestBench;
import java.util.Map;
public class TestBench {
package com.ReasoningTechnology.Ariadne.TestBench;
-import com.reasoningtechnology.Ariadna.*;
-import com.reasoningtechnology.TestBench.*;
+import com.ReasoningTechnology.Ariadne.File;
+import com.ReasoningTechnology.TestBench.*;
import java.util.Map;
import java.util.HashMap;
--- /dev/null
+#!/bin/env bash
+java com.ReasoningTechnology.Ariadne.TestBench.TestBenchAriadne
+++ /dev/null
-# input guards
-
- env_must_be="tester/tool/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: error: must be run in the $env_must_be environment"
- exit 1
- fi
-
-# Paths
-BUILD_DIR="$REPO_HOME/tester/scratch_pad"
-JAR_OUTPUT_DIR="$REPO_HOME/tester/jvm"
-
-# Clean the scratch_pad directory
-echo "Cleaning up scratch_pad directory..."
-rm -rf "$BUILD_DIR"/*
-
-# Optionally clean the jar output as well
-echo "Cleaning up jvm directory..."
-rm -f "$JAR_OUTPUT_DIR"/*.jar
-
-echo "$script_name done."
--- /dev/null
+#!/bin/bash
+
+# Caveat: the 'shell' directory is for built wrapper functions. `clean_build_directories` will
+# remove all the files in this directory. For bespoke scripts used by the tester, put
+# them in the `tool` directory.
+
+# input guards
+ env_must_be="tester/tool/env"
+ if [ "$ENV" != "$env_must_be" ]; then
+ echo "$(script_fp):: error: must be run in the $env_must_be environment"
+ exit 1
+ fi
+
+# remove files
+ set -x
+ cd "$REPO_HOME"/tester
+ rm -r scratch_pad/*
+ rm jvm/*
+ rm shell/*
+ set +x
+
+echo "$(script_fn) done."
"$JAVA_HOME"/lib\
:"$REPO_HOME"/release/Ariadne.jar\
:"$REPO_HOME"/tester/jvm/TestBench.jar\
-:"$REPO_HOME"/tester/jvm/AriadneTestBench.jar\
+:"$REPO_HOME"/tester/jvm/TestBenchAriadne.jar\
:"$CLASSPATH"
# misc
exit 1
fi
-# the build
-set -x
+echo "Compiling files..."
+ set -x
cd $REPO_HOME/tester
-
javac -d scratch_pad javac/*.java
- jar cf jvm/AriadnaTestBench.jar -C scratch_pad .
+ jar cf jvm/TestBenchAriadne.jar -C scratch_pad .
+ set +x
-set +x
+echo "Creating shell wrappers..."
+ mkdir -p shell
+ # wrapper is a space separated list
+ wrapper=TestBenchAriadne
+ for file in $wrapper;do
+ cat > shell/$file << EOL
+#!/bin/env bash
+java com.ReasoningTechnology.Ariadne.TestBench.$file
+EOL
+ chmod +x shell/$file
+ done
echo "$(script_fp) done."
+++ /dev/null
-#!/bin/env bash
-
-# input guards
-
- env_must_be="tester/tool/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: error: must be run in the $env_must_be environment"
- exit 1
- fi
-
-# the build
-set -x
-
- cd $REPO_HOME/tester
-
- javac -d scratch_pad javac/TestBench.java
- jar cf jvm/TestBench.jar -C scratch_pad .
-
-set +x
-
-echo "$(script_fp) done."
#!/usr/bin/env bash
# environment shared by entire project
-
# number one task, establish REPO_HOME
# this is specific to this script being in the .../tools_shared/env directory
- script_path="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
- export REPO_HOME="${script_path%/*/*}/"
export PROJECT=$(basename "$REPO_HOME")
## set the shell prompt to show the project
# some feedback to show all went well
echo ENV "$ENV"
-echo REPO_HOME "$REPO_HOME"
echo PROJECT "$PROJECT"