diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfdb8b7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf diff --git a/.gitea/workflows/array-queue.yml b/.gitea/workflows/array-queue.yml new file mode 100644 index 0000000..7fbff05 --- /dev/null +++ b/.gitea/workflows/array-queue.yml @@ -0,0 +1,17 @@ +name: Array Queue Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile Java + run: | + mkdir -p out + javac -d out $(find java common -name "*.java") + - name: Run Queue tests + run: | + java -ea --add-opens java.base/java.util=ALL-UNNAMED -cp out queue.ArrayQueueTest Base 3233 3435 3637 3839 diff --git a/.gitea/workflows/exception.yml b/.gitea/workflows/exception.yml new file mode 100644 index 0000000..8ba81e0 --- /dev/null +++ b/.gitea/workflows/exception.yml @@ -0,0 +1,17 @@ +name: Exception Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile Java + run: | + mkdir -p out + javac -d out $(find java common -name "*.java") + - name: Run Exception tests + run: | + java -ea -cp out expression.exceptions.ExceptionsTest hard base 3233 3435 3637 3839 diff --git a/.gitea/workflows/generic.yml b/.gitea/workflows/generic.yml new file mode 100644 index 0000000..cde9b16 --- /dev/null +++ b/.gitea/workflows/generic.yml @@ -0,0 +1,17 @@ +name: Generic Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile Java + run: | + mkdir -p out + javac -d out $(find java common -name "*.java") + - name: Run Generic tests + run: | + java -ea -cp out expression.generic.GenericTest hard base 3233 3435 3637 3839 diff --git a/.gitea/workflows/js-example.yml b/.gitea/workflows/js-example.yml new file mode 100644 index 0000000..7c186d4 --- /dev/null +++ b/.gitea/workflows/js-example.yml @@ -0,0 +1,26 @@ +name: JavaScript Example Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile + run: | + javac \ + -encoding utf-8 \ + -d javascript/__out \ + --class-path "javascript/graal/*:common:javascript" \ + javascript/jstest/example/ExampleTest.java + - name: Run JavaScript Example tests + working-directory: javascript + run: | + java -ea \ + --enable-native-access=org.graalvm.truffle \ + -Dsun.misc.unsafe.memory.access=allow \ + --module-path=graal \ + --class-path=__out \ + jstest.example.ExampleTest hard base diff --git a/.gitea/workflows/js-expressions.yml b/.gitea/workflows/js-expressions.yml new file mode 100644 index 0000000..834ca74 --- /dev/null +++ b/.gitea/workflows/js-expressions.yml @@ -0,0 +1,26 @@ +name: JavaScript Expressions Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile + run: | + javac \ + -encoding utf-8 \ + -d javascript/__out \ + --class-path "javascript/graal/*:common:javascript" \ + javascript/jstest/functional/FunctionalTest.java + - name: Run JavaScript Expressions tests + working-directory: javascript + run: | + java -ea \ + --enable-native-access=org.graalvm.truffle \ + -Dsun.misc.unsafe.memory.access=allow \ + --module-path=graal \ + --class-path=__out \ + jstest.functional.FunctionalTest hard base 3233 3435 3637 3839 diff --git a/.gitea/workflows/js-objective-expressions.yml b/.gitea/workflows/js-objective-expressions.yml new file mode 100644 index 0000000..26cb597 --- /dev/null +++ b/.gitea/workflows/js-objective-expressions.yml @@ -0,0 +1,26 @@ +name: JavaScript Objective Expressions Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile + run: | + javac \ + -encoding utf-8 \ + -d javascript/__out \ + --class-path "javascript/graal/*:common:javascript" \ + javascript/jstest/object/ObjectTest.java + - name: Run JavaScript Objective Expressions tests + working-directory: javascript + run: | + java -ea \ + --enable-native-access=org.graalvm.truffle \ + -Dsun.misc.unsafe.memory.access=allow \ + --module-path=graal \ + --class-path=__out \ + jstest.object.ObjectTest bonus base Simplify diff --git a/.gitea/workflows/queues.yml b/.gitea/workflows/queues.yml new file mode 100644 index 0000000..b9af223 --- /dev/null +++ b/.gitea/workflows/queues.yml @@ -0,0 +1,17 @@ +name: Queues Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile Java + run: | + mkdir -p out + javac -d out $(find java common -name "*.java") + - name: Run Queue tests + run: | + java -ea --add-opens java.base/java.util=ALL-UNNAMED -cp out queue.QueueTest Base 3233 3435 3637 3839 diff --git a/.gitea/workflows/search.yml b/.gitea/workflows/search.yml new file mode 100644 index 0000000..a969de6 --- /dev/null +++ b/.gitea/workflows/search.yml @@ -0,0 +1,17 @@ +name: Binary Search Test +on: + push: + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Compile Java + run: | + mkdir -p out + javac -d out $(find java common -name "*.java") + - name: Run Binary Search tests + run: | + java -ea -cp out search.BinarySearchTest Base 3233 3435 3637 3839 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8a0461 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.class +*.iml +.idea