Skip to content

Commit

Permalink
ballet: add toml parser
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl committed May 19, 2024
1 parent b7f7be1 commit 2f42595
Show file tree
Hide file tree
Showing 6 changed files with 2,246 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ballet/toml/Local.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$(call add-hdrs,fd_toml.h)
$(call add-objs,fd_toml,fd_ballet)
$(call make-fuzz-test,fuzz_toml,fuzz_toml,fd_ballet fd_util)

ifdef FD_HAS_HOSTED
$(call make-unit-test,test_toml,test_toml,fd_ballet fd_util)
$(call run-unit-test,test_toml)
endif
14 changes: 14 additions & 0 deletions src/ballet/toml/download_toml_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -euo pipefail

cd "$(dirname "$0")"

rm -vf toml-tests.tar.gz
rm -rf tests

wget -O toml-tests.tar.gz https://github.com/toml-lang/toml-test/archive/refs/tags/v1.4.0.tar.gz
tar -xvzf toml-tests.tar.gz
mv toml-test-1.4.0/tests ./tests
rm -rf toml-test-1.4.0
rm -v toml-tests.tar.gz
Loading

0 comments on commit 2f42595

Please sign in to comment.