Run fs/test.sh on 32 bit

This commit is contained in:
Matt Joiner 2022-01-31 11:52:57 +11:00
parent 7349eda7ef
commit eeb04bf654
2 changed files with 6 additions and 3 deletions

View File

@ -35,12 +35,15 @@ jobs:
- name: Some packages compile for WebAssembly
run: GOOS=js GOARCH=wasm go build . ./storage ./tracker/...
- name: Install godo
run: go install github.com/anacrolix/godo@latest
# Need master for cross-compiling fix
run: go install github.com/anacrolix/godo@master
- name: Apt packages
run: sudo apt install pv fuse
- name: torrentfs end-to-end test
run: fs/test.sh
# Test on 386 for atomic alignment and other bad 64-bit assumptions
run: GOARCH=386 fs/test.sh
timeout-minutes: 10

View File

@ -6,7 +6,7 @@ trap 'set +e; sudo umount -f mnt' EXIT
debian_file=debian-10.8.0-amd64-netinst.iso
pushd torrents
cp "$repopath/testdata/$debian_file.torrent" .
godo -v -race "$repopath/cmd/torrent" metainfo "$repopath/testdata/sintel.torrent" magnet > sintel.magnet
godo -v "$repopath/cmd/torrent" metainfo "$repopath/testdata/sintel.torrent" magnet > sintel.magnet
popd
#file="$debian_file"
file=Sintel/Sintel.mp4