Skip to content

Commit ef24cb4

Browse files
committed
Test having CI/CD utilizing PyPanda generic images via PyPanda API
1 parent 29e4ec2 commit ef24cb4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/parallel_tests.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ jobs:
9797
run: sudo apt-get -qq install -y wget
9898
- name: Run Taint Tests
9999
if: matrix.test_type == 'taint'
100-
run: >-
101-
wget -q -O wheezy_panda2.qcow2 https://panda-re.mit.edu/qcows/linux/debian/7.3/x86/debian_7.3_x86.qcow;
102-
wget -q https://panda-re.mit.edu/qcows/linux/ubuntu/1804/x86_64/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2;
100+
run: |
101+
pip3 install pandare
102+
python3 -c "from pandare.qcows_internal import Qcows;Qcows.get_qcow('i386')"
103+
python3 -c "from pandare.qcows_internal import Qcows;Qcows.get_qcow('x86_64')"
103104
docker run --name panda_test_${{ matrix.target }}_${GITHUB_RUN_ID}
104-
--mount type=bind,source=$(pwd)/wheezy_panda2.qcow2,target=/home/panda/regdir/qcows/wheezy_panda2.qcow2
105-
--mount type=bind,source=$(pwd)/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2,target=/home/panda/regdir/qcows/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2
105+
--mount type=bind,source=$HOME/.panda,target=$HOME/.panda
106106
--rm -t "ghcr.io/${{ github.repository_owner }}/panda_local:${{ github.sha }}" bash -c
107107
"cd /tmp; git clone https://github.com/panda-re/panda_test;
108108
cd ./panda_test/tests/taint2;
@@ -117,10 +117,11 @@ jobs:
117117
118118
- name: Run PyPanda Tests
119119
if: matrix.test_type == 'pypanda'
120-
run: >-
121-
wget -q https://panda-re.mit.edu/qcows/linux/ubuntu/1604/x86/ubuntu_1604_x86.qcow;
120+
run: |
121+
pip3 install pandare
122+
python3 -c "from pandare.qcows_internal import Qcows;Qcows.get_qcow('i386')"
122123
docker run --name panda_test_${{ matrix.test_script }}_${GITHUB_RUN_ID}
123-
--mount type=bind,source=$(pwd)/ubuntu_1604_x86.qcow,target=/root/.panda/ubuntu_1604_x86.qcow
124+
--mount type=bind,source=$HOME/.panda,target=$HOME/.panda
124125
-e PANDA_TEST=yes --cap-add SYS_NICE
125126
--rm -t "ghcr.io/${{ github.repository_owner }}/panda_local:${{ github.sha }}" bash -c
126127
"cd /panda/panda/python/tests/ && make && pip3 install -r requirements.txt && chmod +x ./run_all_tests.sh && ./run_all_tests.sh";

0 commit comments

Comments
 (0)