Skip to content

Commit 27490d9

Browse files
Add corpus builder for config
1 parent c6d1635 commit 27490d9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
set -eox pipefail
4+
5+
CWD=$(pwd)
6+
7+
ROOT=$1
8+
OUTPUT_CORPUS=$2
9+
FIXTURES_DIR=$(readlink -f $ROOT/gix-config/tests/fixtures)
10+
11+
echo $ROOT
12+
echo $FIXTURES_DIR
13+
find $FIXTURES_DIR -name "*.config" -exec zip -j $OUTPUT_CORPUS {} \;
14+
15+
# Generate configs.
16+
REPO=$(mktemp -d)
17+
cd $REPO
18+
bash $FIXTURES_DIR/make_config_repo.sh
19+
find . -name ".*" -exec zip $OUTPUT_CORPUS {} \;
20+
cd $CWD
21+
rm -r $REPO
22+

0 commit comments

Comments
 (0)