2022-10-28 02:45:52 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
echo "================================================================================"
|
|
|
|
echo -n "Testing \`dumpnbt\`... "
|
|
|
|
|
2023-06-18 03:37:19 +02:00
|
|
|
[ "$(dumpnbt resources/NBT_data/bare_int64_tag)" = "$(cat resources/NBT_data/bare_int64_tag.dumpnbt_out)" ] \
|
|
|
|
&& [ "$(dumpnbt resources/NBT_data/bare_int64_tag_and_int32_tag)" = "$(cat resources/NBT_data/bare_int64_tag_and_int32_tag.dumpnbt_out)" ] \
|
|
|
|
&& [ "$(dumpnbt resources/NBT_data/servers.dat)" = "$(cat resources/NBT_data/servers.dat.dumpnbt_out)" ] \
|
|
|
|
&& [ "$(dumpnbt resources/NBT_data/simple_nbt)" = "$(cat resources/NBT_data/simple_nbt.dumpnbt_out)" ] \
|
|
|
|
&& [ "$(dumpnbt resources/NBT_data/nested_compounds_and_lists)" = "$(cat resources/NBT_data/nested_compounds_and_lists.dumpnbt_out)" ] \
|
|
|
|
&& [ "$(dumpnbt resources/NBT_data/level.dat_decompressed)" = "$(cat resources/NBT_data/level.dat_decompressed.dumpnbt_out)" ] \
|
|
|
|
&& [ "$(dumpnbt resources/NBT_data/arrays_inside_lists)" = "$(cat resources/NBT_data/arrays_inside_lists.dumpnbt_out)" ] \
|
2022-10-28 02:45:52 +02:00
|
|
|
&& echo "PASS" \
|
|
|
|
|| echo "FAIL"
|
|
|
|
echo "================================================================================"
|
|
|
|
|
|
|
|
#TODO: test with compressed NBT files
|