This repository has been archived by the owner on Jan 27, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3c56c9
commit 97331a0
Showing
124 changed files
with
62 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ libtool | |
autom4te.cache | ||
.DS_Store | ||
build* | ||
data/121B2TestData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
ACLOCAL_AMFLAGS = -I m4 | ||
SUBDIRS = src tests | ||
EXTRA_DIST = doc/license.txt CMakeLists.txt cmake/config.h.in \ | ||
cmake/macros.cmake README.SZIP Copyright.txt | ||
cmake/macros.cmake README.SZIP Copyright.txt data | ||
|
||
bench: all | ||
cd tests && $(MAKE) $(AM_MAKEFLAGS) bench | ||
benc: all | ||
cd tests && $(MAKE) $(AM_MAKEFLAGS) benc | ||
bdec: all | ||
cd tests && $(MAKE) $(AM_MAKEFLAGS) bdec | ||
.PHONY: bench benc bdec | ||
sampledata = 121B2TestData | ||
sampledata_url = http://cwe.ccsds.org/sls/docs/SLS-DC/BB121B2TestData/$(sampledata).zip | ||
update-sampledata: | ||
cd $(srcdir)/data && \ | ||
rm -rf $(sampledata) && \ | ||
curl $(sampledata_url) -O && unzip $(sampledata).zip && \ | ||
rm -f $(sampledata).zip && \ | ||
cd $(sampledata)/AllOptions && mv -f test_P512n22.dat test_p512n22.dat | ||
|
||
.PHONY: update-sampledata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
#!/bin/sh | ||
set -e | ||
AEC=../src/aec | ||
|
||
if [ ! -f bench.rz ]; then | ||
echo "No encoded file found. Encoding now..." | ||
path=$(echo $0 | sed -e 's:[^/]*$::') | ||
"${path}"/benc.sh | ||
${top_srcdir}/src/benc.sh ${top_srcdir}/data/typical.rz | ||
fi | ||
rm -f dec.dat | ||
bsize=$(wc -c bench.dat | awk '{print $1}') | ||
utime=$(../src/utime $AEC -d -n16 -j64 -r256 -m bench.rz dec.dat 2>&1) | ||
utime=$(./utime ./aec -d -n16 -j64 -r256 -m bench.rz dec.dat 2>&1) | ||
perf=$(echo "$bsize/1048576/$utime" | bc) | ||
echo "[0;32m*** Decoding with $perf MiB/s user time ***[0m" | ||
cmp bench.dat dec.dat | ||
rm -f dec.dat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
#!/bin/sh | ||
set -e | ||
TEST_DATA=$1 | ||
AEC=../src/aec | ||
AEC=./aec | ||
if [ ! -f bench.dat ]; then | ||
rm -f typical.dat | ||
$AEC -d -n16 -j64 -r256 -m $TEST_DATA typical.dat | ||
for i in $(seq 0 499); | ||
do | ||
cat typical.dat >> bench.dat | ||
done | ||
rm -f typical.dat | ||
fi | ||
rm -f bench.rz | ||
utime=$(../src/utime $AEC -n16 -j64 -r256 -m bench.dat bench.rz 2>&1) | ||
utime=$(./utime $AEC -n16 -j64 -r256 -m bench.dat bench.rz 2>&1) | ||
bsize=$(wc -c bench.dat | awk '{print $1}') | ||
perf=$(echo "$bsize/1048576/$utime" | bc) | ||
echo "[0;32m*** Encoding with $perf MiB/s user time ***[0m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
ADD_LIBRARY(check_aec STATIC check_aec.c) | ||
TARGET_LINK_LIBRARIES(check_aec aec) | ||
|
||
ADD_EXECUTABLE(check_code_options check_code_options.c) | ||
TARGET_LINK_LIBRARIES(check_code_options check_aec aec) | ||
|
||
ADD_EXECUTABLE(check_buffer_sizes check_buffer_sizes.c) | ||
TARGET_LINK_LIBRARIES(check_buffer_sizes check_aec aec) | ||
|
||
ADD_EXECUTABLE(check_long_fs check_long_fs.c) | ||
TARGET_LINK_LIBRARIES(check_long_fs check_aec aec) | ||
|
||
ADD_TEST(check_code_options check_code_options) | ||
ADD_TEST(check_buffer_sizes check_buffer_sizes) | ||
ADD_TEST(check_long_fs check_long_fs) | ||
|
||
ADD_CUSTOM_TARGET(check COMMAND ${CMAKE_CTEST_COMMAND}) | ||
ADD_DEPENDENCIES(check | ||
check_code_options | ||
check_buffer_sizes | ||
check_long_fs) | ||
|
||
ADD_TEST(NAME check_code_options COMMAND check_code_options) | ||
ADD_TEST(NAME check_buffer_sizes COMMAND check_buffer_sizes) | ||
IF(UNIX) | ||
ADD_CUSTOM_TARGET(bench | ||
COMMAND ${CMAKE_SOURCE_DIR}/tests/benc.sh | ||
COMMAND ${CMAKE_SOURCE_DIR}/tests/bdec.sh | ||
DEPENDS aec_client utime | ||
ADD_EXECUTABLE(check_long_fs check_long_fs.c) | ||
TARGET_LINK_LIBRARIES(check_long_fs check_aec aec) | ||
ADD_TEST(NAME check_long_fs COMMAND check_long_fs) | ||
ADD_TEST( | ||
NAME sampledata.sh | ||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/sampledata.sh ${CMAKE_CURRENT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
) | ||
ADD_EXECUTABLE(check_szcomp check_szcomp.c) | ||
TARGET_LINK_LIBRARIES(check_szcomp check_aec sz) | ||
ADD_TEST( | ||
NAME check_szcomp | ||
COMMAND check_szcomp ${CMAKE_CURRENT_SOURCE_DIR}/../data/121B2TestData/ExtendedParameters/sar32bit.dat | ||
) | ||
ENDIF(UNIX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-21 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n01-basic.rz
Binary file not shown.
Binary file removed
BIN
-18 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n01-restricted.rz
Binary file not shown.
Binary file removed
BIN
-33 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n02-basic.rz
Binary file not shown.
1 change: 0 additions & 1 deletion
1
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n02-restricted.rz
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-33 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n03-basic.rz
Binary file not shown.
1 change: 0 additions & 1 deletion
1
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n03-restricted.rz
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-33 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n04-basic.rz
Binary file not shown.
1 change: 0 additions & 1 deletion
1
tests/data/121B2TestData/LowEntropyOptions/Lowset1_8bit.n04-restricted.rz
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-11 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n01-basic.rz
Binary file not shown.
Binary file removed
BIN
-11 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n01-restricted.rz
Binary file not shown.
Binary file removed
BIN
-14 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n02-basic.rz
Binary file not shown.
Binary file removed
BIN
-13 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n02-restricted.rz
Binary file not shown.
Binary file removed
BIN
-14 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n03-basic.rz
Binary file not shown.
Binary file removed
BIN
-13 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n03-restricted.rz
Binary file not shown.
Binary file removed
BIN
-14 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n04-basic.rz
Binary file not shown.
Binary file removed
BIN
-14 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset2_8bit.n04-restricted.rz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-8 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n01-basic.rz
Binary file not shown.
1 change: 0 additions & 1 deletion
1
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n01-restricted.rz
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-12 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n02-basic.rz
Binary file not shown.
1 change: 0 additions & 1 deletion
1
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n02-restricted.rz
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-12 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n03-basic.rz
Binary file not shown.
1 change: 0 additions & 1 deletion
1
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n03-restricted.rz
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-12 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n04-basic.rz
Binary file not shown.
Binary file removed
BIN
-12 Bytes
tests/data/121B2TestData/LowEntropyOptions/Lowset3_8bit.n04-restricted.rz
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters