Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik committed Dec 12, 2024
1 parent effaf4c commit 484217b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions get_resources.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/usr/bin/env bash

HERE=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

if [ ! -f demo/src/test/resources/test-ap.jfr ]; then
wget --no-check-certificate -O demo/src/test/resources/test-ap.jfr "https://drive.usercontent.google.com/download?id=1lebqWl27wAF1Q59cziTvVcz3osVx6iSn&export=download&authuser=0&confirm=t&uuid=c1f0f74f-4905-440a-acf0-bd90c628d6db&at=AN_67v2uViTVsyMesAoxPq7yUFr4%3A1728386424683"
fi
if [ ! -f demo/src/test/resources/test-async.jfr ]; then
wget --no-check-certificate -O demo/src/test/resources/test-async.jfr "https://drive.usercontent.google.com/download?id=13eC3Rcapd9mWqZ_FmTDMsEe_naNshtmn&export=download&authuser=0&confirm=t&uuid=93d70a93-aba0-485f-a981-242866014e12&at=AN_67v3ONmsOLbP3EsuhrLRZgiig%3A1728386466678"
wget --no-check-certificate -O demo/src/test/resources/test-ap.jfr "https://www.dropbox.com/scl/fi/lp5bj8adi3l7jge9ykayr/test-ap.jfr?rlkey=28wghlmp7ge4bxnan9ccwarby&st=0kd2p1u1&dl=0"
fi
if [ ! -f demo/src/test/resources/test-jfr.jfr ]; then
wget --no-check-certificate -O demo/src/test/resources/test-jfr.jfr "https://drive.usercontent.google.com/download?id=1UqqpUQwVSyIYMEGP4uEr_pA-A-Gmbpo9&export=download&authuser=0&confirm=t&uuid=25b88cbd-7493-47db-b9db-a223d62a66c2&at=AN_67v0u2i7M4LFf3jmjZqlI6vZU%3A1728386510351"
wget --no-check-certificate -O demo/src/test/resources/test-jfr.jfr "https://www.dropbox.com/scl/fi/5uhp13h9ltj38joyqmwo5/test-jfr.jfr?rlkey=p0wmznxgm7zud6xzaydled69c&st=ilfirsrg&dl=0"
fi

ln -s demo/src/test/resources/test-ap.jfr parser/src/test/resources/test-ap.jfr
if [ ! -f parser/src/test/resource/test-ap.jfr ]; then
ln -s ${HERE}/demo/src/test/resources/test-ap.jfr ${HERE}/parser/src/test/resources/test-ap.jfr
fi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static void setupAll() throws IOException {
mapFile = Files.createTempFile("jafar-", ".tmp");
mapFile.toFile().deleteOnExit();
byte[] data = new byte[FILE_SIZE];
ByteBuffer bb = MappedByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN);
ByteBuffer bb = MappedByteBuffer.wrap(data).order(ByteOrder.nativeOrder());
bb.put((byte)1);
bb.putShort((short)2);
bb.putInt((int)3);
Expand Down

0 comments on commit 484217b

Please sign in to comment.