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
70
70
71
71
# Build and test the oracle program.
72
72
RUN cd pyth-client && ./scripts/build-bpf.sh .
73
+ # Run aggregation logic tests
74
+ RUN cd pyth-client && ./scripts/run-aggregation-tests.sh
73
75
RUN /bin/bash -l -c "pytest-3 --pyargs pyth"
74
76
75
77
ENTRYPOINT []
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- module purge || exit 1
4
- module load gcc-9.3.0 || exit 1
5
-
6
3
./clean || exit 1
7
4
mkdir -pv bin || exit 1
8
5
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- module purge || exit 1
4
- module load gcc-9.3.0 || exit 1
5
-
6
3
./clean || exit 1
7
4
mkdir -pv bin || exit 1
8
5
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- module purge || exit 1
4
- module load gcc-9.3.0 || exit 1
5
-
6
3
./clean || exit 1
7
4
mkdir -pv bin || exit 1
8
5
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