File tree Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ RUN ./pyth-client/scripts/patch-solana.sh
7070
7171# Build and test the oracle program.
7272RUN cd pyth-client && ./scripts/build-bpf.sh .
73+ # Run aggregation logic tests
74+ RUN cd pyth-client && ./scripts/run-aggregation-tests.sh
7375RUN /bin/bash -l -c "pytest-3 --pyargs pyth"
7476
7577ENTRYPOINT []
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- module purge || exit 1
4- module load gcc-9.3.0 || exit 1
5-
63./clean || exit 1
74mkdir -pv bin || exit 1
85
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- module purge || exit 1
4- module load gcc-9.3.0 || exit 1
5-
63./clean || exit 1
74mkdir -pv bin || exit 1
85
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- module purge || exit 1
4- module load gcc-9.3.0 || exit 1
5-
63./clean || exit 1
74mkdir -pv bin || exit 1
85
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments