Skip to content

Commit

Permalink
Update to J9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
eNascimento178 committed Mar 31, 2024
1 parent 235c352 commit 0e809ba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://www.jsoftware.com/download/j901/install/j901_linux64.tar.gz \
&& tar -xvf j901_linux64.tar.gz \
&& mv j901 /opt/j901 \
RUN wget https://www.jsoftware.com/download/j9.5/install/j9.5_linux64.tar.gz \
&& tar -xvf j9.5_linux64.tar.gz \
&& mv j9.5 /opt/j9.5 \
&& apt-get -y --purge remove wget ca-certificates \
&& rm -rf j901_linux64.tar.gz
&& rm -rf j9.5_linux64.tar.gz

RUN /opt/j901/bin/jconsole -js \
RUN /opt/j9.5/bin/jconsole -js \
"load'pacman'" \
"'update'jpkg''" \
"'install'jpkg'convert/json'" \
Expand Down
6 changes: 3 additions & 3 deletions bin/run.ijs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /opt/j901/bin/jconsole
#! /opt/j9.5/bin/jconsole

require'convert/json general/unittest'

Expand Down Expand Up @@ -40,7 +40,7 @@ main=: monad define
end. NB. else report pass/fail

'order tasks'=. |: > cutopen each cutopen 1!:1 < jpath '~temp/helper.txt' NB. get ordering and tasks numbers from temporary helper file
1!:55 < jpath '~user/temp/helper.txt' NB. deletes helper file
1!:55 < jpath '~temp/helper.txt' NB. deletes helper file
tasks=. |: ,: ,. (<'task_id') ,: <"0 tasks NB. tasks has shape 4 2 1 in order to simplify the merge


Expand All @@ -53,4 +53,4 @@ main=: monad define
exit 0
)

main''
main''
2 changes: 1 addition & 1 deletion bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ echo "${slug}: testing..."

# Run the tests for the provided implementation file and redirect stdout and
# stderr to capture it
test_output=$(/opt/j901/bin/jconsole bin/run.ijs "$slug" "$solution_dir/" "$output_dir/")
test_output=$(/opt/j9.5/bin/jconsole bin/run.ijs "$slug" "$solution_dir/" "$output_dir/")

jq . ${results_file} | sponge ${results_file}

Expand Down

0 comments on commit 0e809ba

Please sign in to comment.