Skip to content

Commit

Permalink
Download scratch-run and testlib before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hieplpvip committed Aug 17, 2023
1 parent 9946bc6 commit 1f7a607
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test-tier3/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/bin/bash

curl --location -o scratch-run.zip $(curl -s https://api.github.com/repos/VNOI-Admin/scratch-run/releases/latest | grep -o -m 1 "https://github\.com.*.*linux_amd64\.zip")
unzip scratch-run.zip
mv scratch-run /usr/bin/scratch-run

curl -L https://raw.githubusercontent.com/VNOI-Admin/testlib/master/testlib.h -o /usr/include/testlib.h
sed -i '/^#include <cstdio>/a#include <cstdint>' /usr/include/testlib.h

curl -L https://raw.githubusercontent.com/skyvn97/testlib/customized-testlib/testlib_themis_cms.h -o /usr/include/testlib_themis_cms.h
sed -i '/^#include <cstdio>/a#include <cstdint>' /usr/include/testlib_themis_cms.h

mkdir /judge
cd /judge || exit
curl -L https://github.com/VNOI-Admin/judge-server/archive/master.tar.gz | tar -xz --strip-components=1
Expand Down

0 comments on commit 1f7a607

Please sign in to comment.