Skip to content

Commit 140716f

Browse files
authored
Update docker (#257)
1 parent f72bd77 commit 140716f

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ RUN ./pyth-client/scripts/patch-solana.sh
7070

7171
# Build and test the oracle program.
7272
RUN cd pyth-client && ./scripts/build-bpf.sh .
73+
# Run aggregation logic tests
74+
RUN cd pyth-client && ./scripts/run-aggregation-tests.sh
7375
RUN /bin/bash -l -c "pytest-3 --pyargs pyth"
7476

7577
ENTRYPOINT []

program/c/src/oracle/model/run_tests

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/sh
22

3-
module purge || exit 1
4-
module load gcc-9.3.0 || exit 1
5-
63
./clean || exit 1
74
mkdir -pv bin || exit 1
85

program/c/src/oracle/sort/run_tests

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/sh
22

3-
module purge || exit 1
4-
module load gcc-9.3.0 || exit 1
5-
63
./clean || exit 1
74
mkdir -pv bin || exit 1
85

program/c/src/oracle/util/run_tests

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/sh
22

3-
module purge || exit 1
4-
module load gcc-9.3.0 || exit 1
5-
63
./clean || exit 1
74
mkdir -pv bin || exit 1
85

scripts/run-aggregation-tests.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set -eux
2+
3+
PYTH_DIR=$( cd "${1:-.}" && pwd)
4+
5+
#find the makefile in pyth-client
6+
#ASSUMES THAT there is only one makefile there
7+
C_DIR="$( find $PYTH_DIR | grep makefile)"
8+
C_DIR=$(dirname $C_DIR)
9+
10+
cd "${C_DIR}/src/oracle/model"
11+
./run_tests
12+
cd "${C_DIR}/src/oracle/sort"
13+
./run_tests
14+
cd "${C_DIR}/src/oracle/util"
15+
./run_tests

0 commit comments

Comments
 (0)