-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
15 changed files
with
180 additions
and
128 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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
/** | ||
!/app | ||
/app/cli_internal.*.in | ||
!/data | ||
!/docs/*.json | ||
!examples | ||
!/include | ||
!/scripts | ||
!/src | ||
!configure | ||
!AUTHORS | ||
!Makefile | ||
!LICENSE | ||
!./ci/zsv |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM scratch | ||
|
||
LABEL maintainer="Liquidaty" | ||
LABEL url="https://github.com/liquidaty/zsv" | ||
LABEL org.opencontainers.image.description="zsv: tabular data swiss-army knife CLI + world's fastest (simd) CSV parser" | ||
|
||
WORKDIR /zsv | ||
COPY ci/zsv . | ||
|
||
ENTRYPOINT [ "./zsv" ] |
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 |
---|---|---|
|
@@ -84,7 +84,6 @@ else | |
CMP=cmp | ||
endif | ||
|
||
|
||
help: | ||
@echo "To run all tests: make test [LEAKS=1]" | ||
@echo "To run individual test: make test-xxx" | ||
|
@@ -337,7 +336,6 @@ test-mv: ${BUILD_DIR}/bin/zsv_prop${EXE} ${BUILD_DIR}/bin/zsv_mv${EXE} | |
@${PREFIX} ${BUILD_DIR}/bin/zsv_mv${EXE} ${TMP_DIR}/$@.csv ${TMP_DIR}/$@-moved.csv ${REDIRECT} /dev/null | ||
@find ${TMP_DIR}/.zsv/data/$@-moved.csv/props.json -type f >/dev/null && ${TEST_PASS} || ${TEST_FAIL} | ||
|
||
|
||
test-blank-leading-rows: test-blank-leading-rows-1 test-blank-leading-rows-2 test-blank-leading-rows-3 test-blank-leading-rows-4 | ||
|
||
test-blank-leading-rows-1: ${BUILD_DIR}/bin/zsv_select${EXE} | ||
|
@@ -430,7 +428,6 @@ test-serialize-position-id: ${BUILD_DIR}/bin/zsv_serialize${EXE} ${TEST_DATA_DIR | |
@(${PREFIX} $< --id-column 3 < ${TEST_DATA_DIR}/test/serialize.csv -a 'Interest Paid Through Date' -a 'original INTEREST Only Term' ${REDIRECT1} ${TMP_DIR}/$@.out && \ | ||
${CMP} ${TMP_DIR}/$@.out expected/$@.out && ${TEST_PASS} || ${TEST_FAIL}) | ||
|
||
|
||
test-serialize : test-%: ${BUILD_DIR}/bin/zsv_%${EXE} test-serialize-quoted test-serialize-additional test-serialize-position-id | ||
@${TEST_INIT} | ||
@( ( ! [ -s "${TEST_DATA_DIR}/test/$*.csv" ] ) && echo "No test input for $*") || \ | ||
|
@@ -466,7 +463,6 @@ test-sql5: ${BUILD_DIR}/bin/zsv_sql${EXE} # test blank rows | |
@(${PREFIX} $< /tmp/1.csv 'select * from data' ${REDIRECT1} ${TMP_DIR}/$@.out) | ||
@${CMP} ${TMP_DIR}/$@.out expected/$@.out && ${TEST_PASS} || ${TEST_FAIL} | ||
|
||
|
||
${BUILD_DIR}/bin/zsv_%${EXE}: | ||
make -C .. $@ CONFIGFILE=${CONFIGFILEPATH} DEBUG=${DEBUG} | ||
|
||
|
@@ -546,7 +542,6 @@ test-compare-tolerance: ${BUILD_DIR}/bin/zsv_compare${EXE} | |
@(${PREFIX} $< --tolerance 0.00001 ../../data/compare/tolerance1.csv ../../data/compare/tolerance2.csv ${REDIRECT1} ${TMP_DIR}/[email protected] && \ | ||
${CMP} ${TMP_DIR}/[email protected] expected/[email protected] && ${TEST_PASS} || ${TEST_FAIL}) | ||
|
||
|
||
test-compare: test-%: ${BUILD_DIR}/bin/zsv_%${EXE} | ||
@${TEST_INIT} | ||
@(${PREFIX} $< compare/t1.csv compare/t2.csv compare/t3.csv ${REDIRECT1} ${TMP_DIR}/$@.out && \ | ||
|
Oops, something went wrong.