Skip to content

Commit a7efef9

Browse files
optimze 3g file creation with test case
1 parent 58b6611 commit a7efef9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sftp-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,14 @@ jobs:
179179
working-directory: ./wolfssh/
180180
run: make
181181

182-
- name: Create 3GB random test file
182+
- name: Create 3GB test file
183183
working-directory: ./wolfssh/
184184
run: |
185-
dd if=/dev/urandom of=large_test.dat bs=1M count=3072
185+
dd if=/dev/urandom of=seed.dat bs=1M count=10
186+
for i in $(seq 1 308); do cat seed.dat >> large_test.dat; done
187+
rm seed.dat
186188
sha256sum large_test.dat > large_test.dat.sha256
187-
echo "Created 3GB random file, SHA-256: $(cat large_test.dat.sha256)"
189+
echo "Created 3GB test file, SHA-256: $(cat large_test.dat.sha256)"
188190
189191
- name: Start echoserver
190192
working-directory: ./wolfssh/

0 commit comments

Comments
 (0)